Connectathon 11 Snapshot

This page is part of the FHIR Specification (v1.2.0: STU 3 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Hspc\hspc-qnlab-de.json

Raw JSON (canonical form)

Source for DictionaryHSPC Quantitative Labs dictionary

{
  "resourceType": "Bundle",
  "id": "resources",
  "meta": {
    "lastUpdated": "2015-12-11T17:38:40.294+11:00"
  },
  "type": "collection",
  "entry": [
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/ValueSet-expand",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "ValueSet-expand",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/ValueSet-expand",
        "name": "Value Set Expansion",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "The definition of a value set is used to create a simple collection of codes suitable for use for data entry or validation.   If the operation is not called at the instance level, one of the in parameters identifier, context or valueset must be provided.  An expanded value set will be returned, or an OperationOutcome with an error message.",
        "code": "expand",
        "notes": "The value set expansion returned by this query should be treated as a transient result that will change over time (whether it does or not depends on how the value set is specified), so applications should repeat the operation each time the value set is used.   Clients can work through large flat expansions in a set of pages (partial views of the full expansion) instead of just getting the full expansion in a single exchange by using offset and count parameters. Servers are not obliged to support paging, but if they do, SHALL support both the offset and count parameters. Hierarchical expansions are not subject to paging and servers simply return the entire expansion.  Different servers may return different results from expanding a value set for the following reasons:  * The underlying code systems are different (e.g. different versions, possibly with different defined behavior) * The server optimizes filter includes differently, such as sorting by code frequency * Servers introduce arbitrary groups to assist a user to navigate the lists based either on extensions in the definition, or additional knowledge available to the server",
        "system": false,
        "type": [
          "ValueSet"
        ],
        "instance": true,
        "parameter": [
          {
            "name": "identifier",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A logical value set identifier (i.e. ValueSet.url). The server must know the value set (e.g. it is defined explicitly in the server's value sets, or it is defined implicitly by some code system known to the server",
            "type": "uri"
          },
          {
            "name": "valueSet",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The value set is provided directly as part of the request. Servers may choose not to accept value sets in this fashion",
            "type": "ValueSet"
          },
          {
            "name": "context",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The context of the value set, so that the server can resolve this to a value set to expand. The recommended format for this URI is [Structure Definition URL]#[name or path into structure definition] e.g. http://hl7.org/fhir/StructureDefinition/observation-hspc-height-hspcheight#Observation.interpretation. Other forms may be used but are not defined. This form is only useable if the terminology server also has access to the profile registry that the server is using, but can be used to delegate the mapping from an application context to a binding at run-time",
            "type": "uri"
          },
          {
            "name": "filter",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A text filter that is applied to restrict the codes that are returned (this is useful in a UI context). The interpretation of this is delegated to the server in order to allow to determine the most optimal search approach for the context",
            "type": "string"
          },
          {
            "name": "profile",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A reference to an external definition that provides additional control information about how the expansion is performed.  At this time, there is no agreed format or functionality for the target of this URI. The [VSAC Documentation](http://www.nlm.nih.gov/vsac/support/authorguidelines/updatingvaluesets.html) provides one example of the use of this parameter.  Implementers using this element will need to agree on an appropriate mechanism for use within their interoperability community.  Known uses for profile include: * whether to return the value set content logical definition with the expansion * whether to include inactive concepts",
            "type": "uri"
          },
          {
            "name": "date",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The date for which the expansion should be generated.  if a date is provided, it means that the server should use the value set / code system definitions as they were on the given date, or return an error if this is not possible.  Normally, the date is the current conditions (which is the default value) but under some circumstances, systems need to generate an expansion as it would have been in the past. A typical example of this would be where code selection is constrained to the set of codes that were available when the patient was treated, not when the record is being edited. Note that which date is appropriate is a matter for implementation policy.",
            "type": "dateTime"
          },
          {
            "name": "offset",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "Paging support - where to start if a subset is desired (default = 0)",
            "type": "integer"
          },
          {
            "name": "count",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "Paging support - how many codes should be provided in a partial view. Paging only applies to flat expansions - servers ignore paging if the expansion is not flat.  If count = 0, the client is asking how large the expansion is. Servers SHOULD honor this request for hierarchical expansions as well, and simply return the overall count",
            "type": "integer"
          },
          {
            "name": "return",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "The result of the expansion",
            "type": "ValueSet"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/ValueSet-lookup",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "ValueSet-lookup",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/ValueSet-lookup",
        "name": "Concept Look Up",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Given a code/system, or a Coding, get additional details about the concept",
        "code": "lookup",
        "notes": "Note that the $lookup operation is more than just a value set search  - the server finds the concept, and gathers the return information from the value set and the underlying code system definitions.",
        "system": false,
        "type": [
          "ValueSet"
        ],
        "instance": false,
        "parameter": [
          {
            "name": "code",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The code that is to be validated. If a code is provided, a system must be provided",
            "type": "code"
          },
          {
            "name": "system",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The system for the code that is to be validated",
            "type": "uri"
          },
          {
            "name": "version",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The version of the system, if one was provided in the source data",
            "type": "string"
          },
          {
            "name": "coding",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A coding to look up",
            "type": "Coding"
          },
          {
            "name": "date",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The date for which the information should be returned. Normally, this is the current conditions (which is the default value) but under some circumstances, systems need to acccess this information as it would have been in the past. A typical example of this would be where code selection is constrained to the set of codes that were available when the patient was treated, not when the record is being edited. Note that which date is appropriate is a matter for implementation policy.",
            "type": "dateTime"
          },
          {
            "name": "name",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "A display name for the code system",
            "type": "string"
          },
          {
            "name": "version",
            "use": "out",
            "min": 0,
            "max": "1",
            "documentation": "The version that these details are based on",
            "type": "string"
          },
          {
            "name": "display",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "The preferred display for this concept",
            "type": "string"
          },
          {
            "name": "abstract",
            "use": "out",
            "min": 0,
            "max": "1",
            "documentation": "Whether this code is an abstract concept",
            "type": "boolean"
          },
          {
            "name": "designation",
            "use": "out",
            "min": 0,
            "max": "*",
            "documentation": "Additional representations for this concept",
            "part": [
              {
                "name": "language",
                "use": "out",
                "min": 0,
                "max": "1",
                "documentation": "The language this designation is defined for",
                "type": "code"
              },
              {
                "name": "use",
                "use": "out",
                "min": 0,
                "max": "1",
                "documentation": "A code that details how this designation would be used",
                "type": "Coding"
              },
              {
                "name": "value",
                "use": "out",
                "min": 1,
                "max": "1",
                "documentation": "The text value for this designation",
                "type": "string"
              }
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/ValueSet-validate-code",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "ValueSet-validate-code",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/ValueSet-validate-code",
        "name": "Value Set based Validation",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Validate that a coded value is in the set of codes allowed by a value set.   If the operation is not called at the instance level, one of the in parameters \"identifier\" or \"valueset\" must be provided.  One (and only one) of the in parameters (code, coding, codeableConcept) must be provided.  The operation returns a result (true / false), an error message, and the recommended display for the code",
        "code": "validate-code",
        "system": false,
        "type": [
          "ValueSet"
        ],
        "instance": true,
        "parameter": [
          {
            "name": "identifier",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A logical value set identifier (i.e. ValueSet.url). The server must know the value set (e.g. it is defined explicitly in the server's value sets, or it is defined implicitly by some code system known to the server",
            "type": "uri"
          },
          {
            "name": "context",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The context of the value set, so that the server can resolve this to a value set to validate against. The recommended format for this URI is [Structure Definition URL]#[name or path into structure definition] e.g. http://hl7.org/fhir/StructureDefinition/observation-hspc-height-hspcheight#Observation.interpretation. Other forms may be used but are not defined. This form is only useable if the terminology server also has access to the profile registry that the server is using, but can be used to delegate the mapping from an application context to a binding at run-time",
            "type": "uri"
          },
          {
            "name": "valueSet",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The value set is provided directly as part of the request. Servers may choose not to accept value sets in this fashion. This parameter is used when the client wants the server to expand a value set that is not stored on the server",
            "type": "ValueSet"
          },
          {
            "name": "code",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The code that is to be validated. If a code is provided, a system must be provided",
            "type": "code"
          },
          {
            "name": "system",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The system for the code that is to be validated",
            "type": "uri"
          },
          {
            "name": "version",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The version of the system, if one was provided in the source data",
            "type": "string"
          },
          {
            "name": "display",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The display associated with the code, if provided. If a display is provided a code must be provided. If no display is provided, the server cannot validate the display value, but may choose to return a recommended display name in an extension in the outcome. Whether displays are case sensitive is code system dependent",
            "type": "string"
          },
          {
            "name": "coding",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A coding to validate",
            "type": "Coding"
          },
          {
            "name": "codeableConcept",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A full codeableConcept to validate. The server returns true if one of the coding values is in the value set, and may also validate that the codings are not in conflict with each other if more than one is present",
            "type": "CodeableConcept"
          },
          {
            "name": "date",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The date for which the validation should be checked. Normally, this is the current conditions (which is the default values) but under some circumstances, systems need to validate that a correct code was used at some point in the past. A typical example of this would be where code selection is constrained to the set of codes that were available when the patient was treated, not when the record is being edited. Note that which date is appropriate is a matter for implementation policy.",
            "type": "dateTime"
          },
          {
            "name": "abstract",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "if true, then an abstract code is allowed to be used in the context of the code that is being validated. Typically, abstract codes are allowed to be used in value set specifications (e.g. any code that is subsumed by an abstract code). If false (which is the default value), then only concrete codes as defined by the value set are allowed",
            "type": "boolean"
          },
          {
            "name": "result",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "True if the concept details supplied are valid",
            "type": "boolean"
          },
          {
            "name": "message",
            "use": "out",
            "min": 0,
            "max": "1",
            "documentation": "Error details, if result = false. If this is provided when result = true, the message carries hints and warnings",
            "type": "string"
          },
          {
            "name": "display",
            "use": "out",
            "min": 0,
            "max": "1",
            "documentation": "A valid display for the concept if the system wishes to display this to a user",
            "type": "string"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ValueSet",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ValueSet",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 3
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ValueSet",
        "name": "ValueSet",
        "status": "draft",
        "publisher": "Health Level Seven International (Vocabulary)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/Vocab/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ValueSet Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "define.xml2.0",
            "uri": "http://www.cdisc.org/define-xml",
            "name": "CDISC Define XML 2.0 metadata standard"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ValueSet",
              "short": "A set of codes drawn from one or more code systems",
              "definition": "A value set specifies a set of codes drawn from one or more code systems.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "codeSystem.empty() or (codeSystem.system != url)"
                    }
                  ],
                  "key": "vsd-7",
                  "severity": "error",
                  "human": "A defined code system (if present) SHALL have a different url than the value set url",
                  "xpath": "not(f:codeSystem/f:system/@value = f:url/@value)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "codeSystem or compose or expansion"
                    }
                  ],
                  "key": "vsd-5",
                  "severity": "error",
                  "human": "Value set SHALL contain at least one of a codeSystem, a compose, or an expansion element",
                  "xpath": "exists(f:codeSystem) or exists(f:compose) or exists(f:expansion)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "compose.import.count() != 1 or compose.include or compose.exclude or codeSystem"
                    }
                  ],
                  "key": "vsd-2",
                  "severity": "error",
                  "human": "A value set with only one import SHALL also have an include and/or an exclude unless the value set includes and inline code system",
                  "xpath": "not(exists(f:compose)) or (count(f:compose/f:import)!=1 or exists(f:compose/f:include) or exists(f:compose/f:exclude) or exists(f:codeSystem))"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "conformance.terminology"
                }
              ]
            },
            {
              "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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ValueSet.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "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 may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.url",
              "short": "Globally unique logical identifier for  value set",
              "definition": "An absolute URL that is used to identify this value set when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this value set is (or will be) published.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ValueSet.identifier",
              "short": "Additional identifier for the value set (e.g. HL7 v2 / CDA)",
              "definition": "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.",
              "comments": "Typically, this is used for values that can go in an HL7 v3 II data type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "define.xml2.0",
                  "map": "Identifier part"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ValueSet.version",
              "short": "Logical identifier for this version of the value set",
              "definition": "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 profile author manually and the value should be a timestamp.",
              "comments": "There may be multiple resource versions of the value set that have the same identifier.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "ValueSet.name",
              "short": "Informal name for this value set",
              "definition": "A free text natural language name describing the value set.",
              "comments": "The name is not expected to be unique. 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.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.status",
              "short": "draft | active | retired",
              "definition": "The status of the value set.",
              "comments": "Allows filtering of value set instances that are appropriate (or not) for use.",
              "requirements": "Identify when/if the value set should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ValueSet.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "comments": "Allows filtering of value sets that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "ValueSet.publisher",
              "short": "Name of the publisher (organization or individual)",
              "definition": "The name of the individual or organization that published the value set.",
              "comments": "Usually an organization, but may be an individual. 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.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "ValueSet.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.contact.name",
              "short": "Name of an individual to contact",
              "definition": "The name of an individual to contact regarding the value set.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.date",
              "short": "Date for given status",
              "definition": "The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition').",
              "comments": "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.",
              "requirements": "Need to know when a value set was first legal for use or became withdrawn or replaced.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "ValueSet.lockedDate",
              "short": "Fixed date for all referenced code systems and value sets",
              "definition": "If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date.",
              "comments": "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",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "ValueSet.description",
              "short": "Human language description of the value set",
              "definition": "A free text natural language description of the use of the value set - reason for definition, \"the semantic space\" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set.",
              "comments": "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.",
              "requirements": "Human understandability.",
              "alias": [
                "Scope",
                "Purpose"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.useContext",
              "short": "Content intends to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of value set definitions.",
              "requirements": "Assist in searching for appropriate content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              },
              "mapping": [
                {
                  "identity": "define.xml2.0",
                  "map": "COMPONENT, PROPERTY, TIME_ASPCT, SYSTEM, SCALE_TYP, METHOD_TYP, CLASS, CLASSTYPE, ORDER_OBS, DOCUMENT_SECTION, HL7_ATTACHMENT_STRUCTURE"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.requirements",
              "short": "Why needed",
              "definition": "Explains why this value set is needed and why it has been constrained as it has.",
              "comments": "This element does not describe the usage of the value set (that is 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",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "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.",
              "comments": "Frequently, the copyright differs between the value set and the codes that are included. The copyright statement should clearly differentiate between these when required.",
              "alias": [
                "License",
                "Restrictions"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ValueSet.extensible",
              "short": "Whether this is intended to be used with an extensible binding",
              "definition": "Whether this is intended to be used with an extensible binding or not.",
              "requirements": "It is not required to say whether this intent applies.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.codeSystem",
              "short": "An inline code system, which is part of this value set",
              "definition": "A definition of a code system, inlined into the value set (as a packaging convenience). Note that the inline code system may be used from other value sets by referring to its (codeSystem.system) directly.",
              "comments": "All code systems defined as part of a FHIR value set have an implicit valueset that includes all of the codes in the code system - the value set in which they are defined.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "vsd-5"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "concept.code*.distinct()"
                    }
                  ],
                  "key": "vsd-8",
                  "severity": "error",
                  "human": "Codes must be unique",
                  "xpath": "count(descendant::f:concept)=count(distinct-values(descendant::f:concept/f:code/@value))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "concept.code*.distinct()"
                    }
                  ],
                  "key": "vsd-3",
                  "severity": "error",
                  "human": "Within a code system definition, all the codes SHALL be unique",
                  "xpath": "count(distinct-values(descendant::f:concept/f:code/@value))=count(descendant::f:concept)"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.codeSystem.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.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 element. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.system",
              "short": "URI to identify the code system (e.g. in Coding.system)",
              "definition": "An absolute URI that is used to reference this code system, including in [Coding]{datatypes.html#Coding}.system.",
              "comments": "The reference is not required to point to any specific kind of definition, but the more information that can be provided, the more useful it is for implementers. Best practice is to resolve to a computable definition of the code system (either a value set, or some other format). Terminology servers MAY validate this reference (e.g. when accepting PUT/POST), and MAY make additional rules about what kind of content it refers to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.codeSystem.version",
              "short": "Version (for use in Coding.version)",
              "definition": "The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.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.",
              "comments": "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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ConceptDefinition"
                }
              ],
              "path": "ValueSet.codeSystem.concept",
              "name": "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 meaning of the hierarchical relationships are.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.concept.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.concept.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.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",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.concept.abstract",
              "short": "If this code is not for use as a real concept",
              "definition": "If this code is not for use as a real concept.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false
            },
            {
              "path": "ValueSet.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",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.concept.definition",
              "short": "Formal definition",
              "definition": "The formal definition of the concept. The value set 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",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.concept.designation",
              "name": "designation",
              "short": "Additional representations for the concept",
              "definition": "Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.",
              "requirements": "Many concept definition systems support multiple representations, in multiple languages, and for multiple purposes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.concept.designation.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.concept.designation.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.concept.designation.language",
              "short": "Human language of the designation",
              "definition": "The language this designation is defined for.",
              "comments": "In the absence of a language, the resource language applies.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ValueSet.codeSystem.concept.designation.use",
              "short": "Details how this designation would be used",
              "definition": "A code that details how this designation would be used.",
              "comments": "If no use is provided, the designation can be assumed to be suitable for general display to a human user.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Details of how a designation would be used.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/designation-use"
                }
              }
            },
            {
              "path": "ValueSet.codeSystem.concept.designation.value",
              "short": "The text value for this designation",
              "definition": "The text value for this designation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ValueSet.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) and can only be determined by examining the definitions of the concepts.",
              "min": 0,
              "max": "*",
              "nameReference": "concept"
            },
            {
              "path": "ValueSet.compose",
              "short": "When value set includes codes from elsewhere",
              "definition": "A set of criteria that provide the content logical definition of the value set by including or excluding codes from outside this value set.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "vsd-5"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "include or import"
                    }
                  ],
                  "key": "vsd-1",
                  "severity": "error",
                  "human": "A value set composition SHALL have an include or an import",
                  "xpath": "exists(f:include) or exists(f:import)"
                }
              ]
            },
            {
              "path": "ValueSet.compose.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.compose.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.import",
              "short": "Import the contents of another value set",
              "definition": "Includes the contents of the referenced value set as a part of the contents of this value set. This is an absolute URI that is a reference to ValueSet.uri.",
              "comments": "The value set URI is either a logical reference to a defined value set such as a [SNOMED CT reference set]{snomedct.html#implicit}, or a direct reference to a value set definition using ValueSet.url. The reference may also not reference an actual FHIR ValueSet resource; in this case, whatever is referenced is an implicit definition of a value set that needs to be clear about how versions are resolved.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "condition": [
                "vsd-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ConceptSet"
                }
              ],
              "path": "ValueSet.compose.include",
              "name": "include",
              "short": "Include one or more codes from a code system",
              "definition": "Include one or more codes from a code system.",
              "comments": "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.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "vsd-1"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "concept.empty() or filter.empty()"
                    }
                  ],
                  "key": "vsd-11",
                  "severity": "error",
                  "human": "Cannot have both concept and filter",
                  "xpath": "not(exists(f:concept)) or not(exists(f:filter))"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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.",
              "comments": "See ''Coding.system'' for further documentation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "define.xml2.0",
                  "map": "ODM/Study/MetaDataVersion/CodeList/ExternalCodeList/Href"
                },
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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.",
              "comments": "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 may not be known until a context of use binds it to a particular version.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "define.xml2.0",
                  "map": "ODM/Study/MetaDataVersion/CodeList/ExternalCodeList/Version"
                },
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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.",
              "comments": "The list of concepts is considered ordered, though the order may not have any particular significance. Typically, the order of an expansion follows that defined in the compose element.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "vsd-11"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.concept.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.concept.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.concept.code",
              "short": "Code or expression from system",
              "definition": "Specifies a code for the concept to be included or excluded.",
              "comments": "Expressions are allowed if defined by the underlying code system.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.concept.display",
              "short": "Test to display for this code for this value set",
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.concept.designation",
              "short": "Additional representations for this valueset",
              "definition": "Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.",
              "min": 0,
              "max": "*",
              "nameReference": "designation"
            },
            {
              "path": "ValueSet.compose.include.filter",
              "short": "Select codes/concepts by their properties (including relationships)",
              "definition": "Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "vsd-11"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.filter.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.filter.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.filter.property",
              "short": "A property defined by the code system",
              "definition": "A code that identifies a property defined in the code system.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.filter.op",
              "short": "= | is-a | is-not-a | regex | in | not-in",
              "definition": "The kind of operation to perform as a part of the filter criteria.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The kind of operation to perform as a part of a property based filter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/filter-operator"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.filter.value",
              "short": "Code from the system, or regex criteria",
              "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.",
              "comments": "Use regex matching with care - full regex matching on every SNOMED CT term is prohibitive, for example.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.exclude",
              "short": "Explicitly exclude codes",
              "definition": "Exclude one or more codes from the value set.",
              "comments": "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": "*",
              "nameReference": "include",
              "condition": [
                "vsd-2"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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.",
              "comments": "Expansion is performed to produce a collection of codes that are ready to use for data entry or validation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "vsd-5"
              ]
            },
            {
              "path": "ValueSet.expansion.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.identifier",
              "short": "Uniquely identifies this expansion",
              "definition": "An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so.",
              "comments": "Typically, this uri is a UUID (e.g. urn:uuid:8230ff20-c97a-4167-a59d-dc2cb9df16dd).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.timestamp",
              "short": "Time ValueSet expansion happened",
              "definition": "The time at which the expansion was produced by the expanding system.",
              "comments": "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",
              "type": [
                {
                  "code": "dateTime"
                }
              ]
            },
            {
              "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.",
              "comments": "Paging only applies to flat expansions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "meaningWhenMissing": "Paging is not being used"
            },
            {
              "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.",
              "comments": "The server decides which parameters to include here, but at a minimum, the list SHOULD include the date, filter, and profile parameters passed to the $expand operation (if any).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.parameter.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.parameter.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.parameter.name",
              "short": "Name as assigned by the server",
              "definition": "The name of the parameter.",
              "comments": "The names are assigned at the discretion of the server.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.parameter.value[x]",
              "short": "Value of the named parameter",
              "definition": "The value of the parameter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                },
                {
                  "code": "boolean"
                },
                {
                  "code": "integer"
                },
                {
                  "code": "decimal"
                },
                {
                  "code": "uri"
                },
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.contains",
              "name": "contains",
              "short": "Codes in the value set",
              "definition": "The codes that are contained in the value set expansion.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "code or abstract = 'true'"
                    }
                  ],
                  "key": "vsd-9",
                  "severity": "error",
                  "human": "Must have a code if not abstract",
                  "xpath": "exists(f:code) or (f:abstract/@value = true())"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "code or display"
                    }
                  ],
                  "key": "vsd-6",
                  "severity": "error",
                  "human": "SHALL have a code or a display",
                  "xpath": "exists(f:code) or exists(f:display)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "code.empty() or system"
                    }
                  ],
                  "key": "vsd-10",
                  "severity": "error",
                  "human": "Must have a system if a code is present",
                  "xpath": "exists(f:system) or not(exists(f:code))"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.contains.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.contains.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.contains.version",
              "short": "Version in which this code/display is defined",
              "definition": "The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence.",
              "comments": "The exact value of the version string is specified by the system from which the code is derived.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "condition": [
                "vsd-6"
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "vsd-6"
              ]
            },
            {
              "path": "ValueSet.expansion.contains.contains",
              "short": "Codes contained under this entry",
              "definition": "Other codes and entries contained under this entry in the hierarchy.",
              "comments": "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": "*",
              "nameReference": "contains"
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ValueSet",
              "short": "A set of codes drawn from one or more code systems",
              "definition": "A value set specifies a set of codes drawn from one or more code systems.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "codeSystem.empty() or (codeSystem.system != url)"
                    }
                  ],
                  "key": "vsd-7",
                  "severity": "error",
                  "human": "A defined code system (if present) SHALL have a different url than the value set url",
                  "xpath": "not(f:codeSystem/f:system/@value = f:url/@value)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "codeSystem or compose or expansion"
                    }
                  ],
                  "key": "vsd-5",
                  "severity": "error",
                  "human": "Value set SHALL contain at least one of a codeSystem, a compose, or an expansion element",
                  "xpath": "exists(f:codeSystem) or exists(f:compose) or exists(f:expansion)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "compose.import.count() != 1 or compose.include or compose.exclude or codeSystem"
                    }
                  ],
                  "key": "vsd-2",
                  "severity": "error",
                  "human": "A value set with only one import SHALL also have an include and/or an exclude unless the value set includes and inline code system",
                  "xpath": "not(exists(f:compose)) or (count(f:compose/f:import)!=1 or exists(f:compose/f:include) or exists(f:compose/f:exclude) or exists(f:codeSystem))"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "conformance.terminology"
                }
              ]
            },
            {
              "path": "ValueSet.url",
              "short": "Globally unique logical identifier for  value set",
              "definition": "An absolute URL that is used to identify this value set when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this value set is (or will be) published.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ValueSet.identifier",
              "short": "Additional identifier for the value set (e.g. HL7 v2 / CDA)",
              "definition": "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.",
              "comments": "Typically, this is used for values that can go in an HL7 v3 II data type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "define.xml2.0",
                  "map": "Identifier part"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ValueSet.version",
              "short": "Logical identifier for this version of the value set",
              "definition": "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 profile author manually and the value should be a timestamp.",
              "comments": "There may be multiple resource versions of the value set that have the same identifier.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "ValueSet.name",
              "short": "Informal name for this value set",
              "definition": "A free text natural language name describing the value set.",
              "comments": "The name is not expected to be unique. 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.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.status",
              "short": "draft | active | retired",
              "definition": "The status of the value set.",
              "comments": "Allows filtering of value set instances that are appropriate (or not) for use.",
              "requirements": "Identify when/if the value set should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ValueSet.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "comments": "Allows filtering of value sets that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "ValueSet.publisher",
              "short": "Name of the publisher (organization or individual)",
              "definition": "The name of the individual or organization that published the value set.",
              "comments": "Usually an organization, but may be an individual. 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.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "ValueSet.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.contact.name",
              "short": "Name of an individual to contact",
              "definition": "The name of an individual to contact regarding the value set.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.date",
              "short": "Date for given status",
              "definition": "The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition').",
              "comments": "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.",
              "requirements": "Need to know when a value set was first legal for use or became withdrawn or replaced.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "ValueSet.lockedDate",
              "short": "Fixed date for all referenced code systems and value sets",
              "definition": "If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date.",
              "comments": "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",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "ValueSet.description",
              "short": "Human language description of the value set",
              "definition": "A free text natural language description of the use of the value set - reason for definition, \"the semantic space\" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set.",
              "comments": "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.",
              "requirements": "Human understandability.",
              "alias": [
                "Scope",
                "Purpose"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.useContext",
              "short": "Content intends to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of value set definitions.",
              "requirements": "Assist in searching for appropriate content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              },
              "mapping": [
                {
                  "identity": "define.xml2.0",
                  "map": "COMPONENT, PROPERTY, TIME_ASPCT, SYSTEM, SCALE_TYP, METHOD_TYP, CLASS, CLASSTYPE, ORDER_OBS, DOCUMENT_SECTION, HL7_ATTACHMENT_STRUCTURE"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.requirements",
              "short": "Why needed",
              "definition": "Explains why this value set is needed and why it has been constrained as it has.",
              "comments": "This element does not describe the usage of the value set (that is 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",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "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.",
              "comments": "Frequently, the copyright differs between the value set and the codes that are included. The copyright statement should clearly differentiate between these when required.",
              "alias": [
                "License",
                "Restrictions"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ValueSet.extensible",
              "short": "Whether this is intended to be used with an extensible binding",
              "definition": "Whether this is intended to be used with an extensible binding or not.",
              "requirements": "It is not required to say whether this intent applies.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.codeSystem",
              "short": "An inline code system, which is part of this value set",
              "definition": "A definition of a code system, inlined into the value set (as a packaging convenience). Note that the inline code system may be used from other value sets by referring to its (codeSystem.system) directly.",
              "comments": "All code systems defined as part of a FHIR value set have an implicit valueset that includes all of the codes in the code system - the value set in which they are defined.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "vsd-5"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "concept.code*.distinct()"
                    }
                  ],
                  "key": "vsd-8",
                  "severity": "error",
                  "human": "Codes must be unique",
                  "xpath": "count(descendant::f:concept)=count(distinct-values(descendant::f:concept/f:code/@value))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "concept.code*.distinct()"
                    }
                  ],
                  "key": "vsd-3",
                  "severity": "error",
                  "human": "Within a code system definition, all the codes SHALL be unique",
                  "xpath": "count(distinct-values(descendant::f:concept/f:code/@value))=count(descendant::f:concept)"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.codeSystem.system",
              "short": "URI to identify the code system (e.g. in Coding.system)",
              "definition": "An absolute URI that is used to reference this code system, including in [Coding]{datatypes.html#Coding}.system.",
              "comments": "The reference is not required to point to any specific kind of definition, but the more information that can be provided, the more useful it is for implementers. Best practice is to resolve to a computable definition of the code system (either a value set, or some other format). Terminology servers MAY validate this reference (e.g. when accepting PUT/POST), and MAY make additional rules about what kind of content it refers to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.codeSystem.version",
              "short": "Version (for use in Coding.version)",
              "definition": "The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ValueSet.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.",
              "comments": "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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ConceptDefinition"
                }
              ],
              "path": "ValueSet.codeSystem.concept",
              "name": "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 meaning of the hierarchical relationships are.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ValueSet.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",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.concept.abstract",
              "short": "If this code is not for use as a real concept",
              "definition": "If this code is not for use as a real concept.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false
            },
            {
              "path": "ValueSet.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",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.concept.definition",
              "short": "Formal definition",
              "definition": "The formal definition of the concept. The value set 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",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.concept.designation",
              "name": "designation",
              "short": "Additional representations for the concept",
              "definition": "Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.",
              "requirements": "Many concept definition systems support multiple representations, in multiple languages, and for multiple purposes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ValueSet.codeSystem.concept.designation.language",
              "short": "Human language of the designation",
              "definition": "The language this designation is defined for.",
              "comments": "In the absence of a language, the resource language applies.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ValueSet.codeSystem.concept.designation.use",
              "short": "Details how this designation would be used",
              "definition": "A code that details how this designation would be used.",
              "comments": "If no use is provided, the designation can be assumed to be suitable for general display to a human user.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Details of how a designation would be used.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/designation-use"
                }
              }
            },
            {
              "path": "ValueSet.codeSystem.concept.designation.value",
              "short": "The text value for this designation",
              "definition": "The text value for this designation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ValueSet.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) and can only be determined by examining the definitions of the concepts.",
              "min": 0,
              "max": "*",
              "nameReference": "concept"
            },
            {
              "path": "ValueSet.compose",
              "short": "When value set includes codes from elsewhere",
              "definition": "A set of criteria that provide the content logical definition of the value set by including or excluding codes from outside this value set.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "vsd-5"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "include or import"
                    }
                  ],
                  "key": "vsd-1",
                  "severity": "error",
                  "human": "A value set composition SHALL have an include or an import",
                  "xpath": "exists(f:include) or exists(f:import)"
                }
              ]
            },
            {
              "path": "ValueSet.compose.import",
              "short": "Import the contents of another value set",
              "definition": "Includes the contents of the referenced value set as a part of the contents of this value set. This is an absolute URI that is a reference to ValueSet.uri.",
              "comments": "The value set URI is either a logical reference to a defined value set such as a [SNOMED CT reference set]{snomedct.html#implicit}, or a direct reference to a value set definition using ValueSet.url. The reference may also not reference an actual FHIR ValueSet resource; in this case, whatever is referenced is an implicit definition of a value set that needs to be clear about how versions are resolved.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "condition": [
                "vsd-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ConceptSet"
                }
              ],
              "path": "ValueSet.compose.include",
              "name": "include",
              "short": "Include one or more codes from a code system",
              "definition": "Include one or more codes from a code system.",
              "comments": "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.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "vsd-1"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "concept.empty() or filter.empty()"
                    }
                  ],
                  "key": "vsd-11",
                  "severity": "error",
                  "human": "Cannot have both concept and filter",
                  "xpath": "not(exists(f:concept)) or not(exists(f:filter))"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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.",
              "comments": "See ''Coding.system'' for further documentation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "define.xml2.0",
                  "map": "ODM/Study/MetaDataVersion/CodeList/ExternalCodeList/Href"
                },
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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.",
              "comments": "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 may not be known until a context of use binds it to a particular version.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "define.xml2.0",
                  "map": "ODM/Study/MetaDataVersion/CodeList/ExternalCodeList/Version"
                },
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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.",
              "comments": "The list of concepts is considered ordered, though the order may not have any particular significance. Typically, the order of an expansion follows that defined in the compose element.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "vsd-11"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.concept.code",
              "short": "Code or expression from system",
              "definition": "Specifies a code for the concept to be included or excluded.",
              "comments": "Expressions are allowed if defined by the underlying code system.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.concept.display",
              "short": "Test to display for this code for this value set",
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.concept.designation",
              "short": "Additional representations for this valueset",
              "definition": "Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.",
              "min": 0,
              "max": "*",
              "nameReference": "designation"
            },
            {
              "path": "ValueSet.compose.include.filter",
              "short": "Select codes/concepts by their properties (including relationships)",
              "definition": "Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "vsd-11"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.filter.property",
              "short": "A property defined by the code system",
              "definition": "A code that identifies a property defined in the code system.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.filter.op",
              "short": "= | is-a | is-not-a | regex | in | not-in",
              "definition": "The kind of operation to perform as a part of the filter criteria.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The kind of operation to perform as a part of a property based filter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/filter-operator"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.include.filter.value",
              "short": "Code from the system, or regex criteria",
              "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.",
              "comments": "Use regex matching with care - full regex matching on every SNOMED CT term is prohibitive, for example.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ValueSet.compose.exclude",
              "short": "Explicitly exclude codes",
              "definition": "Exclude one or more codes from the value set.",
              "comments": "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": "*",
              "nameReference": "include",
              "condition": [
                "vsd-2"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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.",
              "comments": "Expansion is performed to produce a collection of codes that are ready to use for data entry or validation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "vsd-5"
              ]
            },
            {
              "path": "ValueSet.expansion.identifier",
              "short": "Uniquely identifies this expansion",
              "definition": "An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so.",
              "comments": "Typically, this uri is a UUID (e.g. urn:uuid:8230ff20-c97a-4167-a59d-dc2cb9df16dd).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.timestamp",
              "short": "Time ValueSet expansion happened",
              "definition": "The time at which the expansion was produced by the expanding system.",
              "comments": "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",
              "type": [
                {
                  "code": "dateTime"
                }
              ]
            },
            {
              "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.",
              "comments": "Paging only applies to flat expansions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "meaningWhenMissing": "Paging is not being used"
            },
            {
              "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.",
              "comments": "The server decides which parameters to include here, but at a minimum, the list SHOULD include the date, filter, and profile parameters passed to the $expand operation (if any).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.parameter.name",
              "short": "Name as assigned by the server",
              "definition": "The name of the parameter.",
              "comments": "The names are assigned at the discretion of the server.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.parameter.value[x]",
              "short": "Value of the named parameter",
              "definition": "The value of the parameter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                },
                {
                  "code": "boolean"
                },
                {
                  "code": "integer"
                },
                {
                  "code": "decimal"
                },
                {
                  "code": "uri"
                },
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.contains",
              "name": "contains",
              "short": "Codes in the value set",
              "definition": "The codes that are contained in the value set expansion.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "code or abstract = 'true'"
                    }
                  ],
                  "key": "vsd-9",
                  "severity": "error",
                  "human": "Must have a code if not abstract",
                  "xpath": "exists(f:code) or (f:abstract/@value = true())"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "code or display"
                    }
                  ],
                  "key": "vsd-6",
                  "severity": "error",
                  "human": "SHALL have a code or a display",
                  "xpath": "exists(f:code) or exists(f:display)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "code.empty() or system"
                    }
                  ],
                  "key": "vsd-10",
                  "severity": "error",
                  "human": "Must have a system if a code is present",
                  "xpath": "exists(f:system) or not(exists(f:code))"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "ValueSet.expansion.contains.version",
              "short": "Version in which this code/display is defined",
              "definition": "The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence.",
              "comments": "The exact value of the version string is specified by the system from which the code is derived.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "condition": [
                "vsd-6"
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "vsd-6"
              ]
            },
            {
              "path": "ValueSet.expansion.contains.contains",
              "short": "Codes contained under this entry",
              "definition": "Other codes and entries contained under this entry in the hierarchy.",
              "comments": "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": "*",
              "nameReference": "contains"
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/Conformance/base",
      "resource": {
        "resourceType": "Conformance",
        "id": "base",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/Conformance/base",
        "version": "1.2.0-7447",
        "name": "Base FHIR Conformance Statement (Full)",
        "status": "draft",
        "experimental": true,
        "publisher": "FHIR Project Team",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "This is the base conformance statement for FHIR. It represents a server that provides the full set of functionality defined by FHIR. It is provided to use as a template for system designers to build their own conformance statements from",
        "kind": "capability",
        "software": {
          "name": "Insert your softwware name here..."
        },
        "fhirVersion": "1.2.0",
        "acceptUnknown": "both",
        "format": [
          "xml",
          "json"
        ],
        "rest": [
          {
            "mode": "server",
            "documentation": "All the functionality defined in FHIR",
            "security": {
              "cors": true,
              "service": [
                {
                  "coding": [
                    {
                      "system": "http://hl7.org/fhir/restful-security-service",
                      "code": "SMART-on-FHIR",
                      "display": "SMART-on-FHIR"
                    }
                  ],
                  "text": "See http://docs.smarthealthit.org/"
                }
              ],
              "description": "This is the conformance statement to declare that the server supports SMART-on-FHIR. See the SMART-on-FHIR docs for the extension that would go with such a server"
            },
            "resource": [
              {
                "type": "Account",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Account"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Account.patient",
                  "Account.subject",
                  "Account.owner"
                ],
                "searchParam": [
                  {
                    "name": "balance",
                    "definition": "http://hl7.org/fhir/SearchParameter/account-balance",
                    "type": "quantity",
                    "documentation": "How much is in account?"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/account-patient",
                    "type": "reference",
                    "documentation": "What is account tied to?"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/account-status",
                    "type": "token",
                    "documentation": "active | inactive"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/account-subject",
                    "type": "reference",
                    "documentation": "What is account tied to?"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/account-name",
                    "type": "string",
                    "documentation": "Human-readable label"
                  },
                  {
                    "name": "owner",
                    "definition": "http://hl7.org/fhir/SearchParameter/account-owner",
                    "type": "reference",
                    "documentation": "Who is responsible?"
                  },
                  {
                    "name": "period",
                    "definition": "http://hl7.org/fhir/SearchParameter/account-period",
                    "type": "date",
                    "documentation": "Transaction window"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/account-type",
                    "type": "token",
                    "documentation": "E.g. patient, expense, depreciation"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/account-identifier",
                    "type": "token",
                    "documentation": "Account number"
                  }
                ]
              },
              {
                "type": "AllergyIntolerance",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "AllergyIntolerance.reporter",
                  "AllergyIntolerance.patient",
                  "AllergyIntolerance.recorder"
                ],
                "searchRevInclude": [
                  "ClinicalImpression.problem",
                  "ImmunizationRecommendation.information"
                ],
                "searchParam": [
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-status",
                    "type": "token",
                    "documentation": "active | unconfirmed | confirmed | inactive | resolved | refuted | entered-in-error"
                  },
                  {
                    "name": "onset",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-onset",
                    "type": "date",
                    "documentation": "Date(/time) when manifestations showed"
                  },
                  {
                    "name": "last-date",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-last-date",
                    "type": "date",
                    "documentation": "Date(/time) of last known occurrence of a reaction"
                  },
                  {
                    "name": "severity",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-severity",
                    "type": "token",
                    "documentation": "mild | moderate | severe (of event as a whole)"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-type",
                    "type": "token",
                    "documentation": "allergy | intolerance - Underlying mechanism (if known)"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-date",
                    "type": "date",
                    "documentation": "When recorded"
                  },
                  {
                    "name": "reporter",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-reporter",
                    "type": "reference",
                    "documentation": "Source of the information about the allergy"
                  },
                  {
                    "name": "substance",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-substance",
                    "type": "token",
                    "documentation": "Substance, (or class) considered to be responsible for risk"
                  },
                  {
                    "name": "criticality",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-criticality",
                    "type": "token",
                    "documentation": "CRITL | CRITH | CRITU"
                  },
                  {
                    "name": "category",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-category",
                    "type": "token",
                    "documentation": "food | medication | environment | other - Category of Substance"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-patient",
                    "type": "reference",
                    "documentation": "Who the sensitivity is for"
                  },
                  {
                    "name": "recorder",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-recorder",
                    "type": "reference",
                    "documentation": "Who recorded the sensitivity"
                  },
                  {
                    "name": "route",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-route",
                    "type": "token",
                    "documentation": "How the subject was exposed to the substance"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-identifier",
                    "type": "token",
                    "documentation": "External ids for this item"
                  },
                  {
                    "name": "manifestation",
                    "definition": "http://hl7.org/fhir/SearchParameter/allergyintolerance-manifestation",
                    "type": "token",
                    "documentation": "Clinical symptoms/signs associated with the Event"
                  }
                ]
              },
              {
                "type": "Appointment",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Appointment"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Appointment.patient",
                  "Appointment.practitioner",
                  "Appointment.location",
                  "Appointment.actor"
                ],
                "searchRevInclude": [
                  "AppointmentResponse.appointment",
                  "CarePlan.activityreference",
                  "ClinicalImpression.plan",
                  "ClinicalImpression.action",
                  "Encounter.appointment"
                ],
                "searchParam": [
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointment-patient",
                    "type": "reference",
                    "documentation": "One of the individuals of the appointment is this patient"
                  },
                  {
                    "name": "practitioner",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointment-practitioner",
                    "type": "reference",
                    "documentation": "One of the individuals of the appointment is this practitioner"
                  },
                  {
                    "name": "location",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointment-location",
                    "type": "reference",
                    "documentation": "This location is listed in the participants of the appointment"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointment-status",
                    "type": "token",
                    "documentation": "The overall status of the appointment"
                  },
                  {
                    "name": "part-status",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointment-part-status",
                    "type": "token",
                    "documentation": "The Participation status of the subject, or other participant on the appointment. Can be used to locate participants that have not responded to meeting requests."
                  },
                  {
                    "name": "actor",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointment-actor",
                    "type": "reference",
                    "documentation": "Any one of the individuals participating in the appointment"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointment-date",
                    "type": "date",
                    "documentation": "Appointment date/time."
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointment-identifier",
                    "type": "token",
                    "documentation": "An Identifier of the Appointment"
                  }
                ]
              },
              {
                "type": "AppointmentResponse",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/AppointmentResponse"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "AppointmentResponse.patient",
                  "AppointmentResponse.practitioner",
                  "AppointmentResponse.location",
                  "AppointmentResponse.actor",
                  "AppointmentResponse.appointment"
                ],
                "searchParam": [
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointmentresponse-patient",
                    "type": "reference",
                    "documentation": "This Response is for this Patient"
                  },
                  {
                    "name": "practitioner",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointmentresponse-practitioner",
                    "type": "reference",
                    "documentation": "This Response is for this Practitioner"
                  },
                  {
                    "name": "location",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointmentresponse-location",
                    "type": "reference",
                    "documentation": "This Response is for this Location"
                  },
                  {
                    "name": "part-status",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointmentresponse-part-status",
                    "type": "token",
                    "documentation": "The participants acceptance status for this appointment"
                  },
                  {
                    "name": "actor",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointmentresponse-actor",
                    "type": "reference",
                    "documentation": "The Person, Location/HealthcareService or Device that this appointment response replies for"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointmentresponse-identifier",
                    "type": "token",
                    "documentation": "An Identifier in this appointment response"
                  },
                  {
                    "name": "appointment",
                    "definition": "http://hl7.org/fhir/SearchParameter/appointmentresponse-appointment",
                    "type": "reference",
                    "documentation": "The appointment that the response is attached to"
                  }
                ]
              },
              {
                "type": "AuditEvent",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/AuditEvent"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "AuditEvent.reference",
                  "AuditEvent.patient",
                  "AuditEvent.participant"
                ],
                "searchParam": [
                  {
                    "name": "site",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-site",
                    "type": "token",
                    "documentation": "Logical source location within the enterprise"
                  },
                  {
                    "name": "desc",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-desc",
                    "type": "string",
                    "documentation": "Instance-specific descriptor for Object"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-type",
                    "type": "token",
                    "documentation": "Type/identifier of event"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-date",
                    "type": "date",
                    "documentation": "Time when the event occurred on source"
                  },
                  {
                    "name": "reference",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-reference",
                    "type": "reference",
                    "documentation": "Specific instance of resource (e.g. versioned)"
                  },
                  {
                    "name": "identity",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-identity",
                    "type": "token",
                    "documentation": "Specific instance of object (e.g. versioned)"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-patient",
                    "type": "reference",
                    "documentation": "Direct reference to resource"
                  },
                  {
                    "name": "altid",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-altid",
                    "type": "token",
                    "documentation": "Alternative User id e.g. authentication"
                  },
                  {
                    "name": "source",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-source",
                    "type": "token",
                    "documentation": "The identity of source detecting the event"
                  },
                  {
                    "name": "address",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-address",
                    "type": "token",
                    "documentation": "Identifier for the network access point of the user device"
                  },
                  {
                    "name": "subtype",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-subtype",
                    "type": "token",
                    "documentation": "More specific type/id for the event"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-name",
                    "type": "string",
                    "documentation": "Human-meaningful name for the user"
                  },
                  {
                    "name": "action",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-action",
                    "type": "token",
                    "documentation": "Type of action performed during the event"
                  },
                  {
                    "name": "participant",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-participant",
                    "type": "reference",
                    "documentation": "Direct reference to resource"
                  },
                  {
                    "name": "policy",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-policy",
                    "type": "uri",
                    "documentation": "Policy that authorized event"
                  },
                  {
                    "name": "object-type",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-object-type",
                    "type": "token",
                    "documentation": "Type of object involved"
                  },
                  {
                    "name": "user",
                    "definition": "http://hl7.org/fhir/SearchParameter/auditevent-user",
                    "type": "token",
                    "documentation": "Unique identifier for the user"
                  }
                ]
              },
              {
                "type": "Basic",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Basic"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Basic.author",
                  "Basic.patient",
                  "Basic.subject"
                ],
                "searchParam": [
                  {
                    "name": "author",
                    "definition": "http://hl7.org/fhir/SearchParameter/basic-author",
                    "type": "reference",
                    "documentation": "Who created"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/basic-patient",
                    "type": "reference",
                    "documentation": "Identifies the focus of this resource"
                  },
                  {
                    "name": "created",
                    "definition": "http://hl7.org/fhir/SearchParameter/basic-created",
                    "type": "date",
                    "documentation": "When created"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/basic-subject",
                    "type": "reference",
                    "documentation": "Identifies the focus of this resource"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/basic-code",
                    "type": "token",
                    "documentation": "Kind of Resource"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/basic-identifier",
                    "type": "token",
                    "documentation": "Business identifier"
                  }
                ]
              },
              {
                "type": "Binary",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Binary"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchParam": [
                  {
                    "name": "contenttype",
                    "definition": "http://hl7.org/fhir/SearchParameter/binary-contenttype",
                    "type": "token",
                    "documentation": "MimeType of the binary content"
                  }
                ]
              },
              {
                "type": "BodySite",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/BodySite"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "BodySite.patient"
                ],
                "searchParam": [
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/bodysite-patient",
                    "type": "reference",
                    "documentation": "Patient to whom bodysite belongs"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/bodysite-code",
                    "type": "token",
                    "documentation": "Named anatomical location"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/bodysite-identifier",
                    "type": "token",
                    "documentation": "Identifier for this instance of the anatomical location"
                  }
                ]
              },
              {
                "type": "Bundle",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Bundle"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Bundle.message",
                  "Bundle.composition"
                ],
                "searchParam": [
                  {
                    "name": "message",
                    "definition": "http://hl7.org/fhir/SearchParameter/bundle-message",
                    "type": "reference",
                    "documentation": "The first resource in the bundle, if the bundle type is \"message\" - this is a message header, and this parameter provides access to search its contents"
                  },
                  {
                    "name": "composition",
                    "definition": "http://hl7.org/fhir/SearchParameter/bundle-composition",
                    "type": "reference",
                    "documentation": "The first resource in the bundle, if the bundle type is \"document\" - this is a composition, and this parameter provides access to searches its contents"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/bundle-type",
                    "type": "token",
                    "documentation": "document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection"
                  }
                ]
              },
              {
                "type": "CarePlan",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/CarePlan"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "CarePlan.condition",
                  "CarePlan.subject",
                  "CarePlan.goal",
                  "CarePlan.patient",
                  "CarePlan.participant",
                  "CarePlan.performer",
                  "CarePlan.activityreference",
                  "CarePlan.relatedplan"
                ],
                "searchRevInclude": [
                  "CarePlan.relatedplan",
                  "ClinicalImpression.plan"
                ],
                "searchParam": [
                  {
                    "name": "activitycode",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-activitycode",
                    "type": "token",
                    "documentation": "Detail type of activity"
                  },
                  {
                    "name": "condition",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-condition",
                    "type": "reference",
                    "documentation": "Health issues this plan addresses"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-subject",
                    "type": "reference",
                    "documentation": "Who care plan is for"
                  },
                  {
                    "name": "activitydate",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-activitydate",
                    "type": "date",
                    "documentation": "Specified date occurs within period specified by CarePlan.activity.timingSchedule"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-date",
                    "type": "date",
                    "documentation": "Time period plan covers"
                  },
                  {
                    "name": "goal",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-goal",
                    "type": "reference",
                    "documentation": "Desired outcome of plan"
                  },
                  {
                    "name": "related",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-related",
                    "type": "composite",
                    "documentation": "A combination of the type of relationship and the related plan"
                  },
                  {
                    "name": "relatedcode",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-relatedcode",
                    "type": "token",
                    "documentation": "includes | replaces | fulfills"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-patient",
                    "type": "reference",
                    "documentation": "Who care plan is for"
                  },
                  {
                    "name": "participant",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-participant",
                    "type": "reference",
                    "documentation": "Who is involved"
                  },
                  {
                    "name": "performer",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-performer",
                    "type": "reference",
                    "documentation": "Matches if the practitioner is listed as a performer in any of the \"simple\" activities.  (For performers of the detailed activities, chain through the activitydetail search parameter.)"
                  },
                  {
                    "name": "activityreference",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-activityreference",
                    "type": "reference",
                    "documentation": "Activity details defined in specific resource"
                  },
                  {
                    "name": "relatedplan",
                    "definition": "http://hl7.org/fhir/SearchParameter/careplan-relatedplan",
                    "type": "reference",
                    "documentation": "Plan relationship exists with"
                  }
                ]
              },
              {
                "type": "Claim",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Claim"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Claim.organization",
                  "Claim.patient",
                  "Claim.facility",
                  "Claim.target",
                  "Claim.provider"
                ],
                "searchRevInclude": [
                  "ClaimResponse.request",
                  "ExplanationOfBenefit.claim"
                ],
                "searchParam": [
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/claim-organization",
                    "type": "reference",
                    "documentation": "The reference to the providing organization"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/claim-patient",
                    "type": "reference",
                    "documentation": "Patient receiveing the services"
                  },
                  {
                    "name": "facility",
                    "definition": "http://hl7.org/fhir/SearchParameter/claim-facility",
                    "type": "reference",
                    "documentation": "Facility responsible for the goods and services"
                  },
                  {
                    "name": "created",
                    "definition": "http://hl7.org/fhir/SearchParameter/claim-created",
                    "type": "date",
                    "documentation": "The creation date for the Claim"
                  },
                  {
                    "name": "priority",
                    "definition": "http://hl7.org/fhir/SearchParameter/claim-priority",
                    "type": "token",
                    "documentation": "Processing priority requested"
                  },
                  {
                    "name": "target",
                    "definition": "http://hl7.org/fhir/SearchParameter/claim-target",
                    "type": "reference",
                    "documentation": "The target payor/insurer for the Claim"
                  },
                  {
                    "name": "use",
                    "definition": "http://hl7.org/fhir/SearchParameter/claim-use",
                    "type": "token",
                    "documentation": "The kind of financial resource"
                  },
                  {
                    "name": "provider",
                    "definition": "http://hl7.org/fhir/SearchParameter/claim-provider",
                    "type": "reference",
                    "documentation": "Provider responsible for the Claim"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/claim-identifier",
                    "type": "token",
                    "documentation": "The primary identifier of the financial resource"
                  }
                ]
              },
              {
                "type": "ClaimResponse",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "ClaimResponse.organization",
                  "ClaimResponse.request"
                ],
                "searchParam": [
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/claimresponse-organization",
                    "type": "reference",
                    "documentation": "The organization who generated this resource"
                  },
                  {
                    "name": "created",
                    "definition": "http://hl7.org/fhir/SearchParameter/claimresponse-created",
                    "type": "date",
                    "documentation": "The creation date"
                  },
                  {
                    "name": "request",
                    "definition": "http://hl7.org/fhir/SearchParameter/claimresponse-request",
                    "type": "reference",
                    "documentation": "The claim reference"
                  },
                  {
                    "name": "paymentdate",
                    "definition": "http://hl7.org/fhir/SearchParameter/claimresponse-paymentdate",
                    "type": "date",
                    "documentation": "The expected paymentDate"
                  },
                  {
                    "name": "outcome",
                    "definition": "http://hl7.org/fhir/SearchParameter/claimresponse-outcome",
                    "type": "token",
                    "documentation": "The processing outcome"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/claimresponse-identifier",
                    "type": "token",
                    "documentation": "The identity of the insurer"
                  },
                  {
                    "name": "disposition",
                    "definition": "http://hl7.org/fhir/SearchParameter/claimresponse-disposition",
                    "type": "string",
                    "documentation": "The contents of the disposition message"
                  }
                ]
              },
              {
                "type": "ClinicalImpression",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ClinicalImpression"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "ClinicalImpression.assessor",
                  "ClinicalImpression.trigger",
                  "ClinicalImpression.patient",
                  "ClinicalImpression.plan",
                  "ClinicalImpression.previous",
                  "ClinicalImpression.action",
                  "ClinicalImpression.investigation",
                  "ClinicalImpression.problem"
                ],
                "searchRevInclude": [
                  "ClinicalImpression.previous"
                ],
                "searchParam": [
                  {
                    "name": "assessor",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-assessor",
                    "type": "reference",
                    "documentation": "The clinician performing the assessment"
                  },
                  {
                    "name": "trigger",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-trigger",
                    "type": "reference",
                    "documentation": "Request or event that necessitated this assessment"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-patient",
                    "type": "reference",
                    "documentation": "The patient being assessed"
                  },
                  {
                    "name": "plan",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-plan",
                    "type": "reference",
                    "documentation": "Plan of action after assessment"
                  },
                  {
                    "name": "resolved",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-resolved",
                    "type": "token",
                    "documentation": "Diagnoses/conditions resolved since previous assessment"
                  },
                  {
                    "name": "trigger-code",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-trigger-code",
                    "type": "token",
                    "documentation": "Request or event that necessitated this assessment"
                  },
                  {
                    "name": "previous",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-previous",
                    "type": "reference",
                    "documentation": "Reference to last assessment"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-status",
                    "type": "token",
                    "documentation": "in-progress | completed | entered-in-error"
                  },
                  {
                    "name": "action",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-action",
                    "type": "reference",
                    "documentation": "Actions taken during assessment"
                  },
                  {
                    "name": "finding",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-finding",
                    "type": "token",
                    "documentation": "Specific text or code for finding"
                  },
                  {
                    "name": "investigation",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-investigation",
                    "type": "reference",
                    "documentation": "Record of a specific investigation"
                  },
                  {
                    "name": "problem",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-problem",
                    "type": "reference",
                    "documentation": "General assessment of patient state"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-date",
                    "type": "date",
                    "documentation": "When the assessment occurred"
                  },
                  {
                    "name": "ruledout",
                    "definition": "http://hl7.org/fhir/SearchParameter/clinicalimpression-ruledout",
                    "type": "token",
                    "documentation": "Specific text of code for diagnosis"
                  }
                ]
              },
              {
                "type": "Communication",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Communication"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Communication.sender",
                  "Communication.patient",
                  "Communication.subject",
                  "Communication.request",
                  "Communication.encounter",
                  "Communication.recipient"
                ],
                "searchParam": [
                  {
                    "name": "sender",
                    "definition": "http://hl7.org/fhir/SearchParameter/communication-sender",
                    "type": "reference",
                    "documentation": "Message sender"
                  },
                  {
                    "name": "sent",
                    "definition": "http://hl7.org/fhir/SearchParameter/communication-sent",
                    "type": "date",
                    "documentation": "When sent"
                  },
                  {
                    "name": "category",
                    "definition": "http://hl7.org/fhir/SearchParameter/communication-category",
                    "type": "token",
                    "documentation": "Message category"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/communication-patient",
                    "type": "reference",
                    "documentation": "Focus of message"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/communication-status",
                    "type": "token",
                    "documentation": "in-progress | completed | suspended | rejected | failed"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/communication-subject",
                    "type": "reference",
                    "documentation": "Focus of message"
                  },
                  {
                    "name": "request",
                    "definition": "http://hl7.org/fhir/SearchParameter/communication-request",
                    "type": "reference",
                    "documentation": "CommunicationRequest producing this message"
                  },
                  {
                    "name": "received",
                    "definition": "http://hl7.org/fhir/SearchParameter/communication-received",
                    "type": "date",
                    "documentation": "When received"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/communication-encounter",
                    "type": "reference",
                    "documentation": "Encounter leading to message"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/communication-identifier",
                    "type": "token",
                    "documentation": "Unique identifier"
                  },
                  {
                    "name": "medium",
                    "definition": "http://hl7.org/fhir/SearchParameter/communication-medium",
                    "type": "token",
                    "documentation": "A channel of communication"
                  },
                  {
                    "name": "recipient",
                    "definition": "http://hl7.org/fhir/SearchParameter/communication-recipient",
                    "type": "reference",
                    "documentation": "Message recipient"
                  }
                ]
              },
              {
                "type": "CommunicationRequest",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "CommunicationRequest.sender",
                  "CommunicationRequest.requester",
                  "CommunicationRequest.patient",
                  "CommunicationRequest.subject",
                  "CommunicationRequest.encounter",
                  "CommunicationRequest.recipient"
                ],
                "searchRevInclude": [
                  "CarePlan.activityreference",
                  "ClinicalImpression.plan",
                  "Communication.request"
                ],
                "searchParam": [
                  {
                    "name": "sender",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-sender",
                    "type": "reference",
                    "documentation": "Message sender"
                  },
                  {
                    "name": "requested",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-requested",
                    "type": "date",
                    "documentation": "When ordered or proposed"
                  },
                  {
                    "name": "time",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-time",
                    "type": "date",
                    "documentation": "When scheduled"
                  },
                  {
                    "name": "requester",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-requester",
                    "type": "reference",
                    "documentation": "An individual who requested a communication"
                  },
                  {
                    "name": "category",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-category",
                    "type": "token",
                    "documentation": "Message category"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-patient",
                    "type": "reference",
                    "documentation": "Focus of message"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-status",
                    "type": "token",
                    "documentation": "proposed | planned | requested | received | accepted | in-progress | completed | suspended | rejected | failed"
                  },
                  {
                    "name": "priority",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-priority",
                    "type": "token",
                    "documentation": "Message urgency"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-subject",
                    "type": "reference",
                    "documentation": "Focus of message"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-encounter",
                    "type": "reference",
                    "documentation": "Encounter leading to message"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-identifier",
                    "type": "token",
                    "documentation": "Unique identifier"
                  },
                  {
                    "name": "medium",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-medium",
                    "type": "token",
                    "documentation": "A channel of communication"
                  },
                  {
                    "name": "recipient",
                    "definition": "http://hl7.org/fhir/SearchParameter/communicationrequest-recipient",
                    "type": "reference",
                    "documentation": "Message recipient"
                  }
                ]
              },
              {
                "type": "Composition",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Composition"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Composition.subject",
                  "Composition.encounter",
                  "Composition.author",
                  "Composition.patient",
                  "Composition.attester",
                  "Composition.entry"
                ],
                "searchParam": [
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-status",
                    "type": "token",
                    "documentation": "preliminary | final | amended | entered-in-error"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-subject",
                    "type": "reference",
                    "documentation": "Who and/or what the composition is about"
                  },
                  {
                    "name": "class",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-class",
                    "type": "token",
                    "documentation": "Categorization of Composition"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-encounter",
                    "type": "reference",
                    "documentation": "Context of the Composition"
                  },
                  {
                    "name": "period",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-period",
                    "type": "date",
                    "documentation": "The period covered by the documentation"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-type",
                    "type": "token",
                    "documentation": "Kind of composition (LOINC if possible)"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-date",
                    "type": "date",
                    "documentation": "Composition editing time"
                  },
                  {
                    "name": "section",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-section",
                    "type": "token",
                    "documentation": "Classification of section (recommended)"
                  },
                  {
                    "name": "author",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-author",
                    "type": "reference",
                    "documentation": "Who and/or what authored the composition"
                  },
                  {
                    "name": "title",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-title",
                    "type": "string",
                    "documentation": "Human Readable name/title"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-patient",
                    "type": "reference",
                    "documentation": "Who and/or what the composition is about"
                  },
                  {
                    "name": "confidentiality",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-confidentiality",
                    "type": "token",
                    "documentation": "As defined by affinity domain"
                  },
                  {
                    "name": "attester",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-attester",
                    "type": "reference",
                    "documentation": "Who attested the composition"
                  },
                  {
                    "name": "entry",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-entry",
                    "type": "reference",
                    "documentation": "A reference to data that supports this section"
                  },
                  {
                    "name": "context",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-context",
                    "type": "token",
                    "documentation": "Code(s) that apply to the event being documented"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/composition-identifier",
                    "type": "token",
                    "documentation": "Logical identifier of composition (version-independent)"
                  }
                ]
              },
              {
                "type": "ConceptMap",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ConceptMap"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "ConceptMap.sourceuri",
                  "ConceptMap.source",
                  "ConceptMap.target"
                ],
                "searchParam": [
                  {
                    "name": "dependson",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-dependson",
                    "type": "uri",
                    "documentation": "Reference to element/field/ValueSet mapping depends on"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-status",
                    "type": "token",
                    "documentation": "Status of the concept map"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-date",
                    "type": "date",
                    "documentation": "The concept map publication date"
                  },
                  {
                    "name": "url",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-url",
                    "type": "uri",
                    "documentation": "The URL of the concept map"
                  },
                  {
                    "name": "targetsystem",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-targetsystem",
                    "type": "uri",
                    "documentation": "System of the target (if necessary)"
                  },
                  {
                    "name": "version",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-version",
                    "type": "token",
                    "documentation": "The version identifier of the concept map"
                  },
                  {
                    "name": "publisher",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-publisher",
                    "type": "string",
                    "documentation": "Name of the publisher of the concept map"
                  },
                  {
                    "name": "product",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-product",
                    "type": "uri",
                    "documentation": "Reference to element/field/ValueSet mapping depends on"
                  },
                  {
                    "name": "sourcecode",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-sourcecode",
                    "type": "token",
                    "documentation": "Identifies element being mapped"
                  },
                  {
                    "name": "sourceuri",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-sourceuri",
                    "type": "reference",
                    "documentation": "Identifies the source of the concepts which are being mapped"
                  },
                  {
                    "name": "source",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-source",
                    "type": "reference",
                    "documentation": "Identifies the source of the concepts which are being mapped"
                  },
                  {
                    "name": "description",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-description",
                    "type": "string",
                    "documentation": "Text search in the description of the concept map"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-name",
                    "type": "string",
                    "documentation": "Name of the concept map"
                  },
                  {
                    "name": "context",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-context",
                    "type": "token",
                    "documentation": "A use context assigned to the concept map"
                  },
                  {
                    "name": "target",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-target",
                    "type": "reference",
                    "documentation": "Provides context to the mappings"
                  },
                  {
                    "name": "targetcode",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-targetcode",
                    "type": "token",
                    "documentation": "Code that identifies the target element"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-identifier",
                    "type": "token",
                    "documentation": "Additional identifier for the concept map"
                  },
                  {
                    "name": "sourcesystem",
                    "definition": "http://hl7.org/fhir/SearchParameter/conceptmap-sourcesystem",
                    "type": "uri",
                    "documentation": "Code System (if value set crosses code systems)"
                  }
                ]
              },
              {
                "type": "Condition",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Condition"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Condition.asserter",
                  "Condition.encounter",
                  "Condition.patient"
                ],
                "searchRevInclude": [
                  "CarePlan.condition",
                  "ClinicalImpression.problem",
                  "Encounter.condition",
                  "Encounter.indication",
                  "Encounter.procedure",
                  "EpisodeOfCare.condition",
                  "RiskAssessment.condition"
                ],
                "searchParam": [
                  {
                    "name": "date-recorded",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-date-recorded",
                    "type": "date",
                    "documentation": "A date, when the Condition statement was documented"
                  },
                  {
                    "name": "asserter",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-asserter",
                    "type": "reference",
                    "documentation": "Person who asserts this condition"
                  },
                  {
                    "name": "onset",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-onset",
                    "type": "date",
                    "documentation": "Date related onsets (dateTime and Period)"
                  },
                  {
                    "name": "evidence",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-evidence",
                    "type": "token",
                    "documentation": "Manifestation/symptom"
                  },
                  {
                    "name": "body-site",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-body-site",
                    "type": "token",
                    "documentation": "Anatomical location, if relevant"
                  },
                  {
                    "name": "onset-info",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-onset-info",
                    "type": "string",
                    "documentation": "Other onsets (boolean, age, range, string)"
                  },
                  {
                    "name": "severity",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-severity",
                    "type": "token",
                    "documentation": "The severity of the condition"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-code",
                    "type": "token",
                    "documentation": "Code for the condition"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-encounter",
                    "type": "reference",
                    "documentation": "Encounter when condition first asserted"
                  },
                  {
                    "name": "stage",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-stage",
                    "type": "token",
                    "documentation": "Simple summary (disease specific)"
                  },
                  {
                    "name": "category",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-category",
                    "type": "token",
                    "documentation": "The category of the condition"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-patient",
                    "type": "reference",
                    "documentation": "Who has the condition?"
                  },
                  {
                    "name": "clinicalstatus",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-clinicalstatus",
                    "type": "token",
                    "documentation": "The clinical status of the condition"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/condition-identifier",
                    "type": "token",
                    "documentation": "A unique identifier of the condition record"
                  }
                ]
              },
              {
                "type": "Conformance",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Conformance"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Conformance.supported-profile",
                  "Conformance.profile"
                ],
                "searchParam": [
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-status",
                    "type": "token",
                    "documentation": "The current status of the conformance statement"
                  },
                  {
                    "name": "resource",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-resource",
                    "type": "token",
                    "documentation": "Name of a resource mentioned in a conformance statement"
                  },
                  {
                    "name": "security",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-security",
                    "type": "token",
                    "documentation": "OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates"
                  },
                  {
                    "name": "format",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-format",
                    "type": "token",
                    "documentation": "formats supported (xml | json | mime type)"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-date",
                    "type": "date",
                    "documentation": "The conformance statement publication date"
                  },
                  {
                    "name": "url",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-url",
                    "type": "uri",
                    "documentation": "The uri that identifies the conformance statement"
                  },
                  {
                    "name": "version",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-version",
                    "type": "token",
                    "documentation": "The version identifier of the conformance statement"
                  },
                  {
                    "name": "publisher",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-publisher",
                    "type": "string",
                    "documentation": "Name of the publisher of the conformance statement"
                  },
                  {
                    "name": "mode",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-mode",
                    "type": "token",
                    "documentation": "Mode - restful (server/client) or messaging (sender/receiver)"
                  },
                  {
                    "name": "software",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-software",
                    "type": "string",
                    "documentation": "Part of a the name of a software application"
                  },
                  {
                    "name": "description",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-description",
                    "type": "string",
                    "documentation": "Text search in the description of the conformance statement"
                  },
                  {
                    "name": "event",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-event",
                    "type": "token",
                    "documentation": "Event code in a conformance statement"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-name",
                    "type": "string",
                    "documentation": "Name of the conformance statement"
                  },
                  {
                    "name": "supported-profile",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-supported-profile",
                    "type": "reference",
                    "documentation": "Profiles for use cases supported"
                  },
                  {
                    "name": "fhirversion",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-fhirversion",
                    "type": "token",
                    "documentation": "The version of FHIR"
                  },
                  {
                    "name": "profile",
                    "definition": "http://hl7.org/fhir/SearchParameter/conformance-profile",
                    "type": "reference",
                    "documentation": "A profile id invoked in a conformance statement"
                  }
                ]
              },
              {
                "type": "Contract",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Contract"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Contract.signer",
                  "Contract.patient",
                  "Contract.subject",
                  "Contract.actor"
                ],
                "searchRevInclude": [
                  "Contract.actor"
                ],
                "searchParam": [
                  {
                    "name": "signer",
                    "definition": "http://hl7.org/fhir/SearchParameter/contract-signer",
                    "type": "reference",
                    "documentation": "Contract Signatory Party"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/contract-patient",
                    "type": "reference",
                    "documentation": "The identity of the target of the contract (if a patient)"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/contract-subject",
                    "type": "reference",
                    "documentation": "The identity of the target of the contract"
                  },
                  {
                    "name": "actor",
                    "definition": "http://hl7.org/fhir/SearchParameter/contract-actor",
                    "type": "reference",
                    "documentation": "Contract Actor Type"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/contract-identifier",
                    "type": "token",
                    "documentation": "The identity of the contract"
                  }
                ]
              },
              {
                "type": "Coverage",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Coverage"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Coverage.issuer",
                  "Coverage.subscriber"
                ],
                "searchParam": [
                  {
                    "name": "plan",
                    "definition": "http://hl7.org/fhir/SearchParameter/coverage-plan",
                    "type": "token",
                    "documentation": "A plan or policy identifier"
                  },
                  {
                    "name": "issuer",
                    "definition": "http://hl7.org/fhir/SearchParameter/coverage-issuer",
                    "type": "reference",
                    "documentation": "The identity of the insurer"
                  },
                  {
                    "name": "sequence",
                    "definition": "http://hl7.org/fhir/SearchParameter/coverage-sequence",
                    "type": "token",
                    "documentation": "Sequence number"
                  },
                  {
                    "name": "dependent",
                    "definition": "http://hl7.org/fhir/SearchParameter/coverage-dependent",
                    "type": "token",
                    "documentation": "Dependent number"
                  },
                  {
                    "name": "group",
                    "definition": "http://hl7.org/fhir/SearchParameter/coverage-group",
                    "type": "token",
                    "documentation": "Group identifier"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/coverage-type",
                    "type": "token",
                    "documentation": "The kind of coverage"
                  },
                  {
                    "name": "subscriber",
                    "definition": "http://hl7.org/fhir/SearchParameter/coverage-subscriber",
                    "type": "reference",
                    "documentation": "Reference to the subscriber"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/coverage-identifier",
                    "type": "token",
                    "documentation": "The primary identifier of the insured"
                  },
                  {
                    "name": "subplan",
                    "definition": "http://hl7.org/fhir/SearchParameter/coverage-subplan",
                    "type": "token",
                    "documentation": "Sub-plan identifier"
                  }
                ]
              },
              {
                "type": "DataElement",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/DataElement"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchParam": [
                  {
                    "name": "stringency",
                    "definition": "http://hl7.org/fhir/SearchParameter/dataelement-stringency",
                    "type": "token",
                    "documentation": "The stringency of the data element definition"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/dataelement-status",
                    "type": "token",
                    "documentation": "The current status of the data element"
                  },
                  {
                    "name": "description",
                    "definition": "http://hl7.org/fhir/SearchParameter/dataelement-description",
                    "type": "string",
                    "documentation": "Text search in the description of the data element.  This corresponds to the definition of the first DataElement.element."
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/dataelement-name",
                    "type": "string",
                    "documentation": "Name of the data element"
                  },
                  {
                    "name": "context",
                    "definition": "http://hl7.org/fhir/SearchParameter/dataelement-context",
                    "type": "token",
                    "documentation": "A use context assigned to the data element"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/dataelement-code",
                    "type": "token",
                    "documentation": "A code for the data element (server may choose to do subsumption)"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/dataelement-date",
                    "type": "date",
                    "documentation": "The data element publication date"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/dataelement-identifier",
                    "type": "token",
                    "documentation": "The identifier of the data element"
                  },
                  {
                    "name": "url",
                    "definition": "http://hl7.org/fhir/SearchParameter/dataelement-url",
                    "type": "uri",
                    "documentation": "The official URL for the data element"
                  },
                  {
                    "name": "publisher",
                    "definition": "http://hl7.org/fhir/SearchParameter/dataelement-publisher",
                    "type": "string",
                    "documentation": "Name of the publisher of the data element"
                  },
                  {
                    "name": "version",
                    "definition": "http://hl7.org/fhir/SearchParameter/dataelement-version",
                    "type": "string",
                    "documentation": "The version identifier of the data element"
                  }
                ]
              },
              {
                "type": "DecisionSupportRule",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/DecisionSupportRule"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple"
              },
              {
                "type": "DecisionSupportServiceModule",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/DecisionSupportServiceModule"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple"
              },
              {
                "type": "DetectedIssue",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "DetectedIssue.author",
                  "DetectedIssue.implicated",
                  "DetectedIssue.patient"
                ],
                "searchParam": [
                  {
                    "name": "author",
                    "definition": "http://hl7.org/fhir/SearchParameter/detectedissue-author",
                    "type": "reference",
                    "documentation": "The provider or device that identified the issue"
                  },
                  {
                    "name": "category",
                    "definition": "http://hl7.org/fhir/SearchParameter/detectedissue-category",
                    "type": "token",
                    "documentation": "Issue Category, e.g. drug-drug, duplicate therapy, etc."
                  },
                  {
                    "name": "implicated",
                    "definition": "http://hl7.org/fhir/SearchParameter/detectedissue-implicated",
                    "type": "reference",
                    "documentation": "Problem resource"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/detectedissue-patient",
                    "type": "reference",
                    "documentation": "Associated patient"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/detectedissue-date",
                    "type": "date",
                    "documentation": "When identified"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/detectedissue-identifier",
                    "type": "token",
                    "documentation": "Unique id for the detected issue"
                  }
                ]
              },
              {
                "type": "Device",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Device"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Device.organization",
                  "Device.patient",
                  "Device.location"
                ],
                "searchRevInclude": [
                  "Account.patient",
                  "Account.subject",
                  "Appointment.patient",
                  "Appointment.practitioner",
                  "Appointment.location",
                  "Appointment.actor",
                  "AppointmentResponse.patient",
                  "AppointmentResponse.practitioner",
                  "AppointmentResponse.location",
                  "AppointmentResponse.actor",
                  "AuditEvent.patient",
                  "AuditEvent.participant",
                  "Communication.sender",
                  "Communication.recipient",
                  "CommunicationRequest.sender",
                  "CommunicationRequest.recipient",
                  "Composition.author",
                  "Contract.actor",
                  "DetectedIssue.author",
                  "DeviceComponent.source",
                  "DeviceMetric.source",
                  "DeviceUseRequest.device",
                  "DeviceUseStatement.device",
                  "DiagnosticOrder.subject",
                  "DiagnosticOrder.actor",
                  "DiagnosticOrder.patient",
                  "DiagnosticReport.subject",
                  "DiagnosticReport.patient",
                  "DocumentManifest.subject",
                  "DocumentManifest.author",
                  "DocumentManifest.patient",
                  "DocumentReference.subject",
                  "DocumentReference.author",
                  "DocumentReference.patient",
                  "Flag.author",
                  "Group.member",
                  "ImagingObjectSelection.author",
                  "List.patient",
                  "List.source",
                  "List.subject",
                  "Media.patient",
                  "Media.subject",
                  "MedicationAdministration.device",
                  "MessageHeader.target",
                  "Observation.subject",
                  "Observation.patient",
                  "Observation.device",
                  "Order.patient",
                  "Order.subject",
                  "Order.target",
                  "OrderResponse.who",
                  "ProcedureRequest.orderer",
                  "Provenance.agent",
                  "QuestionnaireResponse.author",
                  "RiskAssessment.performer",
                  "Schedule.actor",
                  "Specimen.patient",
                  "Specimen.subject"
                ],
                "searchParam": [
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/device-organization",
                    "type": "reference",
                    "documentation": "The organization responsible for the device"
                  },
                  {
                    "name": "model",
                    "definition": "http://hl7.org/fhir/SearchParameter/device-model",
                    "type": "string",
                    "documentation": "The model of the device"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/device-patient",
                    "type": "reference",
                    "documentation": "Patient information, if the resource is affixed to a person"
                  },
                  {
                    "name": "location",
                    "definition": "http://hl7.org/fhir/SearchParameter/device-location",
                    "type": "reference",
                    "documentation": "A location, where the resource is found"
                  },
                  {
                    "name": "manufacturer",
                    "definition": "http://hl7.org/fhir/SearchParameter/device-manufacturer",
                    "type": "string",
                    "documentation": "The manufacturer of the device"
                  },
                  {
                    "name": "udi",
                    "definition": "http://hl7.org/fhir/SearchParameter/device-udi",
                    "type": "string",
                    "documentation": "FDA mandated Unique Device Identifier"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/device-type",
                    "type": "token",
                    "documentation": "The type of the device"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/device-identifier",
                    "type": "token",
                    "documentation": "Instance id from manufacturer, owner, and others"
                  },
                  {
                    "name": "url",
                    "definition": "http://hl7.org/fhir/SearchParameter/device-url",
                    "type": "uri",
                    "documentation": "Network address to contact device"
                  }
                ]
              },
              {
                "type": "DeviceComponent",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/DeviceComponent"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "DeviceComponent.source",
                  "DeviceComponent.parent"
                ],
                "searchRevInclude": [
                  "DeviceComponent.parent",
                  "DeviceMetric.parent"
                ],
                "searchParam": [
                  {
                    "name": "source",
                    "definition": "http://hl7.org/fhir/SearchParameter/devicecomponent-source",
                    "type": "reference",
                    "documentation": "The device source"
                  },
                  {
                    "name": "parent",
                    "definition": "http://hl7.org/fhir/SearchParameter/devicecomponent-parent",
                    "type": "reference",
                    "documentation": "The parent DeviceComponent resource"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/devicecomponent-type",
                    "type": "token",
                    "documentation": "The device component type"
                  }
                ]
              },
              {
                "type": "DeviceMetric",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "DeviceMetric.source",
                  "DeviceMetric.parent"
                ],
                "searchRevInclude": [
                  "Observation.device"
                ],
                "searchParam": [
                  {
                    "name": "category",
                    "definition": "http://hl7.org/fhir/SearchParameter/devicemetric-category",
                    "type": "token",
                    "documentation": "The category of the metric"
                  },
                  {
                    "name": "source",
                    "definition": "http://hl7.org/fhir/SearchParameter/devicemetric-source",
                    "type": "reference",
                    "documentation": "The device resource"
                  },
                  {
                    "name": "parent",
                    "definition": "http://hl7.org/fhir/SearchParameter/devicemetric-parent",
                    "type": "reference",
                    "documentation": "The parent DeviceMetric resource"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/devicemetric-type",
                    "type": "token",
                    "documentation": "The component type"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/devicemetric-identifier",
                    "type": "token",
                    "documentation": "The identifier of the metric"
                  }
                ]
              },
              {
                "type": "DeviceUseRequest",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/DeviceUseRequest"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "DeviceUseRequest.patient",
                  "DeviceUseRequest.subject",
                  "DeviceUseRequest.device"
                ],
                "searchRevInclude": [
                  "CarePlan.activityreference",
                  "ClinicalImpression.plan"
                ],
                "searchParam": [
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/deviceuserequest-patient",
                    "type": "reference",
                    "documentation": "Search by subject - a patient"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/deviceuserequest-subject",
                    "type": "reference",
                    "documentation": "Search by subject"
                  },
                  {
                    "name": "device",
                    "definition": "http://hl7.org/fhir/SearchParameter/deviceuserequest-device",
                    "type": "reference",
                    "documentation": "Device requested"
                  }
                ]
              },
              {
                "type": "DeviceUseStatement",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/DeviceUseStatement"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "DeviceUseStatement.patient",
                  "DeviceUseStatement.subject",
                  "DeviceUseStatement.device"
                ],
                "searchParam": [
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/deviceusestatement-patient",
                    "type": "reference",
                    "documentation": "Search by subject - a patient"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/deviceusestatement-subject",
                    "type": "reference",
                    "documentation": "Search by subject"
                  },
                  {
                    "name": "device",
                    "definition": "http://hl7.org/fhir/SearchParameter/deviceusestatement-device",
                    "type": "reference",
                    "documentation": "Search by device"
                  }
                ]
              },
              {
                "type": "DiagnosticOrder",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "DiagnosticOrder.orderer",
                  "DiagnosticOrder.subject",
                  "DiagnosticOrder.actor",
                  "DiagnosticOrder.encounter",
                  "DiagnosticOrder.patient",
                  "DiagnosticOrder.specimen"
                ],
                "searchRevInclude": [
                  "CarePlan.activityreference",
                  "ClinicalImpression.plan",
                  "ClinicalImpression.action",
                  "DiagnosticReport.request",
                  "ImagingStudy.order"
                ],
                "searchParam": [
                  {
                    "name": "orderer",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-orderer",
                    "type": "reference",
                    "documentation": "Who ordered the test"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-status",
                    "type": "token",
                    "documentation": "proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-subject",
                    "type": "reference",
                    "documentation": "Who and/or what test is about"
                  },
                  {
                    "name": "item-status",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-item-status",
                    "type": "token",
                    "documentation": "proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed"
                  },
                  {
                    "name": "event-status",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-event-status",
                    "type": "token",
                    "documentation": "proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed"
                  },
                  {
                    "name": "actor",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-actor",
                    "type": "reference",
                    "documentation": "Who recorded or did this"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-code",
                    "type": "token",
                    "documentation": "Code to indicate the item (test or panel) being ordered"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-encounter",
                    "type": "reference",
                    "documentation": "The encounter that this diagnostic order is associated with"
                  },
                  {
                    "name": "item-past-status",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-item-past-status",
                    "type": "token",
                    "documentation": "proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-patient",
                    "type": "reference",
                    "documentation": "Who and/or what test is about"
                  },
                  {
                    "name": "bodysite",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-bodysite",
                    "type": "token",
                    "documentation": "Location of requested test (if applicable)"
                  },
                  {
                    "name": "item-date",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-item-date",
                    "type": "date",
                    "documentation": "The date at which the event happened"
                  },
                  {
                    "name": "specimen",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-specimen",
                    "type": "reference",
                    "documentation": "If the whole order relates to specific specimens"
                  },
                  {
                    "name": "event-status-date",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-event-status-date",
                    "type": "composite",
                    "documentation": "A combination of past-status and date"
                  },
                  {
                    "name": "event-date",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-event-date",
                    "type": "date",
                    "documentation": "The date at which the event happened"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-identifier",
                    "type": "token",
                    "documentation": "Identifiers assigned to this order"
                  },
                  {
                    "name": "item-status-date",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticorder-item-status-date",
                    "type": "composite",
                    "documentation": "A combination of item-past-status and item-date"
                  }
                ]
              },
              {
                "type": "DiagnosticReport",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "DiagnosticReport.result",
                  "DiagnosticReport.subject",
                  "DiagnosticReport.image",
                  "DiagnosticReport.encounter",
                  "DiagnosticReport.patient",
                  "DiagnosticReport.request",
                  "DiagnosticReport.specimen",
                  "DiagnosticReport.performer"
                ],
                "searchRevInclude": [
                  "ClinicalImpression.investigation"
                ],
                "searchParam": [
                  {
                    "name": "result",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-result",
                    "type": "reference",
                    "documentation": "Link to an atomic result (observation resource)"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-status",
                    "type": "token",
                    "documentation": "The status of the report"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-subject",
                    "type": "reference",
                    "documentation": "The subject of the report"
                  },
                  {
                    "name": "issued",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-issued",
                    "type": "date",
                    "documentation": "When the report was issued"
                  },
                  {
                    "name": "diagnosis",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-diagnosis",
                    "type": "token",
                    "documentation": "A coded diagnosis on the report"
                  },
                  {
                    "name": "image",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-image",
                    "type": "reference",
                    "documentation": "A reference to the image source."
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-encounter",
                    "type": "reference",
                    "documentation": "The Encounter when the order was made"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-code",
                    "type": "token",
                    "documentation": "The code for the report as a whole, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-date",
                    "type": "date",
                    "documentation": "The clinically relevant time of the report"
                  },
                  {
                    "name": "category",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-category",
                    "type": "token",
                    "documentation": "Which diagnostic discipline/department created the report"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-patient",
                    "type": "reference",
                    "documentation": "The subject of the report if a patient"
                  },
                  {
                    "name": "request",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-request",
                    "type": "reference",
                    "documentation": "Reference to the test or procedure request."
                  },
                  {
                    "name": "specimen",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-specimen",
                    "type": "reference",
                    "documentation": "The specimen details"
                  },
                  {
                    "name": "performer",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-performer",
                    "type": "reference",
                    "documentation": "Who was the source of the report (organization)"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/diagnosticreport-identifier",
                    "type": "token",
                    "documentation": "An identifier for the report"
                  }
                ]
              },
              {
                "type": "DocumentManifest",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/DocumentManifest"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "DocumentManifest.related-ref",
                  "DocumentManifest.content-ref",
                  "DocumentManifest.subject",
                  "DocumentManifest.recipient",
                  "DocumentManifest.author",
                  "DocumentManifest.patient"
                ],
                "searchParam": [
                  {
                    "name": "related-ref",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-related-ref",
                    "type": "reference",
                    "documentation": "Related Resource"
                  },
                  {
                    "name": "related-id",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-related-id",
                    "type": "token",
                    "documentation": "Identifiers of things that are related"
                  },
                  {
                    "name": "content-ref",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-content-ref",
                    "type": "reference",
                    "documentation": "Contents of this set of documents"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-status",
                    "type": "token",
                    "documentation": "current | superseded | entered-in-error"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-subject",
                    "type": "reference",
                    "documentation": "The subject of the set of documents"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-type",
                    "type": "token",
                    "documentation": "Kind of document set"
                  },
                  {
                    "name": "recipient",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-recipient",
                    "type": "reference",
                    "documentation": "Intended to get notified about this set of documents"
                  },
                  {
                    "name": "author",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-author",
                    "type": "reference",
                    "documentation": "Who and/or what authored the manifest"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-patient",
                    "type": "reference",
                    "documentation": "The subject of the set of documents"
                  },
                  {
                    "name": "source",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-source",
                    "type": "uri",
                    "documentation": "The source system/application/software"
                  },
                  {
                    "name": "created",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-created",
                    "type": "date",
                    "documentation": "When this document manifest created"
                  },
                  {
                    "name": "description",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-description",
                    "type": "string",
                    "documentation": "Human-readable description (title)"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentmanifest-identifier",
                    "type": "token",
                    "documentation": "Unique Identifier for the set of documents"
                  }
                ]
              },
              {
                "type": "DocumentReference",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "DocumentReference.related-ref",
                  "DocumentReference.relatesto",
                  "DocumentReference.subject",
                  "DocumentReference.encounter",
                  "DocumentReference.author",
                  "DocumentReference.custodian",
                  "DocumentReference.patient",
                  "DocumentReference.authenticator"
                ],
                "searchRevInclude": [
                  "DocumentReference.relatesto"
                ],
                "searchParam": [
                  {
                    "name": "related-ref",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-related-ref",
                    "type": "reference",
                    "documentation": "Related Resource"
                  },
                  {
                    "name": "related-id",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-related-id",
                    "type": "token",
                    "documentation": "Identifier of related objects or events"
                  },
                  {
                    "name": "indexed",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-indexed",
                    "type": "date",
                    "documentation": "When this document reference created"
                  },
                  {
                    "name": "location",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-location",
                    "type": "uri",
                    "documentation": "Uri where the data can be found"
                  },
                  {
                    "name": "relatesto",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-relatesto",
                    "type": "reference",
                    "documentation": "Target of the relationship"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-subject",
                    "type": "reference",
                    "documentation": "Who/what is the subject of the document"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-encounter",
                    "type": "reference",
                    "documentation": "Context of the document  content"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-type",
                    "type": "token",
                    "documentation": "Kind of document (LOINC if possible)"
                  },
                  {
                    "name": "securitylabel",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-securitylabel",
                    "type": "token",
                    "documentation": "Document security-tags"
                  },
                  {
                    "name": "setting",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-setting",
                    "type": "token",
                    "documentation": "Additional details about where the content was created (e.g. clinical specialty)"
                  },
                  {
                    "name": "author",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-author",
                    "type": "reference",
                    "documentation": "Who and/or what authored the document"
                  },
                  {
                    "name": "custodian",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-custodian",
                    "type": "reference",
                    "documentation": "Organization which maintains the document"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-patient",
                    "type": "reference",
                    "documentation": "Who/what is the subject of the document"
                  },
                  {
                    "name": "facility",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-facility",
                    "type": "token",
                    "documentation": "Kind of facility where patient was seen"
                  },
                  {
                    "name": "created",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-created",
                    "type": "date",
                    "documentation": "Document creation time"
                  },
                  {
                    "name": "description",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-description",
                    "type": "string",
                    "documentation": "Human-readable description (title)"
                  },
                  {
                    "name": "event",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-event",
                    "type": "token",
                    "documentation": "Main Clinical Acts Documented"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-status",
                    "type": "token",
                    "documentation": "current | superseded | entered-in-error"
                  },
                  {
                    "name": "relation",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-relation",
                    "type": "token",
                    "documentation": "replaces | transforms | signs | appends"
                  },
                  {
                    "name": "class",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-class",
                    "type": "token",
                    "documentation": "Categorization of document"
                  },
                  {
                    "name": "format",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-format",
                    "type": "token",
                    "documentation": "Format/content rules for the document"
                  },
                  {
                    "name": "period",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-period",
                    "type": "date",
                    "documentation": "Time of service that is being documented"
                  },
                  {
                    "name": "authenticator",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-authenticator",
                    "type": "reference",
                    "documentation": "Who/what authenticated the document"
                  },
                  {
                    "name": "relationship",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-relationship",
                    "type": "composite",
                    "documentation": "Combination of relation and relatesTo"
                  },
                  {
                    "name": "language",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-language",
                    "type": "token",
                    "documentation": "Human language of the content (BCP-47)"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/documentreference-identifier",
                    "type": "token",
                    "documentation": "Master Version Specific Identifier"
                  }
                ]
              },
              {
                "type": "EligibilityRequest",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/EligibilityRequest"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "EligibilityRequest.organization",
                  "EligibilityRequest.patient",
                  "EligibilityRequest.facility",
                  "EligibilityRequest.provider"
                ],
                "searchRevInclude": [
                  "EligibilityResponse.request"
                ],
                "searchParam": [
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityrequest-organization",
                    "type": "reference",
                    "documentation": "The reference to the providing organization"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityrequest-patient",
                    "type": "reference",
                    "documentation": "The reference to the patient"
                  },
                  {
                    "name": "facility",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityrequest-facility",
                    "type": "reference",
                    "documentation": "Facility responsible for the goods and services"
                  },
                  {
                    "name": "created",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityrequest-created",
                    "type": "date",
                    "documentation": "The creation date for the EOB"
                  },
                  {
                    "name": "provider",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityrequest-provider",
                    "type": "reference",
                    "documentation": "The reference to the provider"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityrequest-identifier",
                    "type": "token",
                    "documentation": "The business identifier of the Eligibility"
                  }
                ]
              },
              {
                "type": "EligibilityResponse",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/EligibilityResponse"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "EligibilityResponse.organization",
                  "EligibilityResponse.requestprovider",
                  "EligibilityResponse.request",
                  "EligibilityResponse.requestorganization"
                ],
                "searchParam": [
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityresponse-organization",
                    "type": "reference",
                    "documentation": "The organization which generated this resource"
                  },
                  {
                    "name": "requestprovider",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityresponse-requestprovider",
                    "type": "reference",
                    "documentation": "Reference to the EligibilityRequest provider"
                  },
                  {
                    "name": "created",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityresponse-created",
                    "type": "date",
                    "documentation": "The creation date"
                  },
                  {
                    "name": "request",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityresponse-request",
                    "type": "reference",
                    "documentation": "The EligibilityRequest reference"
                  },
                  {
                    "name": "requestorganization",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityresponse-requestorganization",
                    "type": "reference",
                    "documentation": "Reference to the EligibilityRequest organization"
                  },
                  {
                    "name": "outcome",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityresponse-outcome",
                    "type": "token",
                    "documentation": "The processing outcome"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityresponse-identifier",
                    "type": "token",
                    "documentation": "The business identifier"
                  },
                  {
                    "name": "disposition",
                    "definition": "http://hl7.org/fhir/SearchParameter/eligibilityresponse-disposition",
                    "type": "string",
                    "documentation": "The contents of the disposition message"
                  }
                ]
              },
              {
                "type": "Encounter",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Encounter"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Encounter.episodeofcare",
                  "Encounter.condition",
                  "Encounter.location",
                  "Encounter.indication",
                  "Encounter.part-of",
                  "Encounter.appointment",
                  "Encounter.patient",
                  "Encounter.practitioner",
                  "Encounter.participant",
                  "Encounter.incomingreferral",
                  "Encounter.procedure"
                ],
                "searchRevInclude": [
                  "Communication.encounter",
                  "CommunicationRequest.encounter",
                  "Composition.encounter",
                  "Condition.encounter",
                  "DiagnosticOrder.encounter",
                  "DiagnosticReport.encounter",
                  "DocumentReference.encounter",
                  "Encounter.part-of",
                  "Flag.encounter",
                  "List.encounter",
                  "MedicationAdministration.encounter",
                  "MedicationOrder.encounter",
                  "NutritionOrder.encounter",
                  "Observation.encounter",
                  "Procedure.encounter",
                  "ProcedureRequest.encounter",
                  "QuestionnaireResponse.encounter",
                  "RiskAssessment.encounter",
                  "VisionPrescription.encounter"
                ],
                "searchParam": [
                  {
                    "name": "participant-type",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-participant-type",
                    "type": "token",
                    "documentation": "Role of participant in encounter"
                  },
                  {
                    "name": "episodeofcare",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-episodeofcare",
                    "type": "reference",
                    "documentation": "Episode(s) of care that this encounter should be recorded against"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-status",
                    "type": "token",
                    "documentation": "planned | arrived | in-progress | onleave | finished | cancelled"
                  },
                  {
                    "name": "reason",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-reason",
                    "type": "token",
                    "documentation": "Reason the encounter takes place (code)"
                  },
                  {
                    "name": "condition",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-condition",
                    "type": "reference",
                    "documentation": "Reason the encounter takes place (resource)"
                  },
                  {
                    "name": "location",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-location",
                    "type": "reference",
                    "documentation": "Location the encounter takes place"
                  },
                  {
                    "name": "indication",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-indication",
                    "type": "reference",
                    "documentation": "Reason the encounter takes place (resource)"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-type",
                    "type": "token",
                    "documentation": "Specific type of encounter"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-date",
                    "type": "date",
                    "documentation": "A date within the period the Encounter lasted"
                  },
                  {
                    "name": "special-arrangement",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-special-arrangement",
                    "type": "token",
                    "documentation": "Wheelchair, translator, stretcher, etc."
                  },
                  {
                    "name": "part-of",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-part-of",
                    "type": "reference",
                    "documentation": "Another Encounter this encounter is part of"
                  },
                  {
                    "name": "appointment",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-appointment",
                    "type": "reference",
                    "documentation": "The appointment that scheduled this encounter"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-patient",
                    "type": "reference",
                    "documentation": "The patient present at the encounter"
                  },
                  {
                    "name": "practitioner",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-practitioner",
                    "type": "reference",
                    "documentation": "Persons involved in the encounter other than the patient"
                  },
                  {
                    "name": "length",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-length",
                    "type": "number",
                    "documentation": "Length of encounter in days"
                  },
                  {
                    "name": "participant",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-participant",
                    "type": "reference",
                    "documentation": "Persons involved in the encounter other than the patient"
                  },
                  {
                    "name": "incomingreferral",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-incomingreferral",
                    "type": "reference",
                    "documentation": "The ReferralRequest that initiated this encounter"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-identifier",
                    "type": "token",
                    "documentation": "Identifier(s) by which this encounter is known"
                  },
                  {
                    "name": "procedure",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-procedure",
                    "type": "reference",
                    "documentation": "Reason the encounter takes place (resource)"
                  },
                  {
                    "name": "location-period",
                    "definition": "http://hl7.org/fhir/SearchParameter/encounter-location-period",
                    "type": "date",
                    "documentation": "Time period during which the patient was present at the location"
                  }
                ]
              },
              {
                "type": "EnrollmentRequest",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/EnrollmentRequest"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "EnrollmentRequest.patient",
                  "EnrollmentRequest.subject"
                ],
                "searchParam": [
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/enrollmentrequest-patient",
                    "type": "reference",
                    "documentation": "The party to be enrolled"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/enrollmentrequest-subject",
                    "type": "reference",
                    "documentation": "The party to be enrolled"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/enrollmentrequest-identifier",
                    "type": "token",
                    "documentation": "The business identifier of the Enrollment"
                  }
                ]
              },
              {
                "type": "EnrollmentResponse",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/EnrollmentResponse"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchParam": [
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/enrollmentresponse-identifier",
                    "type": "token",
                    "documentation": "The business identifier of the Explanation of Benefit"
                  }
                ]
              },
              {
                "type": "EpisodeOfCare",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "EpisodeOfCare.organization",
                  "EpisodeOfCare.patient",
                  "EpisodeOfCare.condition",
                  "EpisodeOfCare.care-manager",
                  "EpisodeOfCare.incomingreferral",
                  "EpisodeOfCare.team-member"
                ],
                "searchRevInclude": [
                  "Encounter.episodeofcare"
                ],
                "searchParam": [
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/episodeofcare-organization",
                    "type": "reference",
                    "documentation": "The organization that has assumed the specific responsibilities of this EpisodeOfCare"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/episodeofcare-patient",
                    "type": "reference",
                    "documentation": "Patient for this episode of care"
                  },
                  {
                    "name": "condition",
                    "definition": "http://hl7.org/fhir/SearchParameter/episodeofcare-condition",
                    "type": "reference",
                    "documentation": "Conditions/problems/diagnoses this episode of care is for"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/episodeofcare-status",
                    "type": "token",
                    "documentation": "The current status of the Episode of Care as provided (does not check the status history collection)"
                  },
                  {
                    "name": "care-manager",
                    "definition": "http://hl7.org/fhir/SearchParameter/episodeofcare-care-manager",
                    "type": "reference",
                    "documentation": "Care manager/care co-ordinator for the patient"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/episodeofcare-type",
                    "type": "token",
                    "documentation": "Type/class  - e.g. specialist referral, disease management"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/episodeofcare-date",
                    "type": "date",
                    "documentation": "The provided date search value falls within the episode of care's period"
                  },
                  {
                    "name": "incomingreferral",
                    "definition": "http://hl7.org/fhir/SearchParameter/episodeofcare-incomingreferral",
                    "type": "reference",
                    "documentation": "Incoming Referral Request"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/episodeofcare-identifier",
                    "type": "token",
                    "documentation": "Identifier(s) for the EpisodeOfCare"
                  },
                  {
                    "name": "team-member",
                    "definition": "http://hl7.org/fhir/SearchParameter/episodeofcare-team-member",
                    "type": "reference",
                    "documentation": "A Practitioner or Organization allocated to the care team for this EpisodeOfCare"
                  }
                ]
              },
              {
                "type": "ExpansionProfile",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ExpansionProfile"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchParam": [
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/expansionprofile-status",
                    "type": "token",
                    "documentation": "The status of the expansion profile"
                  },
                  {
                    "name": "description",
                    "definition": "http://hl7.org/fhir/SearchParameter/expansionprofile-description",
                    "type": "string",
                    "documentation": "Text search in the description of the expansion profile"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/expansionprofile-name",
                    "type": "string",
                    "documentation": "The name of the expansion profile"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/expansionprofile-date",
                    "type": "date",
                    "documentation": "The expansion profile publication date"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/expansionprofile-identifier",
                    "type": "token",
                    "documentation": "The identifier for the expansion profile"
                  },
                  {
                    "name": "url",
                    "definition": "http://hl7.org/fhir/SearchParameter/expansionprofile-url",
                    "type": "uri",
                    "documentation": "The logical URL for the expansion profile"
                  },
                  {
                    "name": "publisher",
                    "definition": "http://hl7.org/fhir/SearchParameter/expansionprofile-publisher",
                    "type": "string",
                    "documentation": "Name of the publisher of the expansion profile"
                  },
                  {
                    "name": "version",
                    "definition": "http://hl7.org/fhir/SearchParameter/expansionprofile-version",
                    "type": "token",
                    "documentation": "The version identifier of the expansion profile"
                  }
                ]
              },
              {
                "type": "ExplanationOfBenefit",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "ExplanationOfBenefit.organization",
                  "ExplanationOfBenefit.patient",
                  "ExplanationOfBenefit.facility",
                  "ExplanationOfBenefit.provider",
                  "ExplanationOfBenefit.claim"
                ],
                "searchParam": [
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/explanationofbenefit-organization",
                    "type": "reference",
                    "documentation": "The reference to the providing organization"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/explanationofbenefit-patient",
                    "type": "reference",
                    "documentation": "The reference to the patient"
                  },
                  {
                    "name": "facility",
                    "definition": "http://hl7.org/fhir/SearchParameter/explanationofbenefit-facility",
                    "type": "reference",
                    "documentation": "Facility responsible for the goods and services"
                  },
                  {
                    "name": "created",
                    "definition": "http://hl7.org/fhir/SearchParameter/explanationofbenefit-created",
                    "type": "date",
                    "documentation": "The creation date for the EOB"
                  },
                  {
                    "name": "provider",
                    "definition": "http://hl7.org/fhir/SearchParameter/explanationofbenefit-provider",
                    "type": "reference",
                    "documentation": "The reference to the provider"
                  },
                  {
                    "name": "claim",
                    "definition": "http://hl7.org/fhir/SearchParameter/explanationofbenefit-claim",
                    "type": "reference",
                    "documentation": "The reference to the claim"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/explanationofbenefit-identifier",
                    "type": "token",
                    "documentation": "The business identifier of the Explanation of Benefit"
                  },
                  {
                    "name": "disposition",
                    "definition": "http://hl7.org/fhir/SearchParameter/explanationofbenefit-disposition",
                    "type": "string",
                    "documentation": "The contents of the disposition message"
                  }
                ]
              },
              {
                "type": "FamilyMemberHistory",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "FamilyMemberHistory.patient"
                ],
                "searchRevInclude": [
                  "ClinicalImpression.investigation"
                ],
                "searchParam": [
                  {
                    "name": "relationship",
                    "definition": "http://hl7.org/fhir/SearchParameter/familymemberhistory-relationship",
                    "type": "token",
                    "documentation": "A search by a relationship type"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/familymemberhistory-patient",
                    "type": "reference",
                    "documentation": "The identity of a subject to list family member history items for"
                  },
                  {
                    "name": "gender",
                    "definition": "http://hl7.org/fhir/SearchParameter/familymemberhistory-gender",
                    "type": "token",
                    "documentation": "A search by a gender code of a family member"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/familymemberhistory-code",
                    "type": "token",
                    "documentation": "A search by a condition code"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/familymemberhistory-date",
                    "type": "date",
                    "documentation": "When history was captured/updated"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/familymemberhistory-identifier",
                    "type": "token",
                    "documentation": "A search by a record identifier"
                  }
                ]
              },
              {
                "type": "Flag",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Flag"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Flag.author",
                  "Flag.patient",
                  "Flag.subject",
                  "Flag.encounter"
                ],
                "searchParam": [
                  {
                    "name": "author",
                    "definition": "http://hl7.org/fhir/SearchParameter/flag-author",
                    "type": "reference",
                    "documentation": "Flag creator"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/flag-patient",
                    "type": "reference",
                    "documentation": "The identity of a subject to list flags for"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/flag-subject",
                    "type": "reference",
                    "documentation": "The identity of a subject to list flags for"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/flag-encounter",
                    "type": "reference",
                    "documentation": "Alert relevant during encounter"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/flag-date",
                    "type": "date",
                    "documentation": "Time period when flag is active"
                  }
                ]
              },
              {
                "type": "Goal",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Goal"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Goal.patient",
                  "Goal.subject"
                ],
                "searchRevInclude": [
                  "CarePlan.goal"
                ],
                "searchParam": [
                  {
                    "name": "targetdate",
                    "definition": "http://hl7.org/fhir/SearchParameter/goal-targetdate",
                    "type": "date",
                    "documentation": "Reach goal on or before"
                  },
                  {
                    "name": "category",
                    "definition": "http://hl7.org/fhir/SearchParameter/goal-category",
                    "type": "token",
                    "documentation": "E.g. Treatment, dietary, behavioral, etc."
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/goal-patient",
                    "type": "reference",
                    "documentation": "Who this goal is intended for"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/goal-status",
                    "type": "token",
                    "documentation": "proposed | planned | accepted | rejected | in-progress | achieved | sustaining | on-hold | cancelled"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/goal-subject",
                    "type": "reference",
                    "documentation": "Who this goal is intended for"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/goal-identifier",
                    "type": "token",
                    "documentation": "External Ids for this goal"
                  }
                ]
              },
              {
                "type": "Group",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Group"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Group.member"
                ],
                "searchRevInclude": [
                  "CarePlan.subject",
                  "CarePlan.patient",
                  "Communication.recipient",
                  "Contract.actor",
                  "DiagnosticOrder.subject",
                  "DiagnosticOrder.patient",
                  "DiagnosticReport.subject",
                  "DiagnosticReport.patient",
                  "DocumentManifest.subject",
                  "DocumentManifest.patient",
                  "DocumentReference.subject",
                  "DocumentReference.patient",
                  "Flag.patient",
                  "Flag.subject",
                  "Goal.patient",
                  "Goal.subject",
                  "List.patient",
                  "List.subject",
                  "Media.patient",
                  "Media.subject",
                  "Observation.subject",
                  "Observation.patient",
                  "Order.patient",
                  "Order.subject",
                  "Procedure.patient",
                  "Procedure.subject",
                  "ProcedureRequest.patient",
                  "ProcedureRequest.subject",
                  "RiskAssessment.patient",
                  "RiskAssessment.subject",
                  "Specimen.patient",
                  "Specimen.subject"
                ],
                "searchParam": [
                  {
                    "name": "member",
                    "definition": "http://hl7.org/fhir/SearchParameter/group-member",
                    "type": "reference",
                    "documentation": "Reference to the group member"
                  },
                  {
                    "name": "characteristic-value",
                    "definition": "http://hl7.org/fhir/SearchParameter/group-characteristic-value",
                    "type": "composite",
                    "documentation": "A composite of both characteristic and value"
                  },
                  {
                    "name": "value",
                    "definition": "http://hl7.org/fhir/SearchParameter/group-value",
                    "type": "token",
                    "documentation": "Value held by characteristic"
                  },
                  {
                    "name": "actual",
                    "definition": "http://hl7.org/fhir/SearchParameter/group-actual",
                    "type": "token",
                    "documentation": "Descriptive or actual"
                  },
                  {
                    "name": "exclude",
                    "definition": "http://hl7.org/fhir/SearchParameter/group-exclude",
                    "type": "token",
                    "documentation": "Group includes or excludes"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/group-code",
                    "type": "token",
                    "documentation": "The kind of resources contained"
                  },
                  {
                    "name": "characteristic",
                    "definition": "http://hl7.org/fhir/SearchParameter/group-characteristic",
                    "type": "token",
                    "documentation": "Kind of characteristic"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/group-type",
                    "type": "token",
                    "documentation": "The type of resources the group contains"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/group-identifier",
                    "type": "token",
                    "documentation": "Unique id"
                  }
                ]
              },
              {
                "type": "GuidanceResponse",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/GuidanceResponse"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple"
              },
              {
                "type": "HealthcareService",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "HealthcareService.organization",
                  "HealthcareService.location"
                ],
                "searchRevInclude": [
                  "Account.patient",
                  "Account.subject",
                  "Appointment.patient",
                  "Appointment.practitioner",
                  "Appointment.location",
                  "Appointment.actor",
                  "AppointmentResponse.patient",
                  "AppointmentResponse.practitioner",
                  "AppointmentResponse.location",
                  "AppointmentResponse.actor",
                  "Schedule.actor"
                ],
                "searchParam": [
                  {
                    "name": "servicecategory",
                    "definition": "http://hl7.org/fhir/SearchParameter/healthcareservice-servicecategory",
                    "type": "token",
                    "documentation": "Service Category of the Healthcare Service"
                  },
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/healthcareservice-organization",
                    "type": "reference",
                    "documentation": "The organization that provides this Healthcare Service"
                  },
                  {
                    "name": "servicetype",
                    "definition": "http://hl7.org/fhir/SearchParameter/healthcareservice-servicetype",
                    "type": "token",
                    "documentation": "The type of service provided by this healthcare service"
                  },
                  {
                    "name": "location",
                    "definition": "http://hl7.org/fhir/SearchParameter/healthcareservice-location",
                    "type": "reference",
                    "documentation": "The location of the Healthcare Service"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/healthcareservice-name",
                    "type": "string",
                    "documentation": "A portion of the Healthcare service name"
                  },
                  {
                    "name": "programname",
                    "definition": "http://hl7.org/fhir/SearchParameter/healthcareservice-programname",
                    "type": "string",
                    "documentation": "One of the Program Names serviced by this HealthcareService"
                  },
                  {
                    "name": "characteristic",
                    "definition": "http://hl7.org/fhir/SearchParameter/healthcareservice-characteristic",
                    "type": "token",
                    "documentation": "One of the HealthcareService's characteristics"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/healthcareservice-identifier",
                    "type": "token",
                    "documentation": "External identifiers for this item"
                  }
                ]
              },
              {
                "type": "ImagingObjectSelection",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ImagingObjectSelection"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "ImagingObjectSelection.author",
                  "ImagingObjectSelection.patient"
                ],
                "searchParam": [
                  {
                    "name": "selected-study",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingobjectselection-selected-study",
                    "type": "uri",
                    "documentation": "Study selected in key DICOM object selection"
                  },
                  {
                    "name": "author",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingobjectselection-author",
                    "type": "reference",
                    "documentation": "Author of key DICOM object selection"
                  },
                  {
                    "name": "title",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingobjectselection-title",
                    "type": "token",
                    "documentation": "Title of key DICOM object selection"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingobjectselection-patient",
                    "type": "reference",
                    "documentation": "Subject of key DICOM object selection"
                  },
                  {
                    "name": "authoring-time",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingobjectselection-authoring-time",
                    "type": "date",
                    "documentation": "Time of key DICOM object selection authoring"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingobjectselection-identifier",
                    "type": "uri",
                    "documentation": "UID of key DICOM object selection"
                  }
                ]
              },
              {
                "type": "ImagingStudy",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "ImagingStudy.patient",
                  "ImagingStudy.order"
                ],
                "searchParam": [
                  {
                    "name": "uid",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingstudy-uid",
                    "type": "uri",
                    "documentation": "The instance unique identifier"
                  },
                  {
                    "name": "series",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingstudy-series",
                    "type": "uri",
                    "documentation": "The identifier of the series of images"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingstudy-patient",
                    "type": "reference",
                    "documentation": "Who the study is about"
                  },
                  {
                    "name": "order",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingstudy-order",
                    "type": "reference",
                    "documentation": "The order for the image"
                  },
                  {
                    "name": "bodysite",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingstudy-bodysite",
                    "type": "token",
                    "documentation": "The body site studied"
                  },
                  {
                    "name": "accession",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingstudy-accession",
                    "type": "token",
                    "documentation": "The accession identifier for the study"
                  },
                  {
                    "name": "study",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingstudy-study",
                    "type": "uri",
                    "documentation": "The study identifier for the image"
                  },
                  {
                    "name": "modality",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingstudy-modality",
                    "type": "token",
                    "documentation": "The modality of the series"
                  },
                  {
                    "name": "started",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingstudy-started",
                    "type": "date",
                    "documentation": "When the study was started"
                  },
                  {
                    "name": "dicom-class",
                    "definition": "http://hl7.org/fhir/SearchParameter/imagingstudy-dicom-class",
                    "type": "uri",
                    "documentation": "The type of the instance"
                  }
                ]
              },
              {
                "type": "Immunization",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Immunization"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Immunization.reaction",
                  "Immunization.requester",
                  "Immunization.location",
                  "Immunization.patient",
                  "Immunization.manufacturer",
                  "Immunization.performer"
                ],
                "searchRevInclude": [
                  "ImmunizationRecommendation.support"
                ],
                "searchParam": [
                  {
                    "name": "reaction",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-reaction",
                    "type": "reference",
                    "documentation": "Additional information on reaction"
                  },
                  {
                    "name": "requester",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-requester",
                    "type": "reference",
                    "documentation": "The practitioner who ordered the vaccination"
                  },
                  {
                    "name": "dose-sequence",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-dose-sequence",
                    "type": "number",
                    "documentation": "Dose number within series"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-status",
                    "type": "token",
                    "documentation": "Immunization event status"
                  },
                  {
                    "name": "location",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-location",
                    "type": "reference",
                    "documentation": "The service delivery location or facility in which the vaccine was / was to be administered"
                  },
                  {
                    "name": "reason",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-reason",
                    "type": "token",
                    "documentation": "Why immunization occurred"
                  },
                  {
                    "name": "reaction-date",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-reaction-date",
                    "type": "date",
                    "documentation": "When reaction started"
                  },
                  {
                    "name": "notgiven",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-notgiven",
                    "type": "token",
                    "documentation": "Administrations which were not given"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-date",
                    "type": "date",
                    "documentation": "Vaccination  (non)-Administration Date"
                  },
                  {
                    "name": "reason-not-given",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-reason-not-given",
                    "type": "token",
                    "documentation": "Explanation of reason vaccination was not administered"
                  },
                  {
                    "name": "vaccine-code",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-vaccine-code",
                    "type": "token",
                    "documentation": "Vaccine Product Administered"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-patient",
                    "type": "reference",
                    "documentation": "The patient for the vaccination record"
                  },
                  {
                    "name": "lot-number",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-lot-number",
                    "type": "string",
                    "documentation": "Vaccine Lot Number"
                  },
                  {
                    "name": "manufacturer",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-manufacturer",
                    "type": "reference",
                    "documentation": "Vaccine Manufacturer"
                  },
                  {
                    "name": "performer",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-performer",
                    "type": "reference",
                    "documentation": "The practitioner who administered the vaccination"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunization-identifier",
                    "type": "token",
                    "documentation": "Business identifier"
                  }
                ]
              },
              {
                "type": "ImmunizationRecommendation",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "ImmunizationRecommendation.information",
                  "ImmunizationRecommendation.patient",
                  "ImmunizationRecommendation.support"
                ],
                "searchParam": [
                  {
                    "name": "information",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunizationrecommendation-information",
                    "type": "reference",
                    "documentation": "Patient observations supporting recommendation"
                  },
                  {
                    "name": "dose-sequence",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunizationrecommendation-dose-sequence",
                    "type": "number",
                    "documentation": "Dose number within sequence"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunizationrecommendation-patient",
                    "type": "reference",
                    "documentation": "Who this profile is for"
                  },
                  {
                    "name": "support",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunizationrecommendation-support",
                    "type": "reference",
                    "documentation": "Past immunizations supporting recommendation"
                  },
                  {
                    "name": "vaccine-type",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunizationrecommendation-vaccine-type",
                    "type": "token",
                    "documentation": "Vaccine recommendation applies to"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunizationrecommendation-status",
                    "type": "token",
                    "documentation": "Vaccine administration status"
                  },
                  {
                    "name": "dose-number",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunizationrecommendation-dose-number",
                    "type": "number",
                    "documentation": "Recommended dose number"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunizationrecommendation-date",
                    "type": "date",
                    "documentation": "Date recommendation created"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/immunizationrecommendation-identifier",
                    "type": "token",
                    "documentation": "Business identifier"
                  }
                ]
              },
              {
                "type": "ImplementationGuide",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ImplementationGuide"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchParam": [
                  {
                    "name": "dependency",
                    "definition": "http://hl7.org/fhir/SearchParameter/implementationguide-dependency",
                    "type": "uri",
                    "documentation": "Where to find dependency"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/implementationguide-status",
                    "type": "token",
                    "documentation": "The current status of the implementation guide"
                  },
                  {
                    "name": "description",
                    "definition": "http://hl7.org/fhir/SearchParameter/implementationguide-description",
                    "type": "string",
                    "documentation": "Text search in the description of the implementation guide"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/implementationguide-name",
                    "type": "string",
                    "documentation": "Name of the implementation guide"
                  },
                  {
                    "name": "context",
                    "definition": "http://hl7.org/fhir/SearchParameter/implementationguide-context",
                    "type": "token",
                    "documentation": "A use context assigned to the structure"
                  },
                  {
                    "name": "experimental",
                    "definition": "http://hl7.org/fhir/SearchParameter/implementationguide-experimental",
                    "type": "token",
                    "documentation": "If for testing purposes, not real usage"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/implementationguide-date",
                    "type": "date",
                    "documentation": "The implementation guide publication date"
                  },
                  {
                    "name": "url",
                    "definition": "http://hl7.org/fhir/SearchParameter/implementationguide-url",
                    "type": "uri",
                    "documentation": "Absolute URL used to reference this Implementation Guide"
                  },
                  {
                    "name": "publisher",
                    "definition": "http://hl7.org/fhir/SearchParameter/implementationguide-publisher",
                    "type": "string",
                    "documentation": "Name of the publisher of the implementation guide"
                  },
                  {
                    "name": "version",
                    "definition": "http://hl7.org/fhir/SearchParameter/implementationguide-version",
                    "type": "token",
                    "documentation": "The version identifier of the implementation guide"
                  }
                ]
              },
              {
                "type": "Library",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Library"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple"
              },
              {
                "type": "List",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/List"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "List.patient",
                  "List.source",
                  "List.subject",
                  "List.item",
                  "List.encounter"
                ],
                "searchParam": [
                  {
                    "name": "title",
                    "definition": "http://hl7.org/fhir/SearchParameter/list-title",
                    "type": "string",
                    "documentation": "Descriptive name for the list"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/list-patient",
                    "type": "reference",
                    "documentation": "If all resources have the same subject"
                  },
                  {
                    "name": "source",
                    "definition": "http://hl7.org/fhir/SearchParameter/list-source",
                    "type": "reference",
                    "documentation": "Who and/or what defined the list contents (aka Author)"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/list-status",
                    "type": "token",
                    "documentation": "current | retired | entered-in-error"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/list-subject",
                    "type": "reference",
                    "documentation": "If all resources have the same subject"
                  },
                  {
                    "name": "item",
                    "definition": "http://hl7.org/fhir/SearchParameter/list-item",
                    "type": "reference",
                    "documentation": "Actual entry"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/list-encounter",
                    "type": "reference",
                    "documentation": "Context in which list created"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/list-code",
                    "type": "token",
                    "documentation": "What the purpose of this list is"
                  },
                  {
                    "name": "notes",
                    "definition": "http://hl7.org/fhir/SearchParameter/list-notes",
                    "type": "string",
                    "documentation": "Comments about the list"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/list-date",
                    "type": "date",
                    "documentation": "When the list was prepared"
                  },
                  {
                    "name": "empty-reason",
                    "definition": "http://hl7.org/fhir/SearchParameter/list-empty-reason",
                    "type": "token",
                    "documentation": "Why list is empty"
                  }
                ]
              },
              {
                "type": "Location",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Location"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Location.organization",
                  "Location.partof"
                ],
                "searchRevInclude": [
                  "Account.patient",
                  "Account.subject",
                  "Appointment.patient",
                  "Appointment.practitioner",
                  "Appointment.location",
                  "Appointment.actor",
                  "AppointmentResponse.patient",
                  "AppointmentResponse.practitioner",
                  "AppointmentResponse.location",
                  "AppointmentResponse.actor",
                  "Claim.facility",
                  "Contract.actor",
                  "Device.location",
                  "DiagnosticOrder.subject",
                  "DiagnosticOrder.patient",
                  "DiagnosticReport.subject",
                  "DiagnosticReport.patient",
                  "EligibilityRequest.facility",
                  "Encounter.location",
                  "ExplanationOfBenefit.facility",
                  "Flag.patient",
                  "Flag.subject",
                  "HealthcareService.location",
                  "Immunization.location",
                  "List.patient",
                  "List.subject",
                  "Location.partof",
                  "MedicationDispense.destination",
                  "Observation.subject",
                  "Observation.patient",
                  "Practitioner.location",
                  "Procedure.location",
                  "Provenance.location",
                  "Schedule.actor"
                ],
                "searchParam": [
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-organization",
                    "type": "reference",
                    "documentation": "Searches for locations that are managed by the provided organization"
                  },
                  {
                    "name": "address-state",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-address-state",
                    "type": "string",
                    "documentation": "A state specified in an address"
                  },
                  {
                    "name": "address-city",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-address-city",
                    "type": "string",
                    "documentation": "A city specified in an address"
                  },
                  {
                    "name": "near",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-near",
                    "type": "token",
                    "documentation": "The coordinates expressed as [lat],[long] (using the WGS84 datum, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)"
                  },
                  {
                    "name": "partof",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-partof",
                    "type": "reference",
                    "documentation": "The location of which this location is a part"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-status",
                    "type": "token",
                    "documentation": "Searches for locations with a specific kind of status"
                  },
                  {
                    "name": "address",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-address",
                    "type": "string",
                    "documentation": "A (part of the) address of the location"
                  },
                  {
                    "name": "address-use",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-address-use",
                    "type": "token",
                    "documentation": "A use code specified in an address"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-name",
                    "type": "string",
                    "documentation": "A (portion of the) name of the location"
                  },
                  {
                    "name": "address-country",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-address-country",
                    "type": "string",
                    "documentation": "A country specified in an address"
                  },
                  {
                    "name": "near-distance",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-near-distance",
                    "type": "token",
                    "documentation": "A distance quantity to limit the near search to locations within a specific distance"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-type",
                    "type": "token",
                    "documentation": "A code for the type of location"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-identifier",
                    "type": "token",
                    "documentation": "Unique code or number identifying the location to its users"
                  },
                  {
                    "name": "address-postalcode",
                    "definition": "http://hl7.org/fhir/SearchParameter/location-address-postalcode",
                    "type": "string",
                    "documentation": "A postal code specified in an address"
                  }
                ]
              },
              {
                "type": "Measure",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Measure"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple"
              },
              {
                "type": "Media",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Media"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Media.patient",
                  "Media.subject",
                  "Media.operator"
                ],
                "searchRevInclude": [
                  "DiagnosticReport.image"
                ],
                "searchParam": [
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/media-patient",
                    "type": "reference",
                    "documentation": "Who/What this Media is a record of"
                  },
                  {
                    "name": "created",
                    "definition": "http://hl7.org/fhir/SearchParameter/media-created",
                    "type": "date",
                    "documentation": "Date attachment was first created"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/media-subject",
                    "type": "reference",
                    "documentation": "Who/What this Media is a record of"
                  },
                  {
                    "name": "subtype",
                    "definition": "http://hl7.org/fhir/SearchParameter/media-subtype",
                    "type": "token",
                    "documentation": "The type of acquisition equipment/process"
                  },
                  {
                    "name": "view",
                    "definition": "http://hl7.org/fhir/SearchParameter/media-view",
                    "type": "token",
                    "documentation": "Imaging view, e.g. Lateral or Antero-posterior"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/media-type",
                    "type": "token",
                    "documentation": "photo | video | audio"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/media-identifier",
                    "type": "token",
                    "documentation": "Identifier(s) for the image"
                  },
                  {
                    "name": "operator",
                    "definition": "http://hl7.org/fhir/SearchParameter/media-operator",
                    "type": "reference",
                    "documentation": "The person who generated the image"
                  }
                ]
              },
              {
                "type": "Medication",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Medication"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Medication.content",
                  "Medication.manufacturer",
                  "Medication.ingredient"
                ],
                "searchRevInclude": [
                  "Group.member",
                  "Medication.content",
                  "Medication.ingredient",
                  "MedicationAdministration.medication",
                  "MedicationDispense.medication",
                  "MedicationOrder.medication",
                  "MedicationStatement.medication"
                ],
                "searchParam": [
                  {
                    "name": "content",
                    "definition": "http://hl7.org/fhir/SearchParameter/medication-content",
                    "type": "reference",
                    "documentation": "A product in the package"
                  },
                  {
                    "name": "form",
                    "definition": "http://hl7.org/fhir/SearchParameter/medication-form",
                    "type": "token",
                    "documentation": "powder | tablets | carton +"
                  },
                  {
                    "name": "container",
                    "definition": "http://hl7.org/fhir/SearchParameter/medication-container",
                    "type": "token",
                    "documentation": "E.g. box, vial, blister-pack"
                  },
                  {
                    "name": "manufacturer",
                    "definition": "http://hl7.org/fhir/SearchParameter/medication-manufacturer",
                    "type": "reference",
                    "documentation": "Manufacturer of the item"
                  },
                  {
                    "name": "ingredient",
                    "definition": "http://hl7.org/fhir/SearchParameter/medication-ingredient",
                    "type": "reference",
                    "documentation": "The product contained"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/medication-code",
                    "type": "token",
                    "documentation": "Codes that identify this medication"
                  }
                ]
              },
              {
                "type": "MedicationAdministration",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "MedicationAdministration.medication",
                  "MedicationAdministration.patient",
                  "MedicationAdministration.practitioner",
                  "MedicationAdministration.prescription",
                  "MedicationAdministration.device",
                  "MedicationAdministration.encounter"
                ],
                "searchParam": [
                  {
                    "name": "medication",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationadministration-medication",
                    "type": "reference",
                    "documentation": "Return administrations of this medication resource"
                  },
                  {
                    "name": "effectivetime",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationadministration-effectivetime",
                    "type": "date",
                    "documentation": "Date administration happened (or did not happen)"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationadministration-patient",
                    "type": "reference",
                    "documentation": "The identity of a patient to list administrations  for"
                  },
                  {
                    "name": "practitioner",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationadministration-practitioner",
                    "type": "reference",
                    "documentation": "Who administered substance"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationadministration-status",
                    "type": "token",
                    "documentation": "MedicationAdministration event status (for example one of active/paused/completed/nullified)"
                  },
                  {
                    "name": "prescription",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationadministration-prescription",
                    "type": "reference",
                    "documentation": "The identity of a prescription to list administrations from"
                  },
                  {
                    "name": "device",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationadministration-device",
                    "type": "reference",
                    "documentation": "Return administrations with this administration device identity"
                  },
                  {
                    "name": "notgiven",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationadministration-notgiven",
                    "type": "token",
                    "documentation": "Administrations that were not made"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationadministration-code",
                    "type": "token",
                    "documentation": "Return administrations of this medication code"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationadministration-encounter",
                    "type": "reference",
                    "documentation": "Return administrations that share this encounter"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationadministration-identifier",
                    "type": "token",
                    "documentation": "Return administrations with this external identifier"
                  }
                ]
              },
              {
                "type": "MedicationDispense",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/MedicationDispense"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "MedicationDispense.medication",
                  "MedicationDispense.patient",
                  "MedicationDispense.receiver",
                  "MedicationDispense.prescription",
                  "MedicationDispense.responsibleparty",
                  "MedicationDispense.dispenser",
                  "MedicationDispense.destination"
                ],
                "searchParam": [
                  {
                    "name": "medication",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-medication",
                    "type": "reference",
                    "documentation": "Return dispenses of this medicine resource"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-patient",
                    "type": "reference",
                    "documentation": "The identity of a patient to list dispenses  for"
                  },
                  {
                    "name": "receiver",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-receiver",
                    "type": "reference",
                    "documentation": "Who collected the medication"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-status",
                    "type": "token",
                    "documentation": "Status of the dispense"
                  },
                  {
                    "name": "prescription",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-prescription",
                    "type": "reference",
                    "documentation": "The identity of a prescription to list dispenses from"
                  },
                  {
                    "name": "responsibleparty",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-responsibleparty",
                    "type": "reference",
                    "documentation": "Return all dispenses with the specified responsible party"
                  },
                  {
                    "name": "dispenser",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-dispenser",
                    "type": "reference",
                    "documentation": "Return all dispenses performed by a specific individual"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-code",
                    "type": "token",
                    "documentation": "Return dispenses of this medicine code"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-type",
                    "type": "token",
                    "documentation": "Return all dispenses of a specific type"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-identifier",
                    "type": "token",
                    "documentation": "Return dispenses with this external identifier"
                  },
                  {
                    "name": "whenprepared",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-whenprepared",
                    "type": "date",
                    "documentation": "Date when medication prepared"
                  },
                  {
                    "name": "whenhandedover",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-whenhandedover",
                    "type": "date",
                    "documentation": "Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting)"
                  },
                  {
                    "name": "destination",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationdispense-destination",
                    "type": "reference",
                    "documentation": "Return dispenses that should be sent to a specific destination"
                  }
                ]
              },
              {
                "type": "MedicationOrder",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "MedicationOrder.medication",
                  "MedicationOrder.patient",
                  "MedicationOrder.prescriber",
                  "MedicationOrder.encounter"
                ],
                "searchRevInclude": [
                  "CarePlan.activityreference",
                  "ClinicalImpression.plan",
                  "ClinicalImpression.action",
                  "MedicationAdministration.prescription",
                  "MedicationDispense.prescription"
                ],
                "searchParam": [
                  {
                    "name": "medication",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationorder-medication",
                    "type": "reference",
                    "documentation": "Return administrations of this medication reference"
                  },
                  {
                    "name": "datewritten",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationorder-datewritten",
                    "type": "date",
                    "documentation": "Return prescriptions written on this date"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationorder-patient",
                    "type": "reference",
                    "documentation": "The identity of a patient to list orders  for"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationorder-status",
                    "type": "token",
                    "documentation": "Status of the prescription"
                  },
                  {
                    "name": "prescriber",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationorder-prescriber",
                    "type": "reference",
                    "documentation": "Who ordered the medication(s)"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationorder-code",
                    "type": "token",
                    "documentation": "Return administrations of this medication code"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationorder-encounter",
                    "type": "reference",
                    "documentation": "Return prescriptions with this encounter identifier"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationorder-identifier",
                    "type": "token",
                    "documentation": "Return prescriptions with this external identifier"
                  }
                ]
              },
              {
                "type": "MedicationStatement",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "MedicationStatement.medication",
                  "MedicationStatement.patient",
                  "MedicationStatement.source"
                ],
                "searchParam": [
                  {
                    "name": "medication",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationstatement-medication",
                    "type": "reference",
                    "documentation": "Return administrations of this medication reference"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationstatement-patient",
                    "type": "reference",
                    "documentation": "The identity of a patient to list statements  for"
                  },
                  {
                    "name": "source",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationstatement-source",
                    "type": "reference",
                    "documentation": "Who the information in the statement came from"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationstatement-status",
                    "type": "token",
                    "documentation": "Return statements that match the given status"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationstatement-code",
                    "type": "token",
                    "documentation": "Return administrations of this medication code"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationstatement-identifier",
                    "type": "token",
                    "documentation": "Return statements with this external identifier"
                  },
                  {
                    "name": "effectivedate",
                    "definition": "http://hl7.org/fhir/SearchParameter/medicationstatement-effectivedate",
                    "type": "date",
                    "documentation": "Date when patient was taking (or not taking) the medication"
                  }
                ]
              },
              {
                "type": "MessageHeader",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/MessageHeader"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "MessageHeader.receiver",
                  "MessageHeader.responsible",
                  "MessageHeader.data",
                  "MessageHeader.author",
                  "MessageHeader.enterer",
                  "MessageHeader.target"
                ],
                "searchParam": [
                  {
                    "name": "destination-uri",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-destination-uri",
                    "type": "uri",
                    "documentation": "Actual destination address or id"
                  },
                  {
                    "name": "receiver",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-receiver",
                    "type": "reference",
                    "documentation": "Intended \"real-world\" recipient for the data"
                  },
                  {
                    "name": "responsible",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-responsible",
                    "type": "reference",
                    "documentation": "Final responsibility for event"
                  },
                  {
                    "name": "data",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-data",
                    "type": "reference",
                    "documentation": "The actual content of the message"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-code",
                    "type": "token",
                    "documentation": "ok | transient-error | fatal-error"
                  },
                  {
                    "name": "response-id",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-response-id",
                    "type": "token",
                    "documentation": "Id of original message"
                  },
                  {
                    "name": "destination",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-destination",
                    "type": "string",
                    "documentation": "Name of system"
                  },
                  {
                    "name": "timestamp",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-timestamp",
                    "type": "date",
                    "documentation": "Time that the message was sent"
                  },
                  {
                    "name": "author",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-author",
                    "type": "reference",
                    "documentation": "The source of the decision"
                  },
                  {
                    "name": "source-uri",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-source-uri",
                    "type": "uri",
                    "documentation": "Actual message source address or id"
                  },
                  {
                    "name": "source",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-source",
                    "type": "string",
                    "documentation": "Name of system"
                  },
                  {
                    "name": "enterer",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-enterer",
                    "type": "reference",
                    "documentation": "The source of the data entry"
                  },
                  {
                    "name": "event",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-event",
                    "type": "token",
                    "documentation": "Code for the event this message represents"
                  },
                  {
                    "name": "target",
                    "definition": "http://hl7.org/fhir/SearchParameter/messageheader-target",
                    "type": "reference",
                    "documentation": "Particular delivery destination within the destination"
                  }
                ]
              },
              {
                "type": "ModuleDefinition",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ModuleDefinition"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple"
              },
              {
                "type": "ModuleMetadata",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ModuleMetadata"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchParam": [
                  {
                    "name": "topic",
                    "definition": "http://hl7.org/fhir/SearchParameter/modulemetadata-topic",
                    "type": "token",
                    "documentation": "Topics associated with the module"
                  },
                  {
                    "name": "title",
                    "definition": "http://hl7.org/fhir/SearchParameter/modulemetadata-title",
                    "type": "string",
                    "documentation": "Text search against the title"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/modulemetadata-status",
                    "type": "token",
                    "documentation": "Status of the module"
                  },
                  {
                    "name": "description",
                    "definition": "http://hl7.org/fhir/SearchParameter/modulemetadata-description",
                    "type": "string",
                    "documentation": "Text search against the description"
                  },
                  {
                    "name": "keyword",
                    "definition": "http://hl7.org/fhir/SearchParameter/modulemetadata-keyword",
                    "type": "string",
                    "documentation": "Keywords associated with the module"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/modulemetadata-identifier",
                    "type": "token",
                    "documentation": "Logical identifier for the module (e.g. CMS-143)"
                  },
                  {
                    "name": "version",
                    "definition": "http://hl7.org/fhir/SearchParameter/modulemetadata-version",
                    "type": "string",
                    "documentation": "Version of the module (e.g. 1.0.0)"
                  }
                ]
              },
              {
                "type": "NamingSystem",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/NamingSystem"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "NamingSystem.replaced-by"
                ],
                "searchRevInclude": [
                  "NamingSystem.replaced-by"
                ],
                "searchParam": [
                  {
                    "name": "responsible",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-responsible",
                    "type": "string",
                    "documentation": "Who maintains system namespace?"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-status",
                    "type": "token",
                    "documentation": "draft | active | retired"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-type",
                    "type": "token",
                    "documentation": "e.g. driver,  provider,  patient, bank etc."
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-date",
                    "type": "date",
                    "documentation": "Publication Date(/time)"
                  },
                  {
                    "name": "period",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-period",
                    "type": "date",
                    "documentation": "When is identifier valid?"
                  },
                  {
                    "name": "contact",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-contact",
                    "type": "string",
                    "documentation": "Name of a individual to contact"
                  },
                  {
                    "name": "kind",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-kind",
                    "type": "token",
                    "documentation": "codesystem | identifier | root"
                  },
                  {
                    "name": "publisher",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-publisher",
                    "type": "string",
                    "documentation": "Name of the publisher (Organization or individual)"
                  },
                  {
                    "name": "id-type",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-id-type",
                    "type": "token",
                    "documentation": "oid | uuid | uri | other"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-name",
                    "type": "string",
                    "documentation": "Human-readable label"
                  },
                  {
                    "name": "context",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-context",
                    "type": "token",
                    "documentation": "Content intends to support these contexts"
                  },
                  {
                    "name": "value",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-value",
                    "type": "string",
                    "documentation": "The unique identifier"
                  },
                  {
                    "name": "telecom",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-telecom",
                    "type": "token",
                    "documentation": "Contact details for individual or publisher"
                  },
                  {
                    "name": "replaced-by",
                    "definition": "http://hl7.org/fhir/SearchParameter/namingsystem-replaced-by",
                    "type": "reference",
                    "documentation": "Use this instead"
                  }
                ]
              },
              {
                "type": "NutritionOrder",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "NutritionOrder.patient",
                  "NutritionOrder.provider",
                  "NutritionOrder.encounter"
                ],
                "searchRevInclude": [
                  "CarePlan.activityreference",
                  "ClinicalImpression.plan",
                  "ClinicalImpression.action"
                ],
                "searchParam": [
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/nutritionorder-patient",
                    "type": "reference",
                    "documentation": "The identity of the person who requires the diet, formula or nutritional supplement"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/nutritionorder-status",
                    "type": "token",
                    "documentation": "Status of the nutrition order."
                  },
                  {
                    "name": "supplement",
                    "definition": "http://hl7.org/fhir/SearchParameter/nutritionorder-supplement",
                    "type": "token",
                    "documentation": "Type of supplement product requested"
                  },
                  {
                    "name": "oraldiet",
                    "definition": "http://hl7.org/fhir/SearchParameter/nutritionorder-oraldiet",
                    "type": "token",
                    "documentation": "Type of diet that can be consumed orally (i.e., take via the mouth)."
                  },
                  {
                    "name": "provider",
                    "definition": "http://hl7.org/fhir/SearchParameter/nutritionorder-provider",
                    "type": "reference",
                    "documentation": "The identify of the provider who placed the nutrition order"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/nutritionorder-encounter",
                    "type": "reference",
                    "documentation": "Return nutrition orders with this encounter identifier"
                  },
                  {
                    "name": "datetime",
                    "definition": "http://hl7.org/fhir/SearchParameter/nutritionorder-datetime",
                    "type": "date",
                    "documentation": "Return nutrition orders requested on this date"
                  },
                  {
                    "name": "additive",
                    "definition": "http://hl7.org/fhir/SearchParameter/nutritionorder-additive",
                    "type": "token",
                    "documentation": "Type of module component to add to the feeding"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/nutritionorder-identifier",
                    "type": "token",
                    "documentation": "Return nutrition orders with this external identifier"
                  },
                  {
                    "name": "formula",
                    "definition": "http://hl7.org/fhir/SearchParameter/nutritionorder-formula",
                    "type": "token",
                    "documentation": "Type of enteral or infant formula"
                  }
                ]
              },
              {
                "type": "Observation",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Observation"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Observation.subject",
                  "Observation.encounter",
                  "Observation.patient",
                  "Observation.specimen",
                  "Observation.related-target",
                  "Observation.device",
                  "Observation.performer"
                ],
                "searchRevInclude": [
                  "ClinicalImpression.investigation",
                  "DiagnosticReport.result",
                  "Immunization.reaction",
                  "ImmunizationRecommendation.information",
                  "Observation.related-target"
                ],
                "searchParam": [
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-subject",
                    "type": "reference",
                    "documentation": "The subject that the observation is about"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-encounter",
                    "type": "reference",
                    "documentation": "Healthcare event related to the observation"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-date",
                    "type": "date",
                    "documentation": "Obtained date/time. If the obtained element is a period, a date that falls in the period"
                  },
                  {
                    "name": "component-value-quantity",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-component-value-quantity",
                    "type": "quantity",
                    "documentation": "The value of the component observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)"
                  },
                  {
                    "name": "related",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-related",
                    "type": "composite",
                    "documentation": "Related Observations - search on related-type and related-target together"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-patient",
                    "type": "reference",
                    "documentation": "The subject that the observation is about (if patient)"
                  },
                  {
                    "name": "specimen",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-specimen",
                    "type": "reference",
                    "documentation": "Specimen used for this observation"
                  },
                  {
                    "name": "component-value-concept",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-component-value-concept",
                    "type": "token",
                    "documentation": "The value of the component observation, if the value is a CodeableConcept"
                  },
                  {
                    "name": "component-code-value-[x]",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-component-code-value",
                    "type": "composite",
                    "documentation": "Both component code and one of the component value parameters"
                  },
                  {
                    "name": "value-quantity",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-value-quantity",
                    "type": "quantity",
                    "documentation": "The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)"
                  },
                  {
                    "name": "value-date",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-value-date",
                    "type": "date",
                    "documentation": "The value of the observation, if the value is a date or period of time"
                  },
                  {
                    "name": "value-string",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-value-string",
                    "type": "string",
                    "documentation": "The value of the observation, if the value is a string, and also searches in CodeableConcept.text"
                  },
                  {
                    "name": "component-code",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-component-code",
                    "type": "token",
                    "documentation": "The component code of the observation type"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-status",
                    "type": "token",
                    "documentation": "The status of the observation"
                  },
                  {
                    "name": "value-concept",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-value-concept",
                    "type": "token",
                    "documentation": "The value of the observation, if the value is a CodeableConcept"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-code",
                    "type": "token",
                    "documentation": "The code of the observation type"
                  },
                  {
                    "name": "related-target",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-related-target",
                    "type": "reference",
                    "documentation": "Resource that is related to this one"
                  },
                  {
                    "name": "data-absent-reason",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-data-absent-reason",
                    "type": "token",
                    "documentation": "The reason why the expected value in the element Observation.value[x] is missing."
                  },
                  {
                    "name": "category",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-category",
                    "type": "token",
                    "documentation": "The classification of the type of observation"
                  },
                  {
                    "name": "component-data-absent-reason",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-component-data-absent-reason",
                    "type": "token",
                    "documentation": "The reason why the expected value in the element Observation.component.value[x] is missing."
                  },
                  {
                    "name": "device",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-device",
                    "type": "reference",
                    "documentation": "The Device that generated the observation data."
                  },
                  {
                    "name": "related-type",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-related-type",
                    "type": "token",
                    "documentation": "has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by"
                  },
                  {
                    "name": "performer",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-performer",
                    "type": "reference",
                    "documentation": "Who performed the observation"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-identifier",
                    "type": "token",
                    "documentation": "The unique id for a particular observation"
                  },
                  {
                    "name": "code-value-[x]",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-code-value",
                    "type": "composite",
                    "documentation": "Both code and one of the value parameters"
                  },
                  {
                    "name": "component-value-string",
                    "definition": "http://hl7.org/fhir/SearchParameter/observation-component-value-string",
                    "type": "string",
                    "documentation": "The value of the component observation, if the value is a string, and also searches in CodeableConcept.text"
                  }
                ]
              },
              {
                "type": "OperationDefinition",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "OperationDefinition.base",
                  "OperationDefinition.profile"
                ],
                "searchRevInclude": [
                  "OperationDefinition.base"
                ],
                "searchParam": [
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-status",
                    "type": "token",
                    "documentation": "draft | active | retired"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-code",
                    "type": "token",
                    "documentation": "Name used to invoke the operation"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-date",
                    "type": "date",
                    "documentation": "Date for this version of the operation definition"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-type",
                    "type": "token",
                    "documentation": "Invoke at resource level for these type"
                  },
                  {
                    "name": "url",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-url",
                    "type": "uri",
                    "documentation": "Logical URL to reference this operation definition"
                  },
                  {
                    "name": "kind",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-kind",
                    "type": "token",
                    "documentation": "operation | query"
                  },
                  {
                    "name": "version",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-version",
                    "type": "token",
                    "documentation": "Logical id for this version of the operation definition"
                  },
                  {
                    "name": "publisher",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-publisher",
                    "type": "string",
                    "documentation": "Name of the publisher (Organization or individual)"
                  },
                  {
                    "name": "system",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-system",
                    "type": "token",
                    "documentation": "Invoke at the system level?"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-name",
                    "type": "string",
                    "documentation": "Informal name for this operation"
                  },
                  {
                    "name": "base",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-base",
                    "type": "reference",
                    "documentation": "Marks this as a profile of the base"
                  },
                  {
                    "name": "instance",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-instance",
                    "type": "token",
                    "documentation": "Invoke on an instance?"
                  },
                  {
                    "name": "profile",
                    "definition": "http://hl7.org/fhir/SearchParameter/operationdefinition-profile",
                    "type": "reference",
                    "documentation": "Profile on the type"
                  }
                ]
              },
              {
                "type": "OperationOutcome",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/OperationOutcome"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple"
              },
              {
                "type": "Order",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Order"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Order.detail",
                  "Order.patient",
                  "Order.source",
                  "Order.subject",
                  "Order.target"
                ],
                "searchRevInclude": [
                  "CarePlan.activityreference",
                  "ClinicalImpression.plan",
                  "OrderResponse.request"
                ],
                "searchParam": [
                  {
                    "name": "detail",
                    "definition": "http://hl7.org/fhir/SearchParameter/order-detail",
                    "type": "reference",
                    "documentation": "What action is being ordered"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/order-patient",
                    "type": "reference",
                    "documentation": "Patient this order is about"
                  },
                  {
                    "name": "source",
                    "definition": "http://hl7.org/fhir/SearchParameter/order-source",
                    "type": "reference",
                    "documentation": "Who initiated the order"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/order-subject",
                    "type": "reference",
                    "documentation": "Patient this order is about"
                  },
                  {
                    "name": "when",
                    "definition": "http://hl7.org/fhir/SearchParameter/order-when",
                    "type": "date",
                    "documentation": "A formal schedule"
                  },
                  {
                    "name": "target",
                    "definition": "http://hl7.org/fhir/SearchParameter/order-target",
                    "type": "reference",
                    "documentation": "Who is intended to fulfill the order"
                  },
                  {
                    "name": "when_code",
                    "definition": "http://hl7.org/fhir/SearchParameter/order-whencode",
                    "type": "token",
                    "documentation": "Code specifies when request should be done. The code may simply be a priority code"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/order-date",
                    "type": "date",
                    "documentation": "When the order was made"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/order-identifier",
                    "type": "token",
                    "documentation": "Instance id from source, target, and/or  others"
                  }
                ]
              },
              {
                "type": "OrderResponse",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/OrderResponse"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "OrderResponse.fulfillment",
                  "OrderResponse.request",
                  "OrderResponse.who"
                ],
                "searchParam": [
                  {
                    "name": "fulfillment",
                    "definition": "http://hl7.org/fhir/SearchParameter/orderresponse-fulfillment",
                    "type": "reference",
                    "documentation": "Details of the outcome of performing the order"
                  },
                  {
                    "name": "request",
                    "definition": "http://hl7.org/fhir/SearchParameter/orderresponse-request",
                    "type": "reference",
                    "documentation": "The order that this is a response to"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/orderresponse-code",
                    "type": "token",
                    "documentation": "pending | review | rejected | error | accepted | cancelled | replaced | aborted | completed"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/orderresponse-date",
                    "type": "date",
                    "documentation": "When the response was made"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/orderresponse-identifier",
                    "type": "token",
                    "documentation": "Identifiers assigned to this order by the orderer or by the receiver"
                  },
                  {
                    "name": "who",
                    "definition": "http://hl7.org/fhir/SearchParameter/orderresponse-who",
                    "type": "reference",
                    "documentation": "Who made the response"
                  }
                ]
              },
              {
                "type": "OrderSet",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/OrderSet"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple"
              },
              {
                "type": "Organization",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Organization"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Organization.partof"
                ],
                "searchRevInclude": [
                  "Account.patient",
                  "Account.subject",
                  "Account.owner",
                  "AuditEvent.patient",
                  "AuditEvent.participant",
                  "CarePlan.participant",
                  "CarePlan.performer",
                  "Claim.organization",
                  "Claim.target",
                  "ClaimResponse.organization",
                  "Communication.sender",
                  "Communication.recipient",
                  "CommunicationRequest.sender",
                  "CommunicationRequest.recipient",
                  "Composition.attester",
                  "Contract.signer",
                  "Contract.actor",
                  "Coverage.issuer",
                  "Device.organization",
                  "DiagnosticReport.performer",
                  "DocumentManifest.recipient",
                  "DocumentManifest.author",
                  "DocumentReference.author",
                  "DocumentReference.custodian",
                  "DocumentReference.authenticator",
                  "EligibilityRequest.organization",
                  "EligibilityResponse.organization",
                  "EligibilityResponse.requestorganization",
                  "EpisodeOfCare.organization",
                  "EpisodeOfCare.team-member",
                  "ExplanationOfBenefit.organization",
                  "Flag.author",
                  "Flag.patient",
                  "Flag.subject",
                  "Goal.patient",
                  "Goal.subject",
                  "HealthcareService.organization",
                  "ImagingObjectSelection.author",
                  "Immunization.manufacturer",
                  "Location.organization",
                  "Medication.manufacturer",
                  "MessageHeader.receiver",
                  "MessageHeader.responsible",
                  "Observation.performer",
                  "Order.source",
                  "Order.target",
                  "OrderResponse.who",
                  "Organization.partof",
                  "Patient.organization",
                  "Patient.careprovider",
                  "PaymentNotice.organization",
                  "PaymentReconciliation.organization",
                  "PaymentReconciliation.requestorganization",
                  "Person.organization",
                  "Practitioner.organization",
                  "Procedure.performer",
                  "ProcedureRequest.performer",
                  "ProcessRequest.organization",
                  "ProcessResponse.organization",
                  "ProcessResponse.requestorganization",
                  "Provenance.agent",
                  "ReferralRequest.requester",
                  "ReferralRequest.recipient",
                  "SupplyRequest.source",
                  "SupplyRequest.supplier"
                ],
                "searchParam": [
                  {
                    "name": "address-state",
                    "definition": "http://hl7.org/fhir/SearchParameter/organization-address-state",
                    "type": "string",
                    "documentation": "A state specified in an address"
                  },
                  {
                    "name": "address-city",
                    "definition": "http://hl7.org/fhir/SearchParameter/organization-address-city",
                    "type": "string",
                    "documentation": "A city specified in an address"
                  },
                  {
                    "name": "phonetic",
                    "definition": "http://hl7.org/fhir/SearchParameter/organization-phonetic",
                    "type": "string",
                    "documentation": "A portion of the organization's name using some kind of phonetic matching algorithm"
                  },
                  {
                    "name": "partof",
                    "definition": "http://hl7.org/fhir/SearchParameter/organization-partof",
                    "type": "reference",
                    "documentation": "Search all organizations that are part of the given organization"
                  },
                  {
                    "name": "address",
                    "definition": "http://hl7.org/fhir/SearchParameter/organization-address",
                    "type": "string",
                    "documentation": "A (part of the) address of the Organization"
                  },
                  {
                    "name": "address-use",
                    "definition": "http://hl7.org/fhir/SearchParameter/organization-address-use",
                    "type": "token",
                    "documentation": "A use code specified in an address"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/organization-name",
                    "type": "string",
                    "documentation": "A portion of the organization's name"
                  },
                  {
                    "name": "address-country",
                    "definition": "http://hl7.org/fhir/SearchParameter/organization-address-country",
                    "type": "string",
                    "documentation": "A country specified in an address"
                  },
                  {
                    "name": "active",
                    "definition": "http://hl7.org/fhir/SearchParameter/organization-active",
                    "type": "token",
                    "documentation": "Whether the organization's record is active"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/organization-type",
                    "type": "token",
                    "documentation": "A code for the type of organization"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/organization-identifier",
                    "type": "token",
                    "documentation": "Any identifier for the organization (not the accreditation issuer's identifier)"
                  },
                  {
                    "name": "address-postalcode",
                    "definition": "http://hl7.org/fhir/SearchParameter/organization-address-postalcode",
                    "type": "string",
                    "documentation": "A postal code specified in an address"
                  }
                ]
              },
              {
                "type": "Patient",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Patient"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Patient.link",
                  "Patient.organization",
                  "Patient.careprovider"
                ],
                "searchRevInclude": [
                  "Account.patient",
                  "Account.subject",
                  "AllergyIntolerance.reporter",
                  "AllergyIntolerance.patient",
                  "AllergyIntolerance.recorder",
                  "Appointment.patient",
                  "Appointment.practitioner",
                  "Appointment.location",
                  "Appointment.actor",
                  "AppointmentResponse.patient",
                  "AppointmentResponse.practitioner",
                  "AppointmentResponse.location",
                  "AppointmentResponse.actor",
                  "AuditEvent.patient",
                  "AuditEvent.participant",
                  "Basic.author",
                  "BodySite.patient",
                  "CarePlan.subject",
                  "CarePlan.patient",
                  "CarePlan.participant",
                  "CarePlan.performer",
                  "Claim.patient",
                  "ClinicalImpression.patient",
                  "Communication.sender",
                  "Communication.patient",
                  "Communication.subject",
                  "Communication.recipient",
                  "CommunicationRequest.sender",
                  "CommunicationRequest.requester",
                  "CommunicationRequest.patient",
                  "CommunicationRequest.subject",
                  "CommunicationRequest.recipient",
                  "Composition.author",
                  "Composition.attester",
                  "Condition.asserter",
                  "Condition.patient",
                  "Contract.signer",
                  "Contract.actor",
                  "Coverage.subscriber",
                  "DetectedIssue.patient",
                  "Device.patient",
                  "DeviceUseRequest.patient",
                  "DeviceUseRequest.subject",
                  "DeviceUseStatement.patient",
                  "DeviceUseStatement.subject",
                  "DiagnosticOrder.subject",
                  "DiagnosticOrder.patient",
                  "DiagnosticReport.subject",
                  "DiagnosticReport.patient",
                  "DocumentManifest.subject",
                  "DocumentManifest.recipient",
                  "DocumentManifest.author",
                  "DocumentManifest.patient",
                  "DocumentReference.subject",
                  "DocumentReference.author",
                  "DocumentReference.patient",
                  "EligibilityRequest.patient",
                  "Encounter.patient",
                  "EnrollmentRequest.patient",
                  "EnrollmentRequest.subject",
                  "EpisodeOfCare.patient",
                  "ExplanationOfBenefit.patient",
                  "FamilyMemberHistory.patient",
                  "Flag.author",
                  "Flag.patient",
                  "Flag.subject",
                  "Goal.patient",
                  "Goal.subject",
                  "Group.member",
                  "ImagingObjectSelection.author",
                  "ImagingObjectSelection.patient",
                  "ImagingStudy.patient",
                  "Immunization.patient",
                  "ImmunizationRecommendation.patient",
                  "List.patient",
                  "List.source",
                  "List.subject",
                  "Media.patient",
                  "Media.subject",
                  "MedicationAdministration.patient",
                  "MedicationAdministration.practitioner",
                  "MedicationDispense.patient",
                  "MedicationDispense.receiver",
                  "MedicationOrder.patient",
                  "MedicationStatement.patient",
                  "MedicationStatement.source",
                  "NutritionOrder.patient",
                  "Observation.subject",
                  "Observation.patient",
                  "Observation.performer",
                  "Order.patient",
                  "Order.subject",
                  "Patient.link",
                  "Person.link",
                  "Person.relatedperson",
                  "Person.patient",
                  "Person.practitioner",
                  "Procedure.patient",
                  "Procedure.subject",
                  "Procedure.performer",
                  "ProcedureRequest.orderer",
                  "ProcedureRequest.patient",
                  "ProcedureRequest.subject",
                  "ProcedureRequest.performer",
                  "Provenance.agent",
                  "QuestionnaireResponse.author",
                  "QuestionnaireResponse.source",
                  "ReferralRequest.requester",
                  "ReferralRequest.patient",
                  "RelatedPerson.patient",
                  "RiskAssessment.patient",
                  "RiskAssessment.subject",
                  "Schedule.actor",
                  "Specimen.patient",
                  "Specimen.subject",
                  "SupplyDelivery.patient",
                  "SupplyRequest.patient",
                  "SupplyRequest.source",
                  "VisionPrescription.patient"
                ],
                "searchParam": [
                  {
                    "name": "animal-breed",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-animal-breed",
                    "type": "token",
                    "documentation": "The breed for animal patients"
                  },
                  {
                    "name": "phone",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-phone",
                    "type": "token",
                    "documentation": "A value in a phone contact"
                  },
                  {
                    "name": "phonetic",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-phonetic",
                    "type": "string",
                    "documentation": "A portion of either family or given name using some kind of phonetic matching algorithm"
                  },
                  {
                    "name": "link",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-link",
                    "type": "reference",
                    "documentation": "All patients linked to the given patient"
                  },
                  {
                    "name": "address-country",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-address-country",
                    "type": "string",
                    "documentation": "A country specified in an address"
                  },
                  {
                    "name": "animal-species",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-animal-species",
                    "type": "token",
                    "documentation": "The species for animal patients"
                  },
                  {
                    "name": "deathdate",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-deathdate",
                    "type": "date",
                    "documentation": "The date of death has been provided and satisfies this search value"
                  },
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-organization",
                    "type": "reference",
                    "documentation": "The organization at which this person is a patient"
                  },
                  {
                    "name": "address-city",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-address-city",
                    "type": "string",
                    "documentation": "A city specified in an address"
                  },
                  {
                    "name": "address-state",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-address-state",
                    "type": "string",
                    "documentation": "A state specified in an address"
                  },
                  {
                    "name": "careprovider",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-careprovider",
                    "type": "reference",
                    "documentation": "Patient's nominated care provider, could be a care manager, not the organization that manages the record"
                  },
                  {
                    "name": "given",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-given",
                    "type": "string",
                    "documentation": "A portion of the given name of the patient"
                  },
                  {
                    "name": "email",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-email",
                    "type": "token",
                    "documentation": "A value in an email contact"
                  },
                  {
                    "name": "address",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-address",
                    "type": "string",
                    "documentation": "An address in any kind of address/part of the patient"
                  },
                  {
                    "name": "address-use",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-address-use",
                    "type": "token",
                    "documentation": "A use code specified in an address"
                  },
                  {
                    "name": "family",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-family",
                    "type": "string",
                    "documentation": "A portion of the family name of the patient"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-name",
                    "type": "string",
                    "documentation": "A portion of either family or given name of the patient"
                  },
                  {
                    "name": "birthdate",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-birthdate",
                    "type": "date",
                    "documentation": "The patient's date of birth"
                  },
                  {
                    "name": "telecom",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-telecom",
                    "type": "token",
                    "documentation": "The value in any kind of telecom details of the patient"
                  },
                  {
                    "name": "active",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-active",
                    "type": "token",
                    "documentation": "Whether the patient record is active"
                  },
                  {
                    "name": "gender",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-gender",
                    "type": "token",
                    "documentation": "Gender of the patient"
                  },
                  {
                    "name": "deceased",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-deceased",
                    "type": "token",
                    "documentation": "This patient has been marked as deceased, or as a death date entered"
                  },
                  {
                    "name": "language",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-language",
                    "type": "token",
                    "documentation": "Language code (irrespective of use value)"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-identifier",
                    "type": "token",
                    "documentation": "A patient identifier"
                  },
                  {
                    "name": "address-postalcode",
                    "definition": "http://hl7.org/fhir/SearchParameter/patient-address-postalcode",
                    "type": "string",
                    "documentation": "A postalCode specified in an address"
                  }
                ]
              },
              {
                "type": "PaymentNotice",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/PaymentNotice"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "PaymentNotice.response",
                  "PaymentNotice.organization",
                  "PaymentNotice.request",
                  "PaymentNotice.provider"
                ],
                "searchParam": [
                  {
                    "name": "response",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentnotice-response",
                    "type": "reference",
                    "documentation": "The ClaimResponse"
                  },
                  {
                    "name": "paymentstatus",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentnotice-paymentstatus",
                    "type": "token",
                    "documentation": "The type of payment notice"
                  },
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentnotice-organization",
                    "type": "reference",
                    "documentation": "The organization who generated this resource"
                  },
                  {
                    "name": "statusdate",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentnotice-statusdate",
                    "type": "date",
                    "documentation": "The date of the payment action"
                  },
                  {
                    "name": "created",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentnotice-created",
                    "type": "date",
                    "documentation": "Creation date fro the notice"
                  },
                  {
                    "name": "request",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentnotice-request",
                    "type": "reference",
                    "documentation": "The Claim"
                  },
                  {
                    "name": "provider",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentnotice-provider",
                    "type": "reference",
                    "documentation": "The reference to the provider"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentnotice-identifier",
                    "type": "token",
                    "documentation": "The business identifier of the notice"
                  }
                ]
              },
              {
                "type": "PaymentReconciliation",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/PaymentReconciliation"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "PaymentReconciliation.organization",
                  "PaymentReconciliation.requestprovider",
                  "PaymentReconciliation.request",
                  "PaymentReconciliation.requestorganization"
                ],
                "searchParam": [
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentreconciliation-organization",
                    "type": "reference",
                    "documentation": "The organization who generated this resource"
                  },
                  {
                    "name": "requestprovider",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentreconciliation-requestprovider",
                    "type": "reference",
                    "documentation": "The reference to the provider who sumbitted the claim"
                  },
                  {
                    "name": "created",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentreconciliation-created",
                    "type": "date",
                    "documentation": "The creation date"
                  },
                  {
                    "name": "request",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentreconciliation-request",
                    "type": "reference",
                    "documentation": "The reference to the claim"
                  },
                  {
                    "name": "requestorganization",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentreconciliation-requestorganization",
                    "type": "reference",
                    "documentation": "The organization who generated this resource"
                  },
                  {
                    "name": "outcome",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentreconciliation-outcome",
                    "type": "token",
                    "documentation": "The processing outcome"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentreconciliation-identifier",
                    "type": "token",
                    "documentation": "The business identifier of the Explanation of Benefit"
                  },
                  {
                    "name": "disposition",
                    "definition": "http://hl7.org/fhir/SearchParameter/paymentreconciliation-disposition",
                    "type": "string",
                    "documentation": "The contents of the disposition message"
                  }
                ]
              },
              {
                "type": "Person",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Person"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Person.link",
                  "Person.relatedperson",
                  "Person.organization",
                  "Person.patient",
                  "Person.practitioner"
                ],
                "searchRevInclude": [
                  "Person.link",
                  "Person.relatedperson",
                  "Person.patient",
                  "Person.practitioner"
                ],
                "searchParam": [
                  {
                    "name": "phone",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-phone",
                    "type": "token",
                    "documentation": "A value in a phone contact"
                  },
                  {
                    "name": "phonetic",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-phonetic",
                    "type": "string",
                    "documentation": "A portion of name using some kind of phonetic matching algorithm"
                  },
                  {
                    "name": "link",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-link",
                    "type": "reference",
                    "documentation": "Any link has this Patient, Person, RelatedPerson or Practitioner reference"
                  },
                  {
                    "name": "address-country",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-address-country",
                    "type": "string",
                    "documentation": "A country specified in an address"
                  },
                  {
                    "name": "relatedperson",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-relatedperson",
                    "type": "reference",
                    "documentation": "The Person links to this RelatedPerson"
                  },
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-organization",
                    "type": "reference",
                    "documentation": "The organization at which this person record is being managed"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-patient",
                    "type": "reference",
                    "documentation": "The Person links to this Patient"
                  },
                  {
                    "name": "address-city",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-address-city",
                    "type": "string",
                    "documentation": "A city specified in an address"
                  },
                  {
                    "name": "address-state",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-address-state",
                    "type": "string",
                    "documentation": "A state specified in an address"
                  },
                  {
                    "name": "practitioner",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-practitioner",
                    "type": "reference",
                    "documentation": "The Person links to this Practitioner"
                  },
                  {
                    "name": "email",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-email",
                    "type": "token",
                    "documentation": "A value in an email contact"
                  },
                  {
                    "name": "address",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-address",
                    "type": "string",
                    "documentation": "An address in any kind of address/part"
                  },
                  {
                    "name": "address-use",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-address-use",
                    "type": "token",
                    "documentation": "A use code specified in an address"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-name",
                    "type": "string",
                    "documentation": "A portion of name in any name part"
                  },
                  {
                    "name": "birthdate",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-birthdate",
                    "type": "date",
                    "documentation": "The person's date of birth"
                  },
                  {
                    "name": "telecom",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-telecom",
                    "type": "token",
                    "documentation": "The value in any kind of contact"
                  },
                  {
                    "name": "gender",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-gender",
                    "type": "token",
                    "documentation": "The gender of the person"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-identifier",
                    "type": "token",
                    "documentation": "A person Identifier"
                  },
                  {
                    "name": "address-postalcode",
                    "definition": "http://hl7.org/fhir/SearchParameter/person-address-postalcode",
                    "type": "string",
                    "documentation": "A postal code specified in an address"
                  }
                ]
              },
              {
                "type": "Practitioner",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Practitioner"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Practitioner.location",
                  "Practitioner.organization"
                ],
                "searchRevInclude": [
                  "Account.patient",
                  "Account.subject",
                  "AllergyIntolerance.reporter",
                  "AllergyIntolerance.recorder",
                  "Appointment.patient",
                  "Appointment.practitioner",
                  "Appointment.location",
                  "Appointment.actor",
                  "AppointmentResponse.patient",
                  "AppointmentResponse.practitioner",
                  "AppointmentResponse.location",
                  "AppointmentResponse.actor",
                  "AuditEvent.patient",
                  "AuditEvent.participant",
                  "Basic.author",
                  "CarePlan.participant",
                  "CarePlan.performer",
                  "Claim.provider",
                  "ClinicalImpression.assessor",
                  "Communication.sender",
                  "Communication.recipient",
                  "CommunicationRequest.sender",
                  "CommunicationRequest.requester",
                  "CommunicationRequest.recipient",
                  "Composition.author",
                  "Composition.attester",
                  "Condition.asserter",
                  "Contract.signer",
                  "Contract.actor",
                  "DetectedIssue.author",
                  "DiagnosticOrder.orderer",
                  "DiagnosticOrder.actor",
                  "DiagnosticReport.performer",
                  "DocumentManifest.subject",
                  "DocumentManifest.recipient",
                  "DocumentManifest.author",
                  "DocumentManifest.patient",
                  "DocumentReference.subject",
                  "DocumentReference.author",
                  "DocumentReference.patient",
                  "DocumentReference.authenticator",
                  "EligibilityRequest.provider",
                  "EligibilityResponse.requestprovider",
                  "Encounter.practitioner",
                  "Encounter.participant",
                  "EpisodeOfCare.care-manager",
                  "EpisodeOfCare.team-member",
                  "ExplanationOfBenefit.provider",
                  "Flag.author",
                  "Flag.patient",
                  "Flag.subject",
                  "Group.member",
                  "ImagingObjectSelection.author",
                  "Immunization.requester",
                  "Immunization.performer",
                  "List.source",
                  "Media.patient",
                  "Media.subject",
                  "Media.operator",
                  "MedicationAdministration.practitioner",
                  "MedicationDispense.receiver",
                  "MedicationDispense.responsibleparty",
                  "MedicationDispense.dispenser",
                  "MedicationOrder.prescriber",
                  "MedicationStatement.source",
                  "MessageHeader.receiver",
                  "MessageHeader.responsible",
                  "MessageHeader.author",
                  "MessageHeader.enterer",
                  "NutritionOrder.provider",
                  "Observation.performer",
                  "Order.source",
                  "Order.target",
                  "OrderResponse.who",
                  "Patient.careprovider",
                  "PaymentNotice.provider",
                  "PaymentReconciliation.requestprovider",
                  "Person.link",
                  "Person.relatedperson",
                  "Person.patient",
                  "Person.practitioner",
                  "Procedure.performer",
                  "ProcedureRequest.orderer",
                  "ProcedureRequest.performer",
                  "ProcessRequest.provider",
                  "ProcessResponse.requestprovider",
                  "Provenance.agent",
                  "QuestionnaireResponse.author",
                  "QuestionnaireResponse.source",
                  "ReferralRequest.requester",
                  "ReferralRequest.recipient",
                  "RiskAssessment.performer",
                  "Schedule.actor",
                  "Specimen.collector",
                  "SupplyDelivery.receiver",
                  "SupplyDelivery.supplier",
                  "SupplyRequest.source",
                  "VisionPrescription.prescriber"
                ],
                "searchParam": [
                  {
                    "name": "phone",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-phone",
                    "type": "token",
                    "documentation": "A value in a phone contact"
                  },
                  {
                    "name": "phonetic",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-phonetic",
                    "type": "string",
                    "documentation": "A portion of either family or given name using some kind of phonetic matching algorithm"
                  },
                  {
                    "name": "location",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-location",
                    "type": "reference",
                    "documentation": "One of the locations at which this practitioner provides care"
                  },
                  {
                    "name": "communication",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-communication",
                    "type": "token",
                    "documentation": "One of the languages that the practitioner can communicate with"
                  },
                  {
                    "name": "address-country",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-address-country",
                    "type": "string",
                    "documentation": "A country specified in an address"
                  },
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-organization",
                    "type": "reference",
                    "documentation": "The identity of the organization the practitioner represents / acts on behalf of"
                  },
                  {
                    "name": "address-city",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-address-city",
                    "type": "string",
                    "documentation": "A city specified in an address"
                  },
                  {
                    "name": "address-state",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-address-state",
                    "type": "string",
                    "documentation": "A state specified in an address"
                  },
                  {
                    "name": "given",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-given",
                    "type": "string",
                    "documentation": "A portion of the given name"
                  },
                  {
                    "name": "email",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-email",
                    "type": "token",
                    "documentation": "A value in an email contact"
                  },
                  {
                    "name": "address",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-address",
                    "type": "string",
                    "documentation": "An address in any kind of address/part"
                  },
                  {
                    "name": "address-use",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-address-use",
                    "type": "token",
                    "documentation": "A use code specified in an address"
                  },
                  {
                    "name": "family",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-family",
                    "type": "string",
                    "documentation": "A portion of the family name"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-name",
                    "type": "string",
                    "documentation": "A portion of either family or given name"
                  },
                  {
                    "name": "telecom",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-telecom",
                    "type": "token",
                    "documentation": "The value in any kind of contact"
                  },
                  {
                    "name": "role",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-role",
                    "type": "token",
                    "documentation": "The practitioner can perform this role at for the organization"
                  },
                  {
                    "name": "gender",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-gender",
                    "type": "token",
                    "documentation": "Gender of the practitioner"
                  },
                  {
                    "name": "specialty",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-specialty",
                    "type": "token",
                    "documentation": "The practitioner has this specialty at an organization"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-identifier",
                    "type": "token",
                    "documentation": "A practitioner's Identifier"
                  },
                  {
                    "name": "address-postalcode",
                    "definition": "http://hl7.org/fhir/SearchParameter/practitioner-address-postalcode",
                    "type": "string",
                    "documentation": "A postalCode specified in an address"
                  }
                ]
              },
              {
                "type": "Procedure",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Procedure"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Procedure.patient",
                  "Procedure.location",
                  "Procedure.subject",
                  "Procedure.performer",
                  "Procedure.encounter"
                ],
                "searchRevInclude": [
                  "ClinicalImpression.action",
                  "Encounter.condition",
                  "Encounter.indication",
                  "Encounter.procedure"
                ],
                "searchParam": [
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedure-patient",
                    "type": "reference",
                    "documentation": "Search by subject - a patient"
                  },
                  {
                    "name": "location",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedure-location",
                    "type": "reference",
                    "documentation": "Where the procedure happened"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedure-subject",
                    "type": "reference",
                    "documentation": "Search by subject"
                  },
                  {
                    "name": "performer",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedure-performer",
                    "type": "reference",
                    "documentation": "The reference to the practitioner"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedure-encounter",
                    "type": "reference",
                    "documentation": "The encounter associated with the procedure"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedure-code",
                    "type": "token",
                    "documentation": "A code to identify a  procedure"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedure-date",
                    "type": "date",
                    "documentation": "Date/Period the procedure was performed"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedure-identifier",
                    "type": "token",
                    "documentation": "A unique identifier for a procedure"
                  }
                ]
              },
              {
                "type": "ProcedureRequest",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "ProcedureRequest.orderer",
                  "ProcedureRequest.patient",
                  "ProcedureRequest.subject",
                  "ProcedureRequest.performer",
                  "ProcedureRequest.encounter"
                ],
                "searchRevInclude": [
                  "CarePlan.activityreference",
                  "ClinicalImpression.plan",
                  "ClinicalImpression.action",
                  "DiagnosticReport.request"
                ],
                "searchParam": [
                  {
                    "name": "orderer",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedurerequest-orderer",
                    "type": "reference",
                    "documentation": "Who made request"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedurerequest-patient",
                    "type": "reference",
                    "documentation": "Search by subject - a patient"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedurerequest-subject",
                    "type": "reference",
                    "documentation": "Search by subject"
                  },
                  {
                    "name": "performer",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedurerequest-performer",
                    "type": "reference",
                    "documentation": "Who should perform the procedure"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedurerequest-encounter",
                    "type": "reference",
                    "documentation": "Encounter request created during"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/procedurerequest-identifier",
                    "type": "token",
                    "documentation": "A unique identifier of the Procedure Request"
                  }
                ]
              },
              {
                "type": "ProcessRequest",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ProcessRequest"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "ProcessRequest.organization",
                  "ProcessRequest.provider"
                ],
                "searchRevInclude": [
                  "CarePlan.activityreference",
                  "ClinicalImpression.plan",
                  "PaymentReconciliation.request"
                ],
                "searchParam": [
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/processrequest-organization",
                    "type": "reference",
                    "documentation": "The organization who generated this request"
                  },
                  {
                    "name": "action",
                    "definition": "http://hl7.org/fhir/SearchParameter/processrequest-action",
                    "type": "token",
                    "documentation": "The action requested by this resource"
                  },
                  {
                    "name": "provider",
                    "definition": "http://hl7.org/fhir/SearchParameter/processrequest-provider",
                    "type": "reference",
                    "documentation": "The provider who regenerated this request"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/processrequest-identifier",
                    "type": "token",
                    "documentation": "The business identifier of the ProcessRequest"
                  }
                ]
              },
              {
                "type": "ProcessResponse",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ProcessResponse"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "ProcessResponse.organization",
                  "ProcessResponse.requestprovider",
                  "ProcessResponse.request",
                  "ProcessResponse.requestorganization"
                ],
                "searchParam": [
                  {
                    "name": "organization",
                    "definition": "http://hl7.org/fhir/SearchParameter/processresponse-organization",
                    "type": "reference",
                    "documentation": "The organization who generated this resource"
                  },
                  {
                    "name": "requestprovider",
                    "definition": "http://hl7.org/fhir/SearchParameter/processresponse-requestprovider",
                    "type": "reference",
                    "documentation": "The Provider who is responsible the request transaction"
                  },
                  {
                    "name": "request",
                    "definition": "http://hl7.org/fhir/SearchParameter/processresponse-request",
                    "type": "reference",
                    "documentation": "The reference to the claim"
                  },
                  {
                    "name": "requestorganization",
                    "definition": "http://hl7.org/fhir/SearchParameter/processresponse-requestorganization",
                    "type": "reference",
                    "documentation": "The Organization who is responsible the request transaction"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/processresponse-identifier",
                    "type": "token",
                    "documentation": "The business identifier of the Explanation of Benefit"
                  }
                ]
              },
              {
                "type": "Provenance",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Provenance"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Provenance.patient",
                  "Provenance.location",
                  "Provenance.target",
                  "Provenance.agent"
                ],
                "searchParam": [
                  {
                    "name": "sigtype",
                    "definition": "http://hl7.org/fhir/SearchParameter/provenance-sigtype",
                    "type": "token",
                    "documentation": "Indication of the reason the entity signed the object(s)"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/provenance-patient",
                    "type": "reference",
                    "documentation": "Target Reference(s) (usually version specific)"
                  },
                  {
                    "name": "location",
                    "definition": "http://hl7.org/fhir/SearchParameter/provenance-location",
                    "type": "reference",
                    "documentation": "Where the activity occurred, if relevant"
                  },
                  {
                    "name": "start",
                    "definition": "http://hl7.org/fhir/SearchParameter/provenance-start",
                    "type": "date",
                    "documentation": "Starting time with inclusive boundary"
                  },
                  {
                    "name": "entity",
                    "definition": "http://hl7.org/fhir/SearchParameter/provenance-entity",
                    "type": "uri",
                    "documentation": "Identity of entity"
                  },
                  {
                    "name": "userid",
                    "definition": "http://hl7.org/fhir/SearchParameter/provenance-userid",
                    "type": "token",
                    "documentation": "Authorization-system identifier for the agent"
                  },
                  {
                    "name": "target",
                    "definition": "http://hl7.org/fhir/SearchParameter/provenance-target",
                    "type": "reference",
                    "documentation": "Target Reference(s) (usually version specific)"
                  },
                  {
                    "name": "agent",
                    "definition": "http://hl7.org/fhir/SearchParameter/provenance-agent",
                    "type": "reference",
                    "documentation": "Individual, device or organization playing role"
                  },
                  {
                    "name": "entitytype",
                    "definition": "http://hl7.org/fhir/SearchParameter/provenance-entitytype",
                    "type": "token",
                    "documentation": "The type of resource in this entity"
                  },
                  {
                    "name": "end",
                    "definition": "http://hl7.org/fhir/SearchParameter/provenance-end",
                    "type": "date",
                    "documentation": "End time with inclusive boundary, if not ongoing"
                  }
                ]
              },
              {
                "type": "Questionnaire",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchRevInclude": [
                  "QuestionnaireResponse.questionnaire"
                ],
                "searchParam": [
                  {
                    "name": "title",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaire-title",
                    "type": "string",
                    "documentation": "All or part of the name of the questionnaire"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaire-status",
                    "type": "token",
                    "documentation": "The status of the questionnaire"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaire-code",
                    "type": "token",
                    "documentation": "A code that corresponds to the questionnaire or one of its groups"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaire-date",
                    "type": "date",
                    "documentation": "When the questionnaire was last changed"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaire-identifier",
                    "type": "token",
                    "documentation": "An identifier for the questionnaire"
                  },
                  {
                    "name": "version",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaire-version",
                    "type": "string",
                    "documentation": "The business version of the questionnaire"
                  },
                  {
                    "name": "publisher",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaire-publisher",
                    "type": "string",
                    "documentation": "The author of the questionnaire"
                  }
                ]
              },
              {
                "type": "QuestionnaireResponse",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "QuestionnaireResponse.author",
                  "QuestionnaireResponse.questionnaire",
                  "QuestionnaireResponse.patient",
                  "QuestionnaireResponse.source",
                  "QuestionnaireResponse.subject",
                  "QuestionnaireResponse.encounter"
                ],
                "searchRevInclude": [
                  "ClinicalImpression.investigation",
                  "Observation.related-target"
                ],
                "searchParam": [
                  {
                    "name": "author",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaireresponse-author",
                    "type": "reference",
                    "documentation": "The author of the questionnaire"
                  },
                  {
                    "name": "questionnaire",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaireresponse-questionnaire",
                    "type": "reference",
                    "documentation": "The questionnaire the answers are provided for"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaireresponse-patient",
                    "type": "reference",
                    "documentation": "The patient that is the subject of the questionnaire"
                  },
                  {
                    "name": "authored",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaireresponse-authored",
                    "type": "date",
                    "documentation": "When the questionnaire was authored"
                  },
                  {
                    "name": "source",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaireresponse-source",
                    "type": "reference",
                    "documentation": "The person who answered the questions"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaireresponse-status",
                    "type": "token",
                    "documentation": "The status of the questionnaire response"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaireresponse-subject",
                    "type": "reference",
                    "documentation": "The subject of the questionnaire"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/questionnaireresponse-encounter",
                    "type": "reference",
                    "documentation": "Encounter during which questionnaire was authored"
                  }
                ]
              },
              {
                "type": "ReferralRequest",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "ReferralRequest.requester",
                  "ReferralRequest.patient",
                  "ReferralRequest.recipient"
                ],
                "searchRevInclude": [
                  "CarePlan.activityreference",
                  "ClinicalImpression.plan",
                  "ClinicalImpression.action",
                  "DiagnosticReport.request",
                  "Encounter.incomingreferral",
                  "EpisodeOfCare.incomingreferral"
                ],
                "searchParam": [
                  {
                    "name": "requester",
                    "definition": "http://hl7.org/fhir/SearchParameter/referralrequest-requester",
                    "type": "reference",
                    "documentation": "Requester of referral / transfer of care"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/referralrequest-patient",
                    "type": "reference",
                    "documentation": "Who the referral is about"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/referralrequest-status",
                    "type": "token",
                    "documentation": "The status of the referral"
                  },
                  {
                    "name": "priority",
                    "definition": "http://hl7.org/fhir/SearchParameter/referralrequest-priority",
                    "type": "token",
                    "documentation": "The priority assigned to the referral"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/referralrequest-type",
                    "type": "token",
                    "documentation": "The type of the referral"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/referralrequest-date",
                    "type": "date",
                    "documentation": "Creation or activation date"
                  },
                  {
                    "name": "specialty",
                    "definition": "http://hl7.org/fhir/SearchParameter/referralrequest-specialty",
                    "type": "token",
                    "documentation": "The specialty that the referral is for"
                  },
                  {
                    "name": "recipient",
                    "definition": "http://hl7.org/fhir/SearchParameter/referralrequest-recipient",
                    "type": "reference",
                    "documentation": "The person that the referral was sent to"
                  }
                ]
              },
              {
                "type": "RelatedPerson",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "RelatedPerson.patient"
                ],
                "searchRevInclude": [
                  "AllergyIntolerance.reporter",
                  "Appointment.patient",
                  "Appointment.practitioner",
                  "Appointment.location",
                  "Appointment.actor",
                  "AppointmentResponse.patient",
                  "AppointmentResponse.practitioner",
                  "AppointmentResponse.location",
                  "AppointmentResponse.actor",
                  "AuditEvent.patient",
                  "AuditEvent.participant",
                  "Basic.author",
                  "CarePlan.participant",
                  "CarePlan.performer",
                  "Communication.sender",
                  "Communication.recipient",
                  "CommunicationRequest.sender",
                  "CommunicationRequest.requester",
                  "CommunicationRequest.recipient",
                  "Composition.author",
                  "Contract.signer",
                  "Contract.actor",
                  "DocumentManifest.recipient",
                  "DocumentManifest.author",
                  "DocumentReference.author",
                  "Encounter.practitioner",
                  "Encounter.participant",
                  "ImagingObjectSelection.author",
                  "MedicationAdministration.practitioner",
                  "MedicationStatement.source",
                  "Observation.performer",
                  "Person.link",
                  "Person.relatedperson",
                  "Person.patient",
                  "Person.practitioner",
                  "Procedure.performer",
                  "ProcedureRequest.orderer",
                  "ProcedureRequest.performer",
                  "Provenance.agent",
                  "QuestionnaireResponse.author",
                  "QuestionnaireResponse.source",
                  "Schedule.actor"
                ],
                "searchParam": [
                  {
                    "name": "phone",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-phone",
                    "type": "token",
                    "documentation": "A value in a phone contact"
                  },
                  {
                    "name": "phonetic",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-phonetic",
                    "type": "string",
                    "documentation": "A portion of name using some kind of phonetic matching algorithm"
                  },
                  {
                    "name": "address-country",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-address-country",
                    "type": "string",
                    "documentation": "A country specified in an address"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-patient",
                    "type": "reference",
                    "documentation": "The patient this person is related to"
                  },
                  {
                    "name": "address-city",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-address-city",
                    "type": "string",
                    "documentation": "A city specified in an address"
                  },
                  {
                    "name": "address-state",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-address-state",
                    "type": "string",
                    "documentation": "A state specified in an address"
                  },
                  {
                    "name": "email",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-email",
                    "type": "token",
                    "documentation": "A value in an email contact"
                  },
                  {
                    "name": "address",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-address",
                    "type": "string",
                    "documentation": "An address in any kind of address/part"
                  },
                  {
                    "name": "address-use",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-address-use",
                    "type": "token",
                    "documentation": "A use code specified in an address"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-name",
                    "type": "string",
                    "documentation": "A portion of name in any name part"
                  },
                  {
                    "name": "birthdate",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-birthdate",
                    "type": "date",
                    "documentation": "The Related Person's date of birth"
                  },
                  {
                    "name": "telecom",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-telecom",
                    "type": "token",
                    "documentation": "The value in any kind of contact"
                  },
                  {
                    "name": "gender",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-gender",
                    "type": "token",
                    "documentation": "Gender of the person"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-identifier",
                    "type": "token",
                    "documentation": "A patient Identifier"
                  },
                  {
                    "name": "address-postalcode",
                    "definition": "http://hl7.org/fhir/SearchParameter/relatedperson-address-postalcode",
                    "type": "string",
                    "documentation": "A postal code specified in an address"
                  }
                ]
              },
              {
                "type": "RiskAssessment",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/RiskAssessment"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "RiskAssessment.patient",
                  "RiskAssessment.condition",
                  "RiskAssessment.subject",
                  "RiskAssessment.performer",
                  "RiskAssessment.encounter"
                ],
                "searchParam": [
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/riskassessment-patient",
                    "type": "reference",
                    "documentation": "Who/what does assessment apply to?"
                  },
                  {
                    "name": "condition",
                    "definition": "http://hl7.org/fhir/SearchParameter/riskassessment-condition",
                    "type": "reference",
                    "documentation": "Condition assessed"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/riskassessment-subject",
                    "type": "reference",
                    "documentation": "Who/what does assessment apply to?"
                  },
                  {
                    "name": "performer",
                    "definition": "http://hl7.org/fhir/SearchParameter/riskassessment-performer",
                    "type": "reference",
                    "documentation": "Who did assessment?"
                  },
                  {
                    "name": "method",
                    "definition": "http://hl7.org/fhir/SearchParameter/riskassessment-method",
                    "type": "token",
                    "documentation": "Evaluation mechanism"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/riskassessment-encounter",
                    "type": "reference",
                    "documentation": "Where was assessment performed?"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/riskassessment-date",
                    "type": "date",
                    "documentation": "When was assessment made?"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/riskassessment-identifier",
                    "type": "token",
                    "documentation": "Unique identifier for the assessment"
                  }
                ]
              },
              {
                "type": "Schedule",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Schedule"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Schedule.actor"
                ],
                "searchRevInclude": [
                  "Slot.schedule"
                ],
                "searchParam": [
                  {
                    "name": "actor",
                    "definition": "http://hl7.org/fhir/SearchParameter/schedule-actor",
                    "type": "reference",
                    "documentation": "The individual(HealthcareService, Practitioner, Location, ...) to find a Schedule for"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/schedule-date",
                    "type": "date",
                    "documentation": "Search for Schedule resources that have a period that contains this date specified"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/schedule-type",
                    "type": "token",
                    "documentation": "The type of appointments that can be booked into associated slot(s)"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/schedule-identifier",
                    "type": "token",
                    "documentation": "A Schedule Identifier"
                  }
                ]
              },
              {
                "type": "SearchParameter",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/SearchParameter"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchParam": [
                  {
                    "name": "description",
                    "definition": "http://hl7.org/fhir/SearchParameter/searchparameter-description",
                    "type": "string",
                    "documentation": "Documentation for  search parameter"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/searchparameter-name",
                    "type": "string",
                    "documentation": "Informal name for this search parameter"
                  },
                  {
                    "name": "target",
                    "definition": "http://hl7.org/fhir/SearchParameter/searchparameter-target",
                    "type": "token",
                    "documentation": "Types of resource (if a resource reference)"
                  },
                  {
                    "name": "base",
                    "definition": "http://hl7.org/fhir/SearchParameter/searchparameter-base",
                    "type": "token",
                    "documentation": "The resource type this search parameter applies to"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/searchparameter-code",
                    "type": "token",
                    "documentation": "Code used in URL"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/searchparameter-type",
                    "type": "token",
                    "documentation": "number | date | string | token | reference | composite | quantity | uri"
                  },
                  {
                    "name": "url",
                    "definition": "http://hl7.org/fhir/SearchParameter/searchparameter-url",
                    "type": "uri",
                    "documentation": "Absolute URL used to reference this search parameter"
                  }
                ]
              },
              {
                "type": "Sequence",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Sequence"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchParam": [
                  {
                    "name": "species",
                    "definition": "http://hl7.org/fhir/SearchParameter/sequence-species",
                    "type": "token",
                    "documentation": "The organism from which sample of the sequence was extracted."
                  },
                  {
                    "name": "variationid",
                    "definition": "http://hl7.org/fhir/SearchParameter/sequence-variationid",
                    "type": "token",
                    "documentation": "Identifier for variant"
                  },
                  {
                    "name": "coordinate",
                    "definition": "http://hl7.org/fhir/SearchParameter/sequence-coordinate",
                    "type": "composite",
                    "documentation": "Genomic coordinate of the sequence. For example, a search for sequence in region 1:123-345 can be represented as `coordinate=1$lt345$gt123`"
                  },
                  {
                    "name": "start",
                    "definition": "http://hl7.org/fhir/SearchParameter/sequence-start",
                    "type": "number",
                    "documentation": "Start position (0-based inclusive) of the sequence"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/sequence-type",
                    "type": "token",
                    "documentation": "The type of the variant: Amino acid / cDNA transcript / RNA variation."
                  },
                  {
                    "name": "chromosome",
                    "definition": "http://hl7.org/fhir/SearchParameter/sequence-chromosome",
                    "type": "token",
                    "documentation": "Chromosome of the sequence"
                  },
                  {
                    "name": "end",
                    "definition": "http://hl7.org/fhir/SearchParameter/sequence-end",
                    "type": "number",
                    "documentation": "End position (0-based exclusive) of the sequence"
                  }
                ]
              },
              {
                "type": "Slot",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Slot"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Slot.schedule"
                ],
                "searchParam": [
                  {
                    "name": "fb-type",
                    "definition": "http://hl7.org/fhir/SearchParameter/slot-fb-type",
                    "type": "token",
                    "documentation": "The free/busy status of the appointment"
                  },
                  {
                    "name": "schedule",
                    "definition": "http://hl7.org/fhir/SearchParameter/slot-schedule",
                    "type": "reference",
                    "documentation": "The Schedule Resource that we are seeking a slot within"
                  },
                  {
                    "name": "start",
                    "definition": "http://hl7.org/fhir/SearchParameter/slot-start",
                    "type": "date",
                    "documentation": "Appointment date/time."
                  },
                  {
                    "name": "slot-type",
                    "definition": "http://hl7.org/fhir/SearchParameter/slot-slot-type",
                    "type": "token",
                    "documentation": "The type of appointments that can be booked into the slot"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/slot-identifier",
                    "type": "token",
                    "documentation": "A Slot Identifier"
                  }
                ]
              },
              {
                "type": "Specimen",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Specimen"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Specimen.collector",
                  "Specimen.patient",
                  "Specimen.subject",
                  "Specimen.parent"
                ],
                "searchRevInclude": [
                  "DiagnosticOrder.specimen",
                  "DiagnosticReport.specimen",
                  "Media.patient",
                  "Media.subject",
                  "Observation.specimen",
                  "Specimen.parent"
                ],
                "searchParam": [
                  {
                    "name": "collector",
                    "definition": "http://hl7.org/fhir/SearchParameter/specimen-collector",
                    "type": "reference",
                    "documentation": "Who collected the specimen"
                  },
                  {
                    "name": "container-id",
                    "definition": "http://hl7.org/fhir/SearchParameter/specimen-container-id",
                    "type": "token",
                    "documentation": "The unique identifier associated with the specimen container"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/specimen-patient",
                    "type": "reference",
                    "documentation": "The patient the specimen comes from"
                  },
                  {
                    "name": "bodysite",
                    "definition": "http://hl7.org/fhir/SearchParameter/specimen-bodysite",
                    "type": "token",
                    "documentation": "The code for the body site from where the specimen originated"
                  },
                  {
                    "name": "container",
                    "definition": "http://hl7.org/fhir/SearchParameter/specimen-container",
                    "type": "token",
                    "documentation": "The kind of specimen container"
                  },
                  {
                    "name": "collected",
                    "definition": "http://hl7.org/fhir/SearchParameter/specimen-collected",
                    "type": "date",
                    "documentation": "The date the specimen was collected"
                  },
                  {
                    "name": "subject",
                    "definition": "http://hl7.org/fhir/SearchParameter/specimen-subject",
                    "type": "reference",
                    "documentation": "The subject of the specimen"
                  },
                  {
                    "name": "accession",
                    "definition": "http://hl7.org/fhir/SearchParameter/specimen-accession",
                    "type": "token",
                    "documentation": "The accession number associated with the specimen"
                  },
                  {
                    "name": "parent",
                    "definition": "http://hl7.org/fhir/SearchParameter/specimen-parent",
                    "type": "reference",
                    "documentation": "The parent of the specimen"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/specimen-type",
                    "type": "token",
                    "documentation": "The specimen type"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/specimen-identifier",
                    "type": "token",
                    "documentation": "The unique identifier associated with the specimen"
                  }
                ]
              },
              {
                "type": "StructureDefinition",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "StructureDefinition.valueset"
                ],
                "searchRevInclude": [
                  "ConceptMap.sourceuri",
                  "ConceptMap.source",
                  "ConceptMap.target",
                  "Conformance.supported-profile",
                  "Conformance.profile",
                  "OperationDefinition.profile"
                ],
                "searchParam": [
                  {
                    "name": "abstract",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-abstract",
                    "type": "token",
                    "documentation": "Whether the structure is abstract"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-status",
                    "type": "token",
                    "documentation": "The current status of the profile"
                  },
                  {
                    "name": "experimental",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-experimental",
                    "type": "token",
                    "documentation": "If for testing purposes, not real usage"
                  },
                  {
                    "name": "display",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-display",
                    "type": "string",
                    "documentation": "Use this name when displaying the value"
                  },
                  {
                    "name": "ext-context",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-ext-context",
                    "type": "string",
                    "documentation": "Where the extension can be used in instances"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-code",
                    "type": "token",
                    "documentation": "A code for the profile"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-date",
                    "type": "date",
                    "documentation": "The profile publication date"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-type",
                    "type": "token",
                    "documentation": "Any datatype or resource, including abstract ones"
                  },
                  {
                    "name": "url",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-url",
                    "type": "uri",
                    "documentation": "Absolute URL used to reference this StructureDefinition"
                  },
                  {
                    "name": "kind",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-kind",
                    "type": "token",
                    "documentation": "datatype | resource | logical"
                  },
                  {
                    "name": "version",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-version",
                    "type": "token",
                    "documentation": "The version identifier of the profile"
                  },
                  {
                    "name": "publisher",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-publisher",
                    "type": "string",
                    "documentation": "Name of the publisher of the profile"
                  },
                  {
                    "name": "base-path",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-base-path",
                    "type": "token",
                    "documentation": "Path that identifies the base element"
                  },
                  {
                    "name": "valueset",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-valueset",
                    "type": "reference",
                    "documentation": "A vocabulary binding reference"
                  },
                  {
                    "name": "context-type",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-context-type",
                    "type": "token",
                    "documentation": "resource | datatype | mapping | extension"
                  },
                  {
                    "name": "description",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-description",
                    "type": "string",
                    "documentation": "Text search in the description of the profile"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-name",
                    "type": "string",
                    "documentation": "Name of the profile"
                  },
                  {
                    "name": "base",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-base",
                    "type": "uri",
                    "documentation": "Structure that this set of constraints applies to"
                  },
                  {
                    "name": "context",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-context",
                    "type": "token",
                    "documentation": "A use context assigned to the structure"
                  },
                  {
                    "name": "path",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-path",
                    "type": "token",
                    "documentation": "A path that is constrained in the profile"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/structuredefinition-identifier",
                    "type": "token",
                    "documentation": "The identifier of the profile"
                  }
                ]
              },
              {
                "type": "Subscription",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Subscription"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchParam": [
                  {
                    "name": "criteria",
                    "definition": "http://hl7.org/fhir/SearchParameter/subscription-criteria",
                    "type": "string",
                    "documentation": "Rule for server push criteria"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/subscription-status",
                    "type": "token",
                    "documentation": "requested | active | error | off"
                  },
                  {
                    "name": "tag",
                    "definition": "http://hl7.org/fhir/SearchParameter/subscription-tag",
                    "type": "token",
                    "documentation": "A tag to add to matching resources"
                  },
                  {
                    "name": "payload",
                    "definition": "http://hl7.org/fhir/SearchParameter/subscription-payload",
                    "type": "string",
                    "documentation": "Mimetype to send, or blank for no payload"
                  },
                  {
                    "name": "type",
                    "definition": "http://hl7.org/fhir/SearchParameter/subscription-type",
                    "type": "token",
                    "documentation": "rest-hook | websocket | email | sms | message"
                  },
                  {
                    "name": "contact",
                    "definition": "http://hl7.org/fhir/SearchParameter/subscription-contact",
                    "type": "token",
                    "documentation": "Contact details for source (e.g. troubleshooting)"
                  },
                  {
                    "name": "url",
                    "definition": "http://hl7.org/fhir/SearchParameter/subscription-url",
                    "type": "uri",
                    "documentation": "Where the channel points to"
                  }
                ]
              },
              {
                "type": "Substance",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/Substance"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "Substance.substance"
                ],
                "searchRevInclude": [
                  "Contract.actor",
                  "Group.member",
                  "Medication.ingredient",
                  "Order.patient",
                  "Order.subject",
                  "Specimen.patient",
                  "Specimen.subject",
                  "Substance.substance"
                ],
                "searchParam": [
                  {
                    "name": "substance",
                    "definition": "http://hl7.org/fhir/SearchParameter/substance-substance",
                    "type": "reference",
                    "documentation": "A component of the substance"
                  },
                  {
                    "name": "container-identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/substance-container-identifier",
                    "type": "token",
                    "documentation": "Identifier of the package/container"
                  },
                  {
                    "name": "category",
                    "definition": "http://hl7.org/fhir/SearchParameter/substance-category",
                    "type": "token",
                    "documentation": "The category of the substance"
                  },
                  {
                    "name": "quantity",
                    "definition": "http://hl7.org/fhir/SearchParameter/substance-quantity",
                    "type": "quantity",
                    "documentation": "Amount of substance in the package"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/substance-code",
                    "type": "token",
                    "documentation": "The code of the substance"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/substance-identifier",
                    "type": "token",
                    "documentation": "Unique identifier for the substance"
                  },
                  {
                    "name": "expiry",
                    "definition": "http://hl7.org/fhir/SearchParameter/substance-expiry",
                    "type": "date",
                    "documentation": "Expiry date of package or container of substance"
                  }
                ]
              },
              {
                "type": "SupplyDelivery",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/SupplyDelivery"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "SupplyDelivery.patient",
                  "SupplyDelivery.receiver",
                  "SupplyDelivery.supplier"
                ],
                "searchParam": [
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/supplydelivery-patient",
                    "type": "reference",
                    "documentation": "Patient for whom the item is supplied"
                  },
                  {
                    "name": "receiver",
                    "definition": "http://hl7.org/fhir/SearchParameter/supplydelivery-receiver",
                    "type": "reference",
                    "documentation": "Who collected the Supply"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/supplydelivery-status",
                    "type": "token",
                    "documentation": "in-progress | completed | abandoned"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/supplydelivery-identifier",
                    "type": "token",
                    "documentation": "External identifier"
                  },
                  {
                    "name": "supplier",
                    "definition": "http://hl7.org/fhir/SearchParameter/supplydelivery-supplier",
                    "type": "reference",
                    "documentation": "Dispenser"
                  }
                ]
              },
              {
                "type": "SupplyRequest",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/SupplyRequest"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "SupplyRequest.patient",
                  "SupplyRequest.source",
                  "SupplyRequest.supplier"
                ],
                "searchRevInclude": [
                  "CarePlan.activityreference",
                  "ClinicalImpression.plan",
                  "ClinicalImpression.action"
                ],
                "searchParam": [
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/supplyrequest-patient",
                    "type": "reference",
                    "documentation": "Patient for whom the item is supplied"
                  },
                  {
                    "name": "source",
                    "definition": "http://hl7.org/fhir/SearchParameter/supplyrequest-source",
                    "type": "reference",
                    "documentation": "Who initiated this order"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/supplyrequest-status",
                    "type": "token",
                    "documentation": "requested | completed | failed | cancelled"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/supplyrequest-date",
                    "type": "date",
                    "documentation": "When the request was made"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/supplyrequest-identifier",
                    "type": "token",
                    "documentation": "Unique identifier"
                  },
                  {
                    "name": "supplier",
                    "definition": "http://hl7.org/fhir/SearchParameter/supplyrequest-supplier",
                    "type": "reference",
                    "documentation": "Who is intended to fulfill the request"
                  },
                  {
                    "name": "kind",
                    "definition": "http://hl7.org/fhir/SearchParameter/supplyrequest-kind",
                    "type": "token",
                    "documentation": "The kind of supply (central, non-stock, etc.)"
                  }
                ]
              },
              {
                "type": "TestScript",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/TestScript"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchParam": [
                  {
                    "name": "testscript-test-capability",
                    "definition": "http://hl7.org/fhir/SearchParameter/testscript-testscript-test-capability",
                    "type": "string",
                    "documentation": "TestScript test required and validated capability"
                  },
                  {
                    "name": "testscript-setup-capability",
                    "definition": "http://hl7.org/fhir/SearchParameter/testscript-testscript-setup-capability",
                    "type": "string",
                    "documentation": "TestScript setup required and validated capability"
                  },
                  {
                    "name": "description",
                    "definition": "http://hl7.org/fhir/SearchParameter/testscript-description",
                    "type": "string",
                    "documentation": "Natural language description of the TestScript"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/testscript-name",
                    "type": "string",
                    "documentation": "Informal name for this TestScript"
                  },
                  {
                    "name": "testscript-capability",
                    "definition": "http://hl7.org/fhir/SearchParameter/testscript-testscript-capability",
                    "type": "string",
                    "documentation": "TestScript required and validated capability"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/testscript-identifier",
                    "type": "token",
                    "documentation": "External identifier"
                  },
                  {
                    "name": "url",
                    "definition": "http://hl7.org/fhir/SearchParameter/testscript-url",
                    "type": "uri",
                    "documentation": "Absolute URL used to reference this TestScript"
                  }
                ]
              },
              {
                "type": "ValueSet",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/ValueSet"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchRevInclude": [
                  "ConceptMap.sourceuri",
                  "ConceptMap.source",
                  "ConceptMap.target",
                  "StructureDefinition.valueset"
                ],
                "searchParam": [
                  {
                    "name": "system",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-system",
                    "type": "uri",
                    "documentation": "The system for any codes defined by this value set"
                  },
                  {
                    "name": "expansion",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-expansion",
                    "type": "uri",
                    "documentation": "Uniquely identifies this expansion"
                  },
                  {
                    "name": "status",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-status",
                    "type": "token",
                    "documentation": "The status of the value set"
                  },
                  {
                    "name": "description",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-description",
                    "type": "string",
                    "documentation": "Text search in the description of the value set"
                  },
                  {
                    "name": "name",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-name",
                    "type": "string",
                    "documentation": "The name of the value set"
                  },
                  {
                    "name": "context",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-context",
                    "type": "token",
                    "documentation": "A use context assigned to the value set"
                  },
                  {
                    "name": "code",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-code",
                    "type": "token",
                    "documentation": "A code defined in the value set"
                  },
                  {
                    "name": "date",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-date",
                    "type": "date",
                    "documentation": "The value set publication date"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-identifier",
                    "type": "token",
                    "documentation": "The identifier for the value set"
                  },
                  {
                    "name": "reference",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-reference",
                    "type": "uri",
                    "documentation": "A code system included or excluded in the value set or an imported value set"
                  },
                  {
                    "name": "url",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-url",
                    "type": "uri",
                    "documentation": "The logical URL for the value set"
                  },
                  {
                    "name": "publisher",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-publisher",
                    "type": "string",
                    "documentation": "Name of the publisher of the value set"
                  },
                  {
                    "name": "version",
                    "definition": "http://hl7.org/fhir/SearchParameter/valueset-version",
                    "type": "token",
                    "documentation": "The version identifier of the value set"
                  }
                ]
              },
              {
                "type": "VisionPrescription",
                "profile": {
                  "reference": "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                },
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "vread",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "update",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "delete",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-instance",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "validate",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "history-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "create",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  },
                  {
                    "code": "search-type",
                    "documentation": "Implemented per the specification (or Insert other doco here)"
                  }
                ],
                "conditionalCreate": true,
                "conditionalUpdate": true,
                "conditionalDelete": "multiple",
                "searchInclude": [
                  "VisionPrescription.patient",
                  "VisionPrescription.prescriber",
                  "VisionPrescription.encounter"
                ],
                "searchRevInclude": [
                  "CarePlan.activityreference",
                  "ClinicalImpression.plan"
                ],
                "searchParam": [
                  {
                    "name": "datewritten",
                    "definition": "http://hl7.org/fhir/SearchParameter/visionprescription-datewritten",
                    "type": "date",
                    "documentation": "Return prescriptions written on this date"
                  },
                  {
                    "name": "patient",
                    "definition": "http://hl7.org/fhir/SearchParameter/visionprescription-patient",
                    "type": "reference",
                    "documentation": "The identity of a patient to list dispenses for"
                  },
                  {
                    "name": "prescriber",
                    "definition": "http://hl7.org/fhir/SearchParameter/visionprescription-prescriber",
                    "type": "reference",
                    "documentation": "Who authorizes the vision product"
                  },
                  {
                    "name": "encounter",
                    "definition": "http://hl7.org/fhir/SearchParameter/visionprescription-encounter",
                    "type": "reference",
                    "documentation": "Return prescriptions with this encounter identifier"
                  },
                  {
                    "name": "identifier",
                    "definition": "http://hl7.org/fhir/SearchParameter/visionprescription-identifier",
                    "type": "token",
                    "documentation": "Return prescriptions with this external identifier"
                  }
                ]
              }
            ],
            "interaction": [
              {
                "code": "transaction",
                "documentation": "Implemented per the specification (or Insert other doco here)"
              },
              {
                "code": "history-system",
                "documentation": "Implemented per the specification (or Insert other doco here)"
              },
              {
                "code": "search-system",
                "documentation": "Implemented per the specification (or Insert other doco here)"
              }
            ],
            "transactionMode": "both",
            "searchParam": [
              {
                "name": "_security",
                "definition": "http://hl7.org/fhir/SearchParameter/resource-security",
                "type": "token",
                "documentation": "Security Labels applied to this resource"
              },
              {
                "name": "_lastUpdated",
                "definition": "http://hl7.org/fhir/SearchParameter/resource-lastUpdated",
                "type": "date",
                "documentation": "When the resource version last changed"
              },
              {
                "name": "_text",
                "definition": "http://hl7.org/fhir/SearchParameter/resource-text",
                "type": "string",
                "documentation": "Search on the narrative of the resource"
              },
              {
                "name": "_id",
                "definition": "http://hl7.org/fhir/SearchParameter/resource-id",
                "type": "token",
                "documentation": "Logical id of this artifact"
              },
              {
                "name": "_content",
                "definition": "http://hl7.org/fhir/SearchParameter/resource-content",
                "type": "string",
                "documentation": "Search on the entire content of the resource"
              },
              {
                "name": "_profile",
                "definition": "http://hl7.org/fhir/SearchParameter/resource-profile",
                "type": "uri",
                "documentation": "Profiles this resource claims to conform to"
              },
              {
                "name": "_query",
                "definition": "http://hl7.org/fhir/SearchParameter/resource-query",
                "type": "token",
                "documentation": "A custom search profile that describes a specific defined query operation"
              },
              {
                "name": "_tag",
                "definition": "http://hl7.org/fhir/SearchParameter/resource-tag",
                "type": "token",
                "documentation": "Tags applied to this resource"
              }
            ],
            "operation": [
              {
                "name": "validate",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/resource-validate"
                }
              },
              {
                "name": "meta",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/resource-meta"
                }
              },
              {
                "name": "meta-add",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/resource-meta-add"
                }
              },
              {
                "name": "meta-delete",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/resource-meta-delete"
                }
              },
              {
                "name": "document",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/composition-document"
                }
              },
              {
                "name": "translate",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/conceptmap-translate"
                }
              },
              {
                "name": "closure",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/conceptmap-closure"
                }
              },
              {
                "name": "evaluate",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/decisionsupportrule-evaluate"
                }
              },
              {
                "name": "evaluate",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/decisionsupportservicemodule-evaluate"
                }
              },
              {
                "name": "everything",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/encounter-everything"
                }
              },
              {
                "name": "find",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/list-find"
                }
              },
              {
                "name": "process-message",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/messageheader-process-message"
                }
              },
              {
                "name": "everything",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/patient-everything"
                }
              },
              {
                "name": "populate",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/questionnaire-populate"
                }
              },
              {
                "name": "questionnaire",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/structuredefinition-questionnaire"
                }
              },
              {
                "name": "expand",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/valueset-expand"
                }
              },
              {
                "name": "lookup",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/valueset-lookup"
                }
              },
              {
                "name": "validate-code",
                "definition": {
                  "reference": "http://hl7.org/fhir/OperationDefinition/valueset-validate-code"
                }
              }
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/Conformance/base2",
      "resource": {
        "resourceType": "Conformance",
        "id": "base2",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/Conformance/base2",
        "version": "1.2.0-7447",
        "name": "Base FHIR Conformance Statement (Empty)",
        "status": "draft",
        "experimental": true,
        "publisher": "FHIR Project Team",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "This is the base conformance statement for FHIR. It represents a server that provides the none of the functionality defined by FHIR. It is provided to use as a template for system designers to build their own conformance statements from. A conformance profile has to contain something, so this contains a read of a Conformance Statement",
        "kind": "capability",
        "software": {
          "name": "Insert your softwware name here..."
        },
        "fhirVersion": "1.2.0",
        "acceptUnknown": "no",
        "format": [
          "xml",
          "json"
        ],
        "rest": [
          {
            "mode": "server",
            "documentation": "An empty conformance statement",
            "security": {
              "cors": true,
              "service": [
                {
                  "coding": [
                    {
                      "system": "http://hl7.org/fhir/restful-security-service",
                      "code": "SMART-on-FHIR",
                      "display": "SMART-on-FHIR"
                    }
                  ],
                  "text": "See http://docs.smarthealthit.org/"
                }
              ],
              "description": "This is the conformance statement to declare that the server supports SMART-on-FHIR. See the SMART-on-FHIR docs for the extension that would go with such a server"
            },
            "resource": [
              {
                "type": "Conformance",
                "interaction": [
                  {
                    "code": "read",
                    "documentation": "Read Conformance Resource"
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Parameters",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Parameters",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Parameters",
        "name": "Parameters",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Parameters Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/Resource",
        "snapshot": {
          "element": [
            {
              "path": "Parameters",
              "short": "Operation Request or Response",
              "definition": "This special resource type is used to represent an operation request and response (operations.html). It has no other use, and there is no RESTful endpoint associated with it.",
              "comments": "The parameters that may be used are defined by the OperationDefinition resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.exchange"
                }
              ]
            },
            {
              "path": "Parameters.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Parameters.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Parameters.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Parameters.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Parameters.parameter",
              "name": "parameter",
              "short": "Operation Parameter",
              "definition": "A parameter passed to or received from the operation.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "value[x] xor resource"
                    }
                  ],
                  "key": "inv-1",
                  "severity": "error",
                  "human": "A parameter must have a value or a resource, but not both",
                  "xpath": "exists(f:value) or exists(f:resource) and not(exists(f:value) and exists(f:resource))"
                }
              ]
            },
            {
              "path": "Parameters.parameter.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Parameters.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Parameters.parameter.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Parameters.parameter.name",
              "short": "Name from the definition",
              "definition": "The name of the parameter (reference to the operation definition).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Parameters.parameter.value[x]",
              "short": "If parameter is a data type",
              "definition": "If the parameter is a data type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "integer"
                },
                {
                  "code": "decimal"
                },
                {
                  "code": "base64Binary"
                },
                {
                  "code": "instant"
                },
                {
                  "code": "string"
                },
                {
                  "code": "uri"
                },
                {
                  "code": "date"
                },
                {
                  "code": "dateTime"
                },
                {
                  "code": "time"
                },
                {
                  "code": "code"
                },
                {
                  "code": "oid"
                },
                {
                  "code": "id"
                },
                {
                  "code": "unsignedInt"
                },
                {
                  "code": "positiveInt"
                },
                {
                  "code": "markdown"
                },
                {
                  "code": "Annotation"
                },
                {
                  "code": "Attachment"
                },
                {
                  "code": "Identifier"
                },
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Coding"
                },
                {
                  "code": "Quantity"
                },
                {
                  "code": "Range"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "Ratio"
                },
                {
                  "code": "SampledData"
                },
                {
                  "code": "Signature"
                },
                {
                  "code": "HumanName"
                },
                {
                  "code": "Address"
                },
                {
                  "code": "ContactPoint"
                },
                {
                  "code": "Timing"
                },
                {
                  "code": "Reference"
                },
                {
                  "code": "Meta"
                }
              ],
              "condition": [
                "inv-1"
              ]
            },
            {
              "path": "Parameters.parameter.resource",
              "short": "If parameter is a whole resource",
              "definition": "If the parameter is a whole resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "condition": [
                "inv-1"
              ]
            },
            {
              "path": "Parameters.parameter.part",
              "short": "Named part of a parameter (e.g. Tuple)",
              "definition": "A named part of a parameter. In many implementation context, a set of named parts is known as a \"Tuple\".",
              "comments": "Only one level of Tuples is allowed.",
              "min": 0,
              "max": "*",
              "nameReference": "parameter",
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "value[x] xor resource"
                    }
                  ],
                  "key": "inv-2",
                  "severity": "error",
                  "human": "A part must have a value or a resource, but not both",
                  "xpath": "exists(f:value) or exists(f:resource) and not(exists(f:value) and exists(f:resource))"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Parameters",
              "short": "Operation Request or Response",
              "definition": "This special resource type is used to represent an operation request and response (operations.html). It has no other use, and there is no RESTful endpoint associated with it.",
              "comments": "The parameters that may be used are defined by the OperationDefinition resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.exchange"
                }
              ]
            },
            {
              "path": "Parameters.parameter",
              "name": "parameter",
              "short": "Operation Parameter",
              "definition": "A parameter passed to or received from the operation.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "value[x] xor resource"
                    }
                  ],
                  "key": "inv-1",
                  "severity": "error",
                  "human": "A parameter must have a value or a resource, but not both",
                  "xpath": "exists(f:value) or exists(f:resource) and not(exists(f:value) and exists(f:resource))"
                }
              ]
            },
            {
              "path": "Parameters.parameter.name",
              "short": "Name from the definition",
              "definition": "The name of the parameter (reference to the operation definition).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Parameters.parameter.value[x]",
              "short": "If parameter is a data type",
              "definition": "If the parameter is a data type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "integer"
                },
                {
                  "code": "decimal"
                },
                {
                  "code": "base64Binary"
                },
                {
                  "code": "instant"
                },
                {
                  "code": "string"
                },
                {
                  "code": "uri"
                },
                {
                  "code": "date"
                },
                {
                  "code": "dateTime"
                },
                {
                  "code": "time"
                },
                {
                  "code": "code"
                },
                {
                  "code": "oid"
                },
                {
                  "code": "id"
                },
                {
                  "code": "unsignedInt"
                },
                {
                  "code": "positiveInt"
                },
                {
                  "code": "markdown"
                },
                {
                  "code": "Annotation"
                },
                {
                  "code": "Attachment"
                },
                {
                  "code": "Identifier"
                },
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Coding"
                },
                {
                  "code": "Quantity"
                },
                {
                  "code": "Range"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "Ratio"
                },
                {
                  "code": "SampledData"
                },
                {
                  "code": "Signature"
                },
                {
                  "code": "HumanName"
                },
                {
                  "code": "Address"
                },
                {
                  "code": "ContactPoint"
                },
                {
                  "code": "Timing"
                },
                {
                  "code": "Reference"
                },
                {
                  "code": "Meta"
                }
              ],
              "condition": [
                "inv-1"
              ]
            },
            {
              "path": "Parameters.parameter.resource",
              "short": "If parameter is a whole resource",
              "definition": "If the parameter is a whole resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "condition": [
                "inv-1"
              ]
            },
            {
              "path": "Parameters.parameter.part",
              "short": "Named part of a parameter (e.g. Tuple)",
              "definition": "A named part of a parameter. In many implementation context, a set of named parts is known as a \"Tuple\".",
              "comments": "Only one level of Tuples is allowed.",
              "min": 0,
              "max": "*",
              "nameReference": "parameter",
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "value[x] xor resource"
                    }
                  ],
                  "key": "inv-2",
                  "severity": "error",
                  "human": "A part must have a value or a resource, but not both",
                  "xpath": "exists(f:value) or exists(f:resource) and not(exists(f:value) and exists(f:resource))"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/Resource-validate",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "Resource-validate",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/Resource-validate",
        "name": "Validate a resource",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "The validate operation checks whether the attached content would be acceptable either generally, as a create, an update or as a delete to an existing resource.  The action the server takes depends on the mode parameter:  \n\n* [mode not provided]: The server checks the content of the resource against any schema, constraint rules, and other general terminology rules \n* create: The server checks the content, and then checks that the content would be acceptable as a create (e.g. that the content would not violate any uniqueness constraints) \n* update: The server checks the content, and then checks that it would accept it as an update against the nominated specific resource (e.g. that there are no changes to immutable fields the server does not allow to change, and checking version integrity if appropriate) \n* delete: The server ignores the content, and checks that the nominated resource is allowed to be deleted (e.g. checking referential integrity rules)  \n\nModes update and delete can only be used when the operation is invoked at the resource instance level.   The return from this operation is an [[[OperationOutcome]]]",
        "code": "validate",
        "notes": "This operation may be used during design and development to validate application design. It can also be used at run-time. One possible use might be that a client asks the server whether a proposed update is valid as the user is editing a dialog and displays an updated error to the user. The operation can be used as part of a light-weight two phase commit protocol but there is no expectation that the server will hold the content of the resource after this operation is used, or that the server guarantees to successfully perform an actual create, update or delete after the validation operation completes.",
        "system": false,
        "type": [
          "Resource"
        ],
        "instance": true,
        "parameter": [
          {
            "name": "resource",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "Must be present unless the mode is \"delete\"",
            "type": "Resource"
          },
          {
            "name": "mode",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "Default is 'no action'; (e.g. general validation)",
            "type": "code",
            "binding": {
              "strength": "required",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/resource-validation-mode"
              }
            }
          },
          {
            "name": "profile",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "If this is nominated, then the resource is validated against this specific profile. If a profile is nominated, and the server cannot validate against the nominated profile, it SHALL return an error",
            "type": "uri"
          },
          {
            "name": "return",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "If the operation outcome does not list any errors, and a mode was specified, then this is an indication that the operation would be expected to succeed (excepting for transactional integrity issues, see below)",
            "type": "OperationOutcome"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/Resource-meta",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "Resource-meta",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/Resource-meta",
        "name": "Access a list of profiles, tags, and security labels",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "This operation retrieves a summary of the profiles, tags, and security labels for the given scope; e.g. for each scope:  \n\n* system-wide: a list of all profiles, tags and security labels in use by the system \n* resource-type level: A list of all profiles, tags, and security labels for the resource type \n* individual resource level: A list of all profiles, tags, and security labels for the current version of the resource.  Also, as a special case, this operation (and other meta operations) can be performed on a historical version of a resource)",
        "code": "meta",
        "notes": "At the system and type levels, the $meta operation is used to get a summary of all the labels that are in use across the system. The principle use for this operation is to support search e.g. what tags can be searched for. At these levels, the meta will not contain versionId, lastUpdated etc. Systems are not obligated to implement the operation at this level (and should return a 4xx error if they don't). At the resource and historical entry level, the $meta operation returns the same meta as would be returned by accessing the resource directly. This can be used to allow a system to get access to the meta-information for the resource without accessing the resource itself, e.g. for security reasons",
        "system": true,
        "type": [
          "Resource"
        ],
        "instance": true,
        "parameter": [
          {
            "name": "return",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "The meta returned by the operation",
            "type": "Meta"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/Resource-meta-add",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "Resource-meta-add",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/Resource-meta-add",
        "name": "Add profiles, tags, and security labels to a resource",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "This operation takes a meta, and adds the profiles, tags, and security labels found in it to the nominated resource.   This operation can also be used on historical entries - to update them without creating a different historical version",
        "code": "meta-add",
        "notes": "This operation is special in that executing this operation does not cause a new version of the resource to be created. The meta is updated directly. This is because the content in meta does not affect the meaning of the resource, and the security labels (in particular) are used to apply access rules to existing versions of resources",
        "system": false,
        "instance": true,
        "parameter": [
          {
            "name": "meta",
            "use": "in",
            "min": 1,
            "max": "1",
            "documentation": "Profiles, tags, and security labels to add to the existing resource. Note that profiles, tags, and security labels are sets, and duplicates are not created.  The identity of a tag or security label is the system+code. When matching existing tags during adding, version and display are ignored. For profiles, matching is based on the full URL",
            "type": "Meta"
          },
          {
            "name": "return",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "Resulting meta for the resource",
            "type": "Meta"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/Resource-meta-delete",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "Resource-meta-delete",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/Resource-meta-delete",
        "name": "Delete profiles, tags, and security labels for a resource",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "This operation takes a meta, and deletes the profiles, tags, and security labels found in it from the nominated resource.   This operation can also be used on historical entries",
        "code": "meta-delete",
        "notes": "This operation is special in that executing this operation does not cause a new version of the resource to be created. The meta is updated directly. This is because the content in meta does not affect the meaning of the resource, and the security labels (in particular) are used to apply access rules to existing versions of resources",
        "system": false,
        "instance": true,
        "parameter": [
          {
            "name": "meta",
            "use": "in",
            "min": 1,
            "max": "1",
            "documentation": "Profiles, tags, and security labels to delete from the existing resource. It is not an error if these tags, profiles, and labels do not exist.  The identity of a tag or security label is the system+code. When matching existing tags during deletion, version and display are ignored. For profiles, matching is based on the full URL",
            "type": "Meta"
          },
          {
            "name": "return",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "Resulting meta for the resource",
            "type": "Meta"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Resource",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Resource",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Resource",
        "name": "Resource",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Resource Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": true,
        "snapshot": {
          "element": [
            {
              "path": "Resource",
              "short": "Base Resource",
              "definition": "This is the base resource type for everything.",
              "min": 0,
              "max": "*",
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Entity. Role, or Act"
                }
              ]
            },
            {
              "path": "Resource.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Resource.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Resource.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Resource.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Resource",
              "short": "Base Resource",
              "definition": "This is the base resource type for everything.",
              "min": 0,
              "max": "*",
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Entity. Role, or Act"
                }
              ]
            },
            {
              "path": "Resource.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Resource.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Resource.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Resource.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DomainResource",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "name": "DomainResource",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DomainResource Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": true,
        "base": "http://hl7.org/fhir/StructureDefinition/Resource",
        "snapshot": {
          "element": [
            {
              "path": "DomainResource",
              "short": "A resource with narrative, extensions, and contained resources",
              "definition": "A resource that includes narrative, extensions, and contained resources.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
                    }
                  ],
                  "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",
                  "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "contained.all(\"#\"+id in **.reference)"
                    }
                  ],
                  "key": "dom-3",
                  "severity": "error",
                  "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource",
                  "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "contained.contained.empty()"
                    }
                  ],
                  "key": "dom-2",
                  "severity": "error",
                  "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                  "xpath": "not(parent::f:contained and f:contained)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "contained.text.empty()"
                    }
                  ],
                  "key": "dom-1",
                  "severity": "error",
                  "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative",
                  "xpath": "not(parent::f:contained and f:text)"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Entity. Role, or Act"
                }
              ]
            },
            {
              "path": "DomainResource.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DomainResource.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DomainResource.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DomainResource.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "DomainResource.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DomainResource.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DomainResource.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DomainResource.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "DomainResource",
              "short": "A resource with narrative, extensions, and contained resources",
              "definition": "A resource that includes narrative, extensions, and contained resources.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
                    }
                  ],
                  "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",
                  "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "contained.all(\"#\"+id in **.reference)"
                    }
                  ],
                  "key": "dom-3",
                  "severity": "error",
                  "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource",
                  "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "contained.contained.empty()"
                    }
                  ],
                  "key": "dom-2",
                  "severity": "error",
                  "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                  "xpath": "not(parent::f:contained and f:contained)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "contained.text.empty()"
                    }
                  ],
                  "key": "dom-1",
                  "severity": "error",
                  "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative",
                  "xpath": "not(parent::f:contained and f:text)"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Entity. Role, or Act"
                }
              ]
            },
            {
              "path": "DomainResource.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DomainResource.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DomainResource.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DomainResource.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Account",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Account",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Account",
        "name": "Account",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Account Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Account",
              "definition": "A financial tool for tracking value accrued for a particular purpose.  In the healthcare field, used to track charges for a patient, cost centres, etc.",
              "alias": [
                "Cost center",
                "Record"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.support"
                }
              ]
            },
            {
              "path": "Account.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Account.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Account.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Account.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Account.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Account.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Account.identifier",
              "short": "Account number",
              "definition": "Unique identifier used to reference the account.  May or may not be intended for human use (e.g. credit card number).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.name",
              "short": "Human-readable label",
              "definition": "Name used for the account when displaying it to humans in reports, etc.",
              "alias": [
                "Title"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.type",
              "short": "E.g. patient, expense, depreciation",
              "definition": "Categorizes the account for reporting and searching purposes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The usage type of this account, permits categorization of accounts."
              }
            },
            {
              "path": "Account.status",
              "short": "active | inactive",
              "definition": "Indicates whether the account is presently used/useable or not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Indicates whether the account is available to be used.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/account-status"
                }
              }
            },
            {
              "path": "Account.activePeriod",
              "short": "Valid from..to",
              "definition": "Indicates the period of time over which the account is allowed.",
              "comments": "Transactions cannot typically be posted to account outside of its \"active\" period.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.currency",
              "short": "Base currency in which balance is tracked",
              "definition": "Identifies the currency to which transactions must be converted when crediting or debiting the account.",
              "comments": "Tracked separately from balance because currency might be known when balance is not.  In some cases, balance might be expressed in a currency other than the base currency for the account.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The monetary currency in which this account records values.",
                "valueSetUri": "http://www.iso.org/iso/home/standards/currency_codes"
              }
            },
            {
              "path": "Account.balance",
              "short": "How much is in account?",
              "definition": "Represents the sum of all credits less all debits associated with the account.  Might be positive, zero or negative.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.coveragePeriod",
              "short": "Transaction window",
              "definition": "Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.",
              "comments": "It is possible for transactions relevant to a coverage period to be posted to the account before or after the coverage period.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.subject",
              "short": "What is account tied to?",
              "definition": "Identifies the patient, device, practitioner, location or other object the account is associated with.",
              "alias": [
                "target"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.owner",
              "short": "Who is responsible?",
              "definition": "Indicates the organization, department, etc. with responsibility for the account.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.description",
              "short": "Explanation of purpose/use",
              "definition": "Provides additional information about what the account tracks and how it is used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Account",
              "definition": "A financial tool for tracking value accrued for a particular purpose.  In the healthcare field, used to track charges for a patient, cost centres, etc.",
              "alias": [
                "Cost center",
                "Record"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.support"
                }
              ]
            },
            {
              "path": "Account.identifier",
              "short": "Account number",
              "definition": "Unique identifier used to reference the account.  May or may not be intended for human use (e.g. credit card number).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.name",
              "short": "Human-readable label",
              "definition": "Name used for the account when displaying it to humans in reports, etc.",
              "alias": [
                "Title"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.type",
              "short": "E.g. patient, expense, depreciation",
              "definition": "Categorizes the account for reporting and searching purposes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The usage type of this account, permits categorization of accounts."
              }
            },
            {
              "path": "Account.status",
              "short": "active | inactive",
              "definition": "Indicates whether the account is presently used/useable or not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Indicates whether the account is available to be used.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/account-status"
                }
              }
            },
            {
              "path": "Account.activePeriod",
              "short": "Valid from..to",
              "definition": "Indicates the period of time over which the account is allowed.",
              "comments": "Transactions cannot typically be posted to account outside of its \"active\" period.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.currency",
              "short": "Base currency in which balance is tracked",
              "definition": "Identifies the currency to which transactions must be converted when crediting or debiting the account.",
              "comments": "Tracked separately from balance because currency might be known when balance is not.  In some cases, balance might be expressed in a currency other than the base currency for the account.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The monetary currency in which this account records values.",
                "valueSetUri": "http://www.iso.org/iso/home/standards/currency_codes"
              }
            },
            {
              "path": "Account.balance",
              "short": "How much is in account?",
              "definition": "Represents the sum of all credits less all debits associated with the account.  Might be positive, zero or negative.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.coveragePeriod",
              "short": "Transaction window",
              "definition": "Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.",
              "comments": "It is possible for transactions relevant to a coverage period to be posted to the account before or after the coverage period.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.subject",
              "short": "What is account tied to?",
              "definition": "Identifies the patient, device, practitioner, location or other object the account is associated with.",
              "alias": [
                "target"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.owner",
              "short": "Who is responsible?",
              "definition": "Indicates the organization, department, etc. with responsibility for the account.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Account.description",
              "short": "Explanation of purpose/use",
              "definition": "Provides additional information about what the account tracks and how it is used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "AllergyIntolerance",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
        "name": "AllergyIntolerance",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for AllergyIntolerance Resource",
        "requirements": "To record a clinical assessment of a propensity, or potential risk to an individual, of an adverse reaction upon future exposure to the specified substance, or class of substance.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "AllergyIntolerance",
              "short": "Allergy or Intolerance (generally: Risk Of Adverse reaction to a substance)",
              "definition": "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.",
              "comments": "Substances include, but are not limited to: a therapeutic substance administered correctly at an appropriate dosage for the individual; food; material derived from plants or animals; or venom from insect stings.",
              "alias": [
                "Allergy",
                "Intolerance",
                "Adverse Reaction"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "AllergyIntolerance.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "AllergyIntolerance.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "AllergyIntolerance.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "AllergyIntolerance.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.identifier",
              "short": "External ids for this item",
              "definition": "This records identifiers associated with this allergy/intolerance concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-7"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.onset",
              "short": "Date(/time) when manifestations showed",
              "definition": "Record of the date and/or time of the onset of the Allergy or Intolerance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "AllergyIntolerance.recordedDate",
              "short": "When recorded",
              "definition": "Date when the sensitivity was recorded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-20"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.recorder",
              "short": "Who recorded the sensitivity",
              "definition": "Individual who recorded the record and takes responsibility for its conten.",
              "alias": [
                "Author"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.patient",
              "short": "Who the sensitivity is for",
              "definition": "The patient who has the allergy or intolerance.",
              "alias": [
                "Patient"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "(PID-3)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.reporter",
              "short": "Source of the information about the allergy",
              "definition": "The source of the information about the allergy that is recorded.",
              "comments": "The recorder takes repsonsibility for the content, but can reference the source from where they got it.",
              "alias": [
                "Source",
                "Informant"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-14 (if patient) / IAM-18 (if practitioner)"
                },
                {
                  "identity": "w5",
                  "map": "who.source"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.substance",
              "short": "Substance, (or class) considered to be responsible for risk",
              "definition": "Identification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk.",
              "comments": "It is strongly recommended that the substance be coded with a terminology, where possible. For example, some terminologies used include RxNorm, SNOMED CT, DM+D, NDFRT, ICD-9, IDC-10, UNI, ATC and CPT. Plain text should only be used if there is no appropriate terminology available. Additional details about a substance can be specified in the text.",
              "alias": [
                "Agent"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Type of the substance and Negation codes for reporting no known allergies.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/allergyintolerance-substance-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "AL1-3 / IAM-3"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.status",
              "short": "active | unconfirmed | confirmed | inactive | resolved | refuted | entered-in-error",
              "definition": "Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.",
              "comments": "Decision support would typically raise alerts for 'Unconfirmed', 'Confirmed', and 'Resolved' and ignore a 'Refuted' reaction. In particular, 'Refuted' may be useful for reconciliation of the Adverse Reaction List. Some implementations may choose to make this field mandatory.",
              "alias": [
                "State"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Assertion about certainty associated with a propensity, or potential risk, of a reaction to the identified Substance.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/allergy-intolerance-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-17"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.criticality",
              "short": "CRITL | CRITH | CRITU",
              "definition": "Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.",
              "comments": "The default criticality value for any propensity to an adverse reaction should be 'Low Risk', indicating at the very least a relative contraindication to deliberate or voluntary exposure to the Substance. 'High Risk' is flagged if the clinician has identified a propensity for a more serious or potentially life-threatening reaction, such as anaphylaxis, and implies an absolute contraindication to deliberate or voluntary exposure to the substance. If this element is missing, the criticality is unknown (though it may be known elsewhere).",
              "alias": [
                "Severity",
                "Seriousness",
                "Contra-indication",
                "Risk"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Estimate of the potential clinical harm, or seriousness, of a reaction to an identified Substance.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.type",
              "short": "allergy | intolerance - Underlying mechanism (if known)",
              "definition": "Identification of the underlying physiological mechanism for the reaction risk.",
              "comments": "Allergic (typically immune-mediated) reactions have been traditionally regarded as an indicator for potential escalation to significant future risk. Contemporary knowledge suggests that some reactions previously thought to be immune-mediated are, in fact, non-immune, but in some cases can still pose a life threatening risk. It is acknowledged that many clinicians may not be in a position to distinguish the mechanism of a particular reaction. Often the term \"allergy\" is used rather generically and may overlap with the use of \"intolerance\" - in practice the boundaries between these two concepts may not be well-defined or understood. This data element is included nevertheless, because many legacy systems have captured this attribute. Immunologic testing may provide supporting evidence for the basis of the reaction and the causative substance, but no tests are 100% sensitive or specific for sensitivity to a particular substance. If, as is commonly the case, it is unclear whether the reaction is due to an allergy or an intolerance, then the type element should be omitted from the resource.",
              "alias": [
                "Category",
                "Class"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Identification of the underlying physiological mechanism for a Reaction Risk.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/allergy-intolerance-type"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-9"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.category",
              "short": "food | medication | environment | other - Category of Substance",
              "definition": "Category of the identified Substance.",
              "comments": "This data element has been included because it is currently being captured in some clinical systems. This data can be derived from the Substance where coding systems are used, and is effectively redundant in that situation.",
              "alias": [
                "Category",
                "Type",
                "Reaction Type",
                "Class"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Category of an identified Substance.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/allergy-intolerance-category"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.lastOccurence",
              "short": "Date(/time) of last known occurrence of a reaction",
              "definition": "Represents the date and/or time of the last known occurrence of a reaction event.",
              "comments": "This date may be replicated by one of the Onset of Reaction dates. Where a textual representation of the date of last occurrence is required e.g. 'In Childhood, '10 years ago' the Comment element should be used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "AllergyIntolerance.note",
              "short": "Additional text not captured in other fields",
              "definition": "Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.",
              "comments": "For example: including reason for flagging a seriousness of 'High Risk'; and instructions related to future exposure or administration of the Substance, such as administration within an Intensive Care Unit or under corticosteroid cover. The notes should be related to an allergy or intolerance as a condition in general and not related to any particular episode of it. For episode notes and descriptions, use AllergyIntolerance.event.description and  AllergyIntolerance.event.notes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Annotation"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.reaction",
              "short": "Adverse Reaction Events linked to exposure to substance",
              "definition": "Details about each adverse reaction event linked to exposure to the identified Substance.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.reaction.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.reaction.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.reaction.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.reaction.substance",
              "short": "Specific substance considered to be responsible for event",
              "definition": "Identification of the specific substance considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different to the substance identified as the cause of the risk, but must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite substance that includes the identified substance. It must be clinically safe to only process the AllergyIntolerance.substance and ignore the AllergyIntolerance.event.substance.",
              "comments": "Coding of the specific substance with a terminology capable of triggering decision support should be used wherever possible.  The substance field allows for the use of a specific substance or a group or class of substances, for example \"Penicillins\". The specific substance field could be used for Amoxycillin. Duplication is acceptable when a specific substance has been recorded in the 'substance' field.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes defining the type of the substance.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/substance-code"
                }
              }
            },
            {
              "path": "AllergyIntolerance.reaction.certainty",
              "short": "unlikely | likely | confirmed - clinical certainty about the specific substance",
              "definition": "Statement about the degree of clinical certainty that the specific substance was the cause of the manifestation in this reaction event.",
              "alias": [
                "Cause"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Statement about the degree of clinical certainty that a Specific Substance was the cause of the Manifestation in an reaction event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/reaction-event-certainty"
                }
              }
            },
            {
              "path": "AllergyIntolerance.reaction.manifestation",
              "short": "Clinical symptoms/signs associated with the Event",
              "definition": "Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.",
              "comments": "Manifestation can be expressed as a single word, phrase or brief description. For example: nausea, rash or no reaction. It is preferable that manifestation should be coded with a terminology, where possible. The values entered here may be used to display on an application screen as part of a list of adverse reactions, as recommended in the UK NHS CUI guidelines.  Terminologies commonly used include, but are not limited to, SNOMED CT or ICD10.",
              "alias": [
                "Symptoms",
                "Signs"
              ],
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Clinical symptoms and/or signs that are observed or associated with an Adverse Reaction Event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/manifestation-codes"
                }
              }
            },
            {
              "path": "AllergyIntolerance.reaction.description",
              "short": "Description of the event as a whole",
              "definition": "Text description about the reaction as a whole, including details of the manifestation if required.",
              "comments": "Use the description to provide any details of a particular event of the occurred reaction such as circumstances, reaction specifics, what happened before/after. Information, related to the event, but not describing a particular care should be captured in the comment field. For example: at the age of four, the patient was given penicillin for strep throat and subsequently developed severe hives.",
              "alias": [
                "Narrative",
                "Text"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.reaction.onset",
              "short": "Date(/time) when manifestations showed",
              "definition": "Record of the date and/or time of the onset of the Reaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "AllergyIntolerance.reaction.severity",
              "short": "mild | moderate | severe (of event as a whole)",
              "definition": "Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.",
              "comments": "It is acknowledged that this assessment is very subjective. There may be some some specific practice domains where objective scales have been applied. Objective scales can be included in this model as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different manifestations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/reaction-event-severity"
                }
              }
            },
            {
              "path": "AllergyIntolerance.reaction.exposureRoute",
              "short": "How the subject was exposed to the substance",
              "definition": "Identification of the route by which the subject was exposed to the substance.",
              "comments": "Coding of the route of exposure with a terminology should be used wherever possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/route-codes"
                }
              }
            },
            {
              "path": "AllergyIntolerance.reaction.note",
              "short": "Text about event not captured in other fields",
              "definition": "Additional text about the adverse reaction event not captured in other fields.",
              "comments": "Use this field to record information indirectly related to a particular event and not captured in the description. For example: Clinical records are no longer available, recorded based on information provided to the patient by her mother and her mother is deceased.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Annotation"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "AllergyIntolerance",
              "short": "Allergy or Intolerance (generally: Risk Of Adverse reaction to a substance)",
              "definition": "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.",
              "comments": "Substances include, but are not limited to: a therapeutic substance administered correctly at an appropriate dosage for the individual; food; material derived from plants or animals; or venom from insect stings.",
              "alias": [
                "Allergy",
                "Intolerance",
                "Adverse Reaction"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.identifier",
              "short": "External ids for this item",
              "definition": "This records identifiers associated with this allergy/intolerance concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-7"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.onset",
              "short": "Date(/time) when manifestations showed",
              "definition": "Record of the date and/or time of the onset of the Allergy or Intolerance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "AllergyIntolerance.recordedDate",
              "short": "When recorded",
              "definition": "Date when the sensitivity was recorded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-20"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.recorder",
              "short": "Who recorded the sensitivity",
              "definition": "Individual who recorded the record and takes responsibility for its conten.",
              "alias": [
                "Author"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.patient",
              "short": "Who the sensitivity is for",
              "definition": "The patient who has the allergy or intolerance.",
              "alias": [
                "Patient"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "(PID-3)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.reporter",
              "short": "Source of the information about the allergy",
              "definition": "The source of the information about the allergy that is recorded.",
              "comments": "The recorder takes repsonsibility for the content, but can reference the source from where they got it.",
              "alias": [
                "Source",
                "Informant"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-14 (if patient) / IAM-18 (if practitioner)"
                },
                {
                  "identity": "w5",
                  "map": "who.source"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.substance",
              "short": "Substance, (or class) considered to be responsible for risk",
              "definition": "Identification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk.",
              "comments": "It is strongly recommended that the substance be coded with a terminology, where possible. For example, some terminologies used include RxNorm, SNOMED CT, DM+D, NDFRT, ICD-9, IDC-10, UNI, ATC and CPT. Plain text should only be used if there is no appropriate terminology available. Additional details about a substance can be specified in the text.",
              "alias": [
                "Agent"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Type of the substance and Negation codes for reporting no known allergies.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/allergyintolerance-substance-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "AL1-3 / IAM-3"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.status",
              "short": "active | unconfirmed | confirmed | inactive | resolved | refuted | entered-in-error",
              "definition": "Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.",
              "comments": "Decision support would typically raise alerts for 'Unconfirmed', 'Confirmed', and 'Resolved' and ignore a 'Refuted' reaction. In particular, 'Refuted' may be useful for reconciliation of the Adverse Reaction List. Some implementations may choose to make this field mandatory.",
              "alias": [
                "State"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Assertion about certainty associated with a propensity, or potential risk, of a reaction to the identified Substance.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/allergy-intolerance-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-17"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.criticality",
              "short": "CRITL | CRITH | CRITU",
              "definition": "Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.",
              "comments": "The default criticality value for any propensity to an adverse reaction should be 'Low Risk', indicating at the very least a relative contraindication to deliberate or voluntary exposure to the Substance. 'High Risk' is flagged if the clinician has identified a propensity for a more serious or potentially life-threatening reaction, such as anaphylaxis, and implies an absolute contraindication to deliberate or voluntary exposure to the substance. If this element is missing, the criticality is unknown (though it may be known elsewhere).",
              "alias": [
                "Severity",
                "Seriousness",
                "Contra-indication",
                "Risk"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Estimate of the potential clinical harm, or seriousness, of a reaction to an identified Substance.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.type",
              "short": "allergy | intolerance - Underlying mechanism (if known)",
              "definition": "Identification of the underlying physiological mechanism for the reaction risk.",
              "comments": "Allergic (typically immune-mediated) reactions have been traditionally regarded as an indicator for potential escalation to significant future risk. Contemporary knowledge suggests that some reactions previously thought to be immune-mediated are, in fact, non-immune, but in some cases can still pose a life threatening risk. It is acknowledged that many clinicians may not be in a position to distinguish the mechanism of a particular reaction. Often the term \"allergy\" is used rather generically and may overlap with the use of \"intolerance\" - in practice the boundaries between these two concepts may not be well-defined or understood. This data element is included nevertheless, because many legacy systems have captured this attribute. Immunologic testing may provide supporting evidence for the basis of the reaction and the causative substance, but no tests are 100% sensitive or specific for sensitivity to a particular substance. If, as is commonly the case, it is unclear whether the reaction is due to an allergy or an intolerance, then the type element should be omitted from the resource.",
              "alias": [
                "Category",
                "Class"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Identification of the underlying physiological mechanism for a Reaction Risk.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/allergy-intolerance-type"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-9"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.category",
              "short": "food | medication | environment | other - Category of Substance",
              "definition": "Category of the identified Substance.",
              "comments": "This data element has been included because it is currently being captured in some clinical systems. This data can be derived from the Substance where coding systems are used, and is effectively redundant in that situation.",
              "alias": [
                "Category",
                "Type",
                "Reaction Type",
                "Class"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Category of an identified Substance.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/allergy-intolerance-category"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.lastOccurence",
              "short": "Date(/time) of last known occurrence of a reaction",
              "definition": "Represents the date and/or time of the last known occurrence of a reaction event.",
              "comments": "This date may be replicated by one of the Onset of Reaction dates. Where a textual representation of the date of last occurrence is required e.g. 'In Childhood, '10 years ago' the Comment element should be used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "AllergyIntolerance.note",
              "short": "Additional text not captured in other fields",
              "definition": "Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.",
              "comments": "For example: including reason for flagging a seriousness of 'High Risk'; and instructions related to future exposure or administration of the Substance, such as administration within an Intensive Care Unit or under corticosteroid cover. The notes should be related to an allergy or intolerance as a condition in general and not related to any particular episode of it. For episode notes and descriptions, use AllergyIntolerance.event.description and  AllergyIntolerance.event.notes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Annotation"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.reaction",
              "short": "Adverse Reaction Events linked to exposure to substance",
              "definition": "Details about each adverse reaction event linked to exposure to the identified Substance.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.reaction.substance",
              "short": "Specific substance considered to be responsible for event",
              "definition": "Identification of the specific substance considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different to the substance identified as the cause of the risk, but must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite substance that includes the identified substance. It must be clinically safe to only process the AllergyIntolerance.substance and ignore the AllergyIntolerance.event.substance.",
              "comments": "Coding of the specific substance with a terminology capable of triggering decision support should be used wherever possible.  The substance field allows for the use of a specific substance or a group or class of substances, for example \"Penicillins\". The specific substance field could be used for Amoxycillin. Duplication is acceptable when a specific substance has been recorded in the 'substance' field.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes defining the type of the substance.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/substance-code"
                }
              }
            },
            {
              "path": "AllergyIntolerance.reaction.certainty",
              "short": "unlikely | likely | confirmed - clinical certainty about the specific substance",
              "definition": "Statement about the degree of clinical certainty that the specific substance was the cause of the manifestation in this reaction event.",
              "alias": [
                "Cause"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Statement about the degree of clinical certainty that a Specific Substance was the cause of the Manifestation in an reaction event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/reaction-event-certainty"
                }
              }
            },
            {
              "path": "AllergyIntolerance.reaction.manifestation",
              "short": "Clinical symptoms/signs associated with the Event",
              "definition": "Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.",
              "comments": "Manifestation can be expressed as a single word, phrase or brief description. For example: nausea, rash or no reaction. It is preferable that manifestation should be coded with a terminology, where possible. The values entered here may be used to display on an application screen as part of a list of adverse reactions, as recommended in the UK NHS CUI guidelines.  Terminologies commonly used include, but are not limited to, SNOMED CT or ICD10.",
              "alias": [
                "Symptoms",
                "Signs"
              ],
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Clinical symptoms and/or signs that are observed or associated with an Adverse Reaction Event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/manifestation-codes"
                }
              }
            },
            {
              "path": "AllergyIntolerance.reaction.description",
              "short": "Description of the event as a whole",
              "definition": "Text description about the reaction as a whole, including details of the manifestation if required.",
              "comments": "Use the description to provide any details of a particular event of the occurred reaction such as circumstances, reaction specifics, what happened before/after. Information, related to the event, but not describing a particular care should be captured in the comment field. For example: at the age of four, the patient was given penicillin for strep throat and subsequently developed severe hives.",
              "alias": [
                "Narrative",
                "Text"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "AllergyIntolerance.reaction.onset",
              "short": "Date(/time) when manifestations showed",
              "definition": "Record of the date and/or time of the onset of the Reaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "AllergyIntolerance.reaction.severity",
              "short": "mild | moderate | severe (of event as a whole)",
              "definition": "Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.",
              "comments": "It is acknowledged that this assessment is very subjective. There may be some some specific practice domains where objective scales have been applied. Objective scales can be included in this model as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different manifestations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/reaction-event-severity"
                }
              }
            },
            {
              "path": "AllergyIntolerance.reaction.exposureRoute",
              "short": "How the subject was exposed to the substance",
              "definition": "Identification of the route by which the subject was exposed to the substance.",
              "comments": "Coding of the route of exposure with a terminology should be used wherever possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/route-codes"
                }
              }
            },
            {
              "path": "AllergyIntolerance.reaction.note",
              "short": "Text about event not captured in other fields",
              "definition": "Additional text about the adverse reaction event not captured in other fields.",
              "comments": "Use this field to record information indirectly related to a particular event and not captured in the description. For example: Clinical records are no longer available, recorded based on information provided to the patient by her mother and her mother is deceased.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Annotation"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Appointment",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Appointment",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Appointment",
        "name": "Appointment",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Appointment Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "ical",
            "uri": "http://www.ietf.org/rfc/rfc2445.txt",
            "name": "iCalendar"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Appointment",
              "short": "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)",
              "definition": "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(start and end) or status = 'proposed' or status = 'cancelled'"
                    }
                  ],
                  "key": "app-3",
                  "severity": "error",
                  "human": "Only proposed or cancelled appointments can be missing start/end dates",
                  "xpath": "((exists(f:start) and exists(f:end)) or (f:status/@value='proposed') or (f:status/@value='cancelled'))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "start.empty() xor end"
                    }
                  ],
                  "key": "app-2",
                  "severity": "error",
                  "human": "Either start and end are specified, or neither",
                  "xpath": "((exists(f:start) and exists(f:end)) or (not(exists(f:start)) and not(exists(f:end))))"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "VEVENT"
                },
                {
                  "identity": "rim",
                  "map": "Act (ActMood = ActMoodAppointment or ActMoodAppointmentRequest)"
                },
                {
                  "identity": "w5",
                  "map": "workflow.scheduling"
                }
              ]
            },
            {
              "path": "Appointment.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Appointment.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Appointment.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Appointment.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Appointment.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Appointment.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Appointment.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Appointment.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Appointment.identifier",
              "short": "External Ids for this item",
              "definition": "This records identifiers associated with this appointment concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "UID"
                },
                {
                  "identity": "v2",
                  "map": "SCH-1, SCH-2, ARQ-1, ARQ-2"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Appointment.status",
              "short": "proposed | pending | booked | arrived | fulfilled | cancelled | noshow",
              "definition": "The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.",
              "comments": "If the Appointment's status is \"cancelled\" then all participants are expected to have their calendars released for the appointment period, and as such any Slots that were marked as BUSY can be re-set to FREE.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The free/busy status of an appointment.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/appointmentstatus"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SCH-25"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Appointment.type",
              "short": "The type of appointment that is being booked",
              "definition": "The type of appointment that is being booked (This may also be associated with participants for location, and/or a HealthcareService).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Additional details about where the content was created (e.g. clinical specialty).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Appointment.reason",
              "short": "Reason this appointment is scheduled",
              "definition": "The reason that this appointment is being scheduled. This is more clinical than administrative.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The Reason for the appointment to take place.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-reason"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "AIS-3, ARQ-7, SCH-7"
                },
                {
                  "identity": "rim",
                  "map": "(encounter appointment).reason"
                }
              ]
            },
            {
              "path": "Appointment.priority",
              "short": "Used to make informed decisions if needing to re-prioritize",
              "definition": "The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).",
              "comments": "Seeking implementer feedback on this property and how interoperable it is.\n\nUsing an extension to record a codeableconcept for named values may be tested at a future connectathon.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "PRIORITY"
                },
                {
                  "identity": "v2",
                  "map": "ARQ-12, SCH-11.6 / TQ1-9"
                },
                {
                  "identity": "rim",
                  "map": ".priorityCode"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Appointment.description",
              "short": "Shown on a subject line in a meeting request, or appointment list",
              "definition": "The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "DESCRIPTION"
                },
                {
                  "identity": "v2",
                  "map": "NTE-3"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "Appointment.start",
              "short": "When appointment is to take place",
              "definition": "Date/Time that the appointment is to take place.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ARQ-11.1, SCH-11.4 / TQ1-7"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime.low"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "Appointment.end",
              "short": "When appointment is to conclude",
              "definition": "Date/Time that the appointment is to conclude.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ARQ-11.2, SCH-11.5 / TQ1-8"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime.high"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Appointment.minutesDuration",
              "short": "Can be less than start/end (e.g. estimate)",
              "definition": "Number of minutes that the appointment is to take. This can be less than the duration between the start and end times (where actual time of appointment is only an estimate or is a planned appointment request).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ]
            },
            {
              "path": "Appointment.slot",
              "short": "If provided, then no schedule and start/end values MUST match slot",
              "definition": "The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Slot"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Schedule-Slot (classCode=ACT, moodCode = SLOT)"
                }
              ]
            },
            {
              "path": "Appointment.comment",
              "short": "Additional comments",
              "definition": "Additional comments about the appointment.",
              "comments": "Additional text to aid in facilitating the appointment. For instance, a comment might be, \"patient should proceed immediately to infusion room upon arrival\"\n\nWhere this is a planned appointment and the start/end dates are not set then this field can be used to provide additional guidance on the details of the appointment request, including any restrictions on when to book it.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "COMMENT"
                },
                {
                  "identity": "v2",
                  "map": "NTE-3"
                }
              ]
            },
            {
              "path": "Appointment.participant",
              "short": "Participants involved in appointment",
              "definition": "List of participants involved in the appointment.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "type or actor"
                    }
                  ],
                  "key": "app-1",
                  "severity": "error",
                  "human": "Either the type or actor on the participant MUST be specified",
                  "xpath": "(exists(f:type) or exists(f:actor))"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ATTENDEE component to be created"
                },
                {
                  "identity": "v2",
                  "map": "PID, AIP, AIG, AIL"
                }
              ]
            },
            {
              "path": "Appointment.participant.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Appointment.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Appointment.participant.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Appointment.participant.type",
              "short": "Role of participant in the appointment",
              "definition": "Role of participant in the appointment.",
              "comments": "The role of the participant can be used to declare what the actor will be doing in the scope of this appointment.\n\nIf the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.\n\nThis value MUST be the same when creating an AppointmentResponse so that they can be matched, and subsequently update the Appointment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Role of participant in encounter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "AIP-4, AIG-4"
                }
              ]
            },
            {
              "path": "Appointment.participant.actor",
              "short": "Person, Location/HealthcareService or Device",
              "definition": "A Person, Location/HealthcareService or Device that is participating in the appointment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ATTENDEE: (Need to provide the common name CN and also the MAILTO properties from the practitioner resource) where the participant type is not \"information-only\""
                },
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List | AIL-3 | AIG-3 | AIP-3"
                },
                {
                  "identity": "rim",
                  "map": "performer | reusableDevice | subject | location"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "Appointment.participant.required",
              "short": "required | optional | information-only",
              "definition": "Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Is the Participant required to attend the appointment.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/participantrequired"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ROLE=REQ-PARTICIPANT (roleparam)"
                },
                {
                  "identity": "rim",
                  "map": "performer.performIndicator"
                }
              ]
            },
            {
              "path": "Appointment.participant.status",
              "short": "accepted | declined | tentative | needs-action",
              "definition": "Participation status of the Patient.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The Participation status of an appointment.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/participationstatus"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ATTENDEE;CN=\"Brian Postlethwaite\";RSVP=TRUE:mailto:BPostlethwaite@data.com (rsvpparam | partstatparam)"
                },
                {
                  "identity": "v2",
                  "map": "AIP-12, AIG-14"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Appointment",
              "short": "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)",
              "definition": "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(start and end) or status = 'proposed' or status = 'cancelled'"
                    }
                  ],
                  "key": "app-3",
                  "severity": "error",
                  "human": "Only proposed or cancelled appointments can be missing start/end dates",
                  "xpath": "((exists(f:start) and exists(f:end)) or (f:status/@value='proposed') or (f:status/@value='cancelled'))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "start.empty() xor end"
                    }
                  ],
                  "key": "app-2",
                  "severity": "error",
                  "human": "Either start and end are specified, or neither",
                  "xpath": "((exists(f:start) and exists(f:end)) or (not(exists(f:start)) and not(exists(f:end))))"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "VEVENT"
                },
                {
                  "identity": "rim",
                  "map": "Act (ActMood = ActMoodAppointment or ActMoodAppointmentRequest)"
                },
                {
                  "identity": "w5",
                  "map": "workflow.scheduling"
                }
              ]
            },
            {
              "path": "Appointment.identifier",
              "short": "External Ids for this item",
              "definition": "This records identifiers associated with this appointment concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "UID"
                },
                {
                  "identity": "v2",
                  "map": "SCH-1, SCH-2, ARQ-1, ARQ-2"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Appointment.status",
              "short": "proposed | pending | booked | arrived | fulfilled | cancelled | noshow",
              "definition": "The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.",
              "comments": "If the Appointment's status is \"cancelled\" then all participants are expected to have their calendars released for the appointment period, and as such any Slots that were marked as BUSY can be re-set to FREE.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The free/busy status of an appointment.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/appointmentstatus"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SCH-25"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Appointment.type",
              "short": "The type of appointment that is being booked",
              "definition": "The type of appointment that is being booked (This may also be associated with participants for location, and/or a HealthcareService).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Additional details about where the content was created (e.g. clinical specialty).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Appointment.reason",
              "short": "Reason this appointment is scheduled",
              "definition": "The reason that this appointment is being scheduled. This is more clinical than administrative.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The Reason for the appointment to take place.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-reason"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "AIS-3, ARQ-7, SCH-7"
                },
                {
                  "identity": "rim",
                  "map": "(encounter appointment).reason"
                }
              ]
            },
            {
              "path": "Appointment.priority",
              "short": "Used to make informed decisions if needing to re-prioritize",
              "definition": "The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).",
              "comments": "Seeking implementer feedback on this property and how interoperable it is.\n\nUsing an extension to record a codeableconcept for named values may be tested at a future connectathon.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "PRIORITY"
                },
                {
                  "identity": "v2",
                  "map": "ARQ-12, SCH-11.6 / TQ1-9"
                },
                {
                  "identity": "rim",
                  "map": ".priorityCode"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Appointment.description",
              "short": "Shown on a subject line in a meeting request, or appointment list",
              "definition": "The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "DESCRIPTION"
                },
                {
                  "identity": "v2",
                  "map": "NTE-3"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "Appointment.start",
              "short": "When appointment is to take place",
              "definition": "Date/Time that the appointment is to take place.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ARQ-11.1, SCH-11.4 / TQ1-7"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime.low"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "Appointment.end",
              "short": "When appointment is to conclude",
              "definition": "Date/Time that the appointment is to conclude.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ARQ-11.2, SCH-11.5 / TQ1-8"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime.high"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Appointment.minutesDuration",
              "short": "Can be less than start/end (e.g. estimate)",
              "definition": "Number of minutes that the appointment is to take. This can be less than the duration between the start and end times (where actual time of appointment is only an estimate or is a planned appointment request).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ]
            },
            {
              "path": "Appointment.slot",
              "short": "If provided, then no schedule and start/end values MUST match slot",
              "definition": "The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Slot"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Schedule-Slot (classCode=ACT, moodCode = SLOT)"
                }
              ]
            },
            {
              "path": "Appointment.comment",
              "short": "Additional comments",
              "definition": "Additional comments about the appointment.",
              "comments": "Additional text to aid in facilitating the appointment. For instance, a comment might be, \"patient should proceed immediately to infusion room upon arrival\"\n\nWhere this is a planned appointment and the start/end dates are not set then this field can be used to provide additional guidance on the details of the appointment request, including any restrictions on when to book it.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "COMMENT"
                },
                {
                  "identity": "v2",
                  "map": "NTE-3"
                }
              ]
            },
            {
              "path": "Appointment.participant",
              "short": "Participants involved in appointment",
              "definition": "List of participants involved in the appointment.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "type or actor"
                    }
                  ],
                  "key": "app-1",
                  "severity": "error",
                  "human": "Either the type or actor on the participant MUST be specified",
                  "xpath": "(exists(f:type) or exists(f:actor))"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ATTENDEE component to be created"
                },
                {
                  "identity": "v2",
                  "map": "PID, AIP, AIG, AIL"
                }
              ]
            },
            {
              "path": "Appointment.participant.type",
              "short": "Role of participant in the appointment",
              "definition": "Role of participant in the appointment.",
              "comments": "The role of the participant can be used to declare what the actor will be doing in the scope of this appointment.\n\nIf the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.\n\nThis value MUST be the same when creating an AppointmentResponse so that they can be matched, and subsequently update the Appointment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Role of participant in encounter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "AIP-4, AIG-4"
                }
              ]
            },
            {
              "path": "Appointment.participant.actor",
              "short": "Person, Location/HealthcareService or Device",
              "definition": "A Person, Location/HealthcareService or Device that is participating in the appointment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ATTENDEE: (Need to provide the common name CN and also the MAILTO properties from the practitioner resource) where the participant type is not \"information-only\""
                },
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List | AIL-3 | AIG-3 | AIP-3"
                },
                {
                  "identity": "rim",
                  "map": "performer | reusableDevice | subject | location"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "Appointment.participant.required",
              "short": "required | optional | information-only",
              "definition": "Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Is the Participant required to attend the appointment.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/participantrequired"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ROLE=REQ-PARTICIPANT (roleparam)"
                },
                {
                  "identity": "rim",
                  "map": "performer.performIndicator"
                }
              ]
            },
            {
              "path": "Appointment.participant.status",
              "short": "accepted | declined | tentative | needs-action",
              "definition": "Participation status of the Patient.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The Participation status of an appointment.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/participationstatus"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ATTENDEE;CN=\"Brian Postlethwaite\";RSVP=TRUE:mailto:BPostlethwaite@data.com (rsvpparam | partstatparam)"
                },
                {
                  "identity": "v2",
                  "map": "AIP-12, AIG-14"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/AppointmentResponse",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "AppointmentResponse",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/AppointmentResponse",
        "name": "AppointmentResponse",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for AppointmentResponse Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "ical",
            "uri": "http://www.ietf.org/rfc/rfc2445.txt",
            "name": "iCalendar"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "AppointmentResponse",
              "short": "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection",
              "definition": "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "participantType or actor"
                    }
                  ],
                  "key": "apr-1",
                  "severity": "error",
                  "human": "Either the participantType or actor must be specified",
                  "xpath": "(exists(f:participantType) or exists(f:actor))"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "VEVENT"
                },
                {
                  "identity": "w5",
                  "map": "workflow.scheduling"
                }
              ]
            },
            {
              "path": "AppointmentResponse.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "AppointmentResponse.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "AppointmentResponse.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "AppointmentResponse.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "AppointmentResponse.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "AppointmentResponse.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AppointmentResponse.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AppointmentResponse.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AppointmentResponse.identifier",
              "short": "External Ids for this item",
              "definition": "This records identifiers associated with this appointment response concern that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "UID"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "AppointmentResponse.appointment",
              "short": "Appointment this response relates to",
              "definition": "Appointment that this response is replying to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Appointment"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "AppointmentResponse.start",
              "short": "Time from appointment, or requested new start time",
              "definition": "Date/Time that the appointment is to take place, or requested new start time.",
              "comments": "This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the start time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "AppointmentResponse.end",
              "short": "Time from appointment, or requested new end time",
              "definition": "This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the end time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "AppointmentResponse.participantType",
              "short": "Role of participant in the appointment",
              "definition": "Role of participant in the appointment.",
              "comments": "The role of the participant can be used to declare what the actor will be doing in the scope of the referenced appointment.\n\nIf the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.\n\nThis value MUST be the same as specified on the referenced Appointment so that they can be matched, and subsequently updated.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Role of participant in encounter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AppointmentResponse.actor",
              "short": "Person, Location/HealthcareService or Device",
              "definition": "A Person, Location/HealthcareService or Device that is participating in the appointment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ATTENDEE: (Need to provide the common name CN and also the MAILTO properties from the practitioner resource)"
                },
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AppointmentResponse.participantStatus",
              "short": "accepted | declined | tentative | in-process | completed | needs-action",
              "definition": "Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The Participation status of an appointment.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/participantstatus"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ATTENDEE;CN=\"Brian Postlethwaite\";RSVP=TRUE:mailto:BPostlethwaite@data.com (rsvpparam | partstatparam)"
                }
              ]
            },
            {
              "path": "AppointmentResponse.comment",
              "short": "Additional comments",
              "definition": "Additional comments about the appointment.",
              "comments": "This comment is particularly important when the responder is declining, tentatively accepting or requesting another time to indicate the reasons why.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "COMMENT"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "AppointmentResponse",
              "short": "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection",
              "definition": "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "participantType or actor"
                    }
                  ],
                  "key": "apr-1",
                  "severity": "error",
                  "human": "Either the participantType or actor must be specified",
                  "xpath": "(exists(f:participantType) or exists(f:actor))"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "VEVENT"
                },
                {
                  "identity": "w5",
                  "map": "workflow.scheduling"
                }
              ]
            },
            {
              "path": "AppointmentResponse.identifier",
              "short": "External Ids for this item",
              "definition": "This records identifiers associated with this appointment response concern that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "UID"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "AppointmentResponse.appointment",
              "short": "Appointment this response relates to",
              "definition": "Appointment that this response is replying to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Appointment"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "AppointmentResponse.start",
              "short": "Time from appointment, or requested new start time",
              "definition": "Date/Time that the appointment is to take place, or requested new start time.",
              "comments": "This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the start time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "AppointmentResponse.end",
              "short": "Time from appointment, or requested new end time",
              "definition": "This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the end time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "AppointmentResponse.participantType",
              "short": "Role of participant in the appointment",
              "definition": "Role of participant in the appointment.",
              "comments": "The role of the participant can be used to declare what the actor will be doing in the scope of the referenced appointment.\n\nIf the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.\n\nThis value MUST be the same as specified on the referenced Appointment so that they can be matched, and subsequently updated.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Role of participant in encounter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AppointmentResponse.actor",
              "short": "Person, Location/HealthcareService or Device",
              "definition": "A Person, Location/HealthcareService or Device that is participating in the appointment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ATTENDEE: (Need to provide the common name CN and also the MAILTO properties from the practitioner resource)"
                },
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AppointmentResponse.participantStatus",
              "short": "accepted | declined | tentative | in-process | completed | needs-action",
              "definition": "Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The Participation status of an appointment.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/participantstatus"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ATTENDEE;CN=\"Brian Postlethwaite\";RSVP=TRUE:mailto:BPostlethwaite@data.com (rsvpparam | partstatparam)"
                }
              ]
            },
            {
              "path": "AppointmentResponse.comment",
              "short": "Additional comments",
              "definition": "Additional comments about the appointment.",
              "comments": "This comment is particularly important when the responder is declining, tentatively accepting or requesting another time to indicate the reasons why.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "COMMENT"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/AuditEvent",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "AuditEvent",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/AuditEvent",
        "name": "AuditEvent",
        "status": "draft",
        "publisher": "Health Level Seven International (Security)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/secure/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for AuditEvent Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "dicom",
            "uri": "http://nema.org/dicom",
            "name": "DICOM"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 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"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "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.",
              "comments": "Based on ATNA (RFC 3881).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "Message"
                },
                {
                  "identity": "rim",
                  "map": "ControlAct[moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.information"
                }
              ]
            },
            {
              "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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "AuditEvent.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "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 may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AuditEvent.event",
              "short": "What was done",
              "definition": "Identifies the name, action type, time, and disposition of the audited event.",
              "requirements": "The event must be identified.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Activity"
                },
                {
                  "identity": "dicom",
                  "map": "EventIdentification"
                },
                {
                  "identity": "rim",
                  "map": "N/A (no nesting in v3)"
                }
              ]
            },
            {
              "path": "AuditEvent.event.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AuditEvent.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AuditEvent.event.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AuditEvent.event.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",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Type of event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/audit-event-type"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "EventId"
                },
                {
                  "identity": "rim",
                  "map": ".code (type, subtype and action are pre-coordinated or sent as translations)"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.event.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": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Sub-type of event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/audit-event-sub-type"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "EventTypeCode"
                },
                {
                  "identity": "rim",
                  "map": ".code (type, subtype and action are pre-coordinated or sent as translations)"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.event.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 Participant Object.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicator for type of action performed during the event that generated the audit.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/audit-event-action"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "EventActionCode"
                },
                {
                  "identity": "rim",
                  "map": ".code (type, subtype and action are pre-coordinated or sent as translations)"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.event.dateTime",
              "short": "Time when the event occurred on source",
              "definition": "The time when the event occurred on the source.",
              "comments": "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",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.recorded"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.when"
                },
                {
                  "identity": "dicom",
                  "map": "EventDateTime"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "AuditEvent.event.outcome",
              "short": "Whether the event succeeded or failed",
              "definition": "Indicates whether the event succeeded or failed.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates whether the event succeeded or failed",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/audit-event-outcome"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "EventOutcomeIndicator"
                },
                {
                  "identity": "rim",
                  "map": ".actionNegationInd"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.event.outcomeDesc",
              "short": "Description of the event outcome",
              "definition": "A free text description of the outcome of the event.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "EventOutcomeDescription"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=OUT].target.text"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.event.purposeOfEvent",
              "short": "The purposeOfUse of the event",
              "definition": "The purposeOfUse (reason) that was used during the event being recorded.",
              "comments": "Use participant.purposeOfUse when you know that is specific to the participant, otherwise use event.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": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The reason the activity took place.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
                }
              },
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.reason, Provenance.activity"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.Activity"
                },
                {
                  "identity": "dicom",
                  "map": "EventPurposeOfUse"
                },
                {
                  "identity": "rim",
                  "map": "* .reasonCode [ControlActReason when Act.class = CACT Control Act]\n*.outboundRelationship[typeCode=RSON].target"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "AuditEvent.participant",
              "short": "A person, a hardware device or software process",
              "definition": "A person, a hardware device or software process.",
              "comments": "There may be more than one user per event, for example, in cases of actions initiated by one user for other users, or in events that involve more than one user, hardware device, or system process. However, only one user may be the initiator/requestor for the event.",
              "requirements": "The event has one or more active participants.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.agent"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent"
                },
                {
                  "identity": "dicom",
                  "map": "ActiveParticipant"
                },
                {
                  "identity": "rim",
                  "map": ".participation"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AuditEvent.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.role",
              "short": "User roles (e.g. local RBAC codes)",
              "definition": "Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context.",
              "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": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Role(s) the user plays (from RBAC).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/dicm-402-roleid"
                }
              },
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.agent.role"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Attribution"
                },
                {
                  "identity": "dicom",
                  "map": "RoleIdCode"
                },
                {
                  "identity": "rim",
                  "map": ".typeCode and/or .functionCode"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.reference",
              "short": "Direct reference to resource",
              "definition": "Direct reference to a resource that identifies the participant.",
              "requirements": "This field ties an audit event to a specific resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.agent.actor"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Identity"
                },
                {
                  "identity": "rim",
                  "map": ".role"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.userId",
              "short": "Unique identifier for the user",
              "definition": "Unique identifier for the user actively participating in the event.",
              "comments": "a unique value within the Audit Source ID. For node-based authentication -- where only the system hardware or process, but not a human user, is identified -- User ID would be the node name.",
              "requirements": "This field ties an audit event to a specific user.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.agent.userId"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Identity"
                },
                {
                  "identity": "dicom",
                  "map": "UserId"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.altId",
              "short": "Alternative User id e.g. authentication",
              "definition": "Alternative Participant 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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Identity"
                },
                {
                  "identity": "dicom",
                  "map": "AlternativeUserId"
                },
                {
                  "identity": "rim",
                  "map": ".id (distinguish id type by root)"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.name",
              "short": "Human-meaningful name for the user",
              "definition": "Human-meaningful name for the user.",
              "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Identity"
                },
                {
                  "identity": "dicom",
                  "map": "UserName"
                },
                {
                  "identity": "rim",
                  "map": ".name"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.requestor",
              "short": "Whether user is initiator",
              "definition": "Indicator that the user is or is not the requestor, or initiator, for the event being audited.",
              "comments": "There can only be one initiator. If the initiator is not clear, then do not choose any one participant 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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "UserIsRequestor"
                },
                {
                  "identity": "rim",
                  "map": "If participation.typeCode was author, then true"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.location",
              "short": "Where",
              "definition": "Where the event occurred.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.location"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.location"
                },
                {
                  "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 may or may not be constant."
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.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.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.policy"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantRoleIDCode"
                },
                {
                  "identity": "rim",
                  "map": "ActPolicyType"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.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",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Used when the event is about exporting/importing onto media.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/dicm-405-mediatype"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "MediaType"
                },
                {
                  "identity": "rim",
                  "map": ".player.description.mediaType"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.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",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player.description.reference"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.network.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.network.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.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.",
              "comments": "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Location"
                },
                {
                  "identity": "dicom",
                  "map": "NetworkAccessPointID"
                },
                {
                  "identity": "rim",
                  "map": "pre-coordinated into URL"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of network access point of this participant in the audit event",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/network-type"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "NetworkAccessPointTypeCode"
                },
                {
                  "identity": "rim",
                  "map": "pre-coordinated into URL"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.purposeOfUse",
              "short": "Reason given for this user",
              "definition": "The reason (purpose of use), specific to this participant, that was used during the event being recorded.",
              "comments": "Use participant.purposeOfUse when you know that is specific to the participant, otherwise use event.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": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The reason the activity took place.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
                }
              },
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Activity"
                },
                {
                  "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": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "AuditEvent.source",
              "short": "Application systems and processes",
              "definition": "Application systems and processes.",
              "comments": "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",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "AuditSourceIdentification"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=INF].role[classCode=ASSIGN].player[classCode=DEV, determinerCode=INSTANCE]"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "AuditEvent.source.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AuditEvent.source.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "AuditEnterpriseSiteId"
                },
                {
                  "identity": "rim",
                  "map": ".scopedRole[classCode=LOCE].player.desc"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "AuditEvent.source.identifier",
              "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.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "AuditSourceId"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Code specifying the type of system that detected and recorded the event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/audit-source-type"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "AuditSourceTypeCode"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "AuditEvent.object",
              "short": "Specific instances of data or objects that have been accessed",
              "definition": "Specific instances of data or objects that have been accessed.",
              "comments": "Required unless the values for Event Identification, Active Participant Identification, and Audit Source Identification are sufficient to document the entire auditable event. Because events may have more than one participant object, this group can be a repeating set of values.",
              "requirements": "The event may have other objects involved.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "name.empty() or query.empty()"
                    }
                  ],
                  "key": "sev-1",
                  "severity": "error",
                  "human": "Either a name or a query (NOT both)",
                  "xpath": "not(exists(f:name)) or not(exists(f:query))"
                }
              ],
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.target, Provenance.entity"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectIdentification"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SUBJ].target  or  .participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.object.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AuditEvent.object.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AuditEvent.object.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AuditEvent.object.identifier",
              "short": "Specific instance of object (e.g. versioned)",
              "definition": "Identifies a specific instance of the participant object. The reference should always be version specific.",
              "comments": "Identifier detail depends on object type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectID and ParticipantObjectIDTypeCode"
                },
                {
                  "identity": "rim",
                  "map": ".id.extension"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.object.reference",
              "short": "Specific instance of resource (e.g. versioned)",
              "definition": "Identifies a specific instance of the participant object. The reference should always be version specific.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.target, Provenance.entity.reference"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectID"
                },
                {
                  "identity": "rim",
                  "map": "[self]"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.object.type",
              "short": "Type of object involved",
              "definition": "The type of the object that was involved in this audit event.",
              "comments": "This value is distinct from the user's role or any user relationship to the participant object.",
              "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",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Code for the object type involved audited.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/object-type"
                }
              },
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.entity.type"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity.type"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectTypeCode"
                },
                {
                  "identity": "rim",
                  "map": "[self::Act].code or role.player.code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.object.role",
              "short": "What role the Object played",
              "definition": "Code representing the functional application role of Participant Object being audited.",
              "comments": "See RFC 3881 for rules concerning matches between role and type.",
              "requirements": "For some detailed audit analysis it may be necessary to indicate a more granular type of participant, based on the application role it serves.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Code representing the role the Object played in the event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/object-role"
                }
              },
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Entity.role"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectTypeCodeRole"
                },
                {
                  "identity": "rim",
                  "map": "role.code (not sure what this would mean for an Act)"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.lifecycle",
              "short": "Life-cycle stage for the object",
              "definition": "Identifier for the data life-cycle stage for the participant object.",
              "comments": "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",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Identifier for the data life-cycle stage for the object.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/object-lifecycle"
                }
              },
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.entity.role"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity.role"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectDataLifeCycle"
                },
                {
                  "identity": "rim",
                  "map": "target of ObservationEvent[code=\"lifecycle\"].value"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.securityLabel",
              "short": "Security labels applied to the object",
              "definition": "Denotes security labels for the identified object.",
              "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": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/security-labels"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectSensitivity"
                },
                {
                  "identity": "rim",
                  "map": ".confidentialityCode"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.name",
              "short": "Instance-specific descriptor for Object",
              "definition": "An instance-specific descriptor of the Participant Object ID audited, such as a person's name.",
              "comments": "This field may be used in a query/report to identify audit events for a specific person.  For example, where multiple synonymous Participant Object IDs (patient number, medical record number, encounter number, etc.) have been used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "sev-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Entity.Label"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectName"
                },
                {
                  "identity": "rim",
                  "map": ".title"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.description",
              "short": "Descriptive text",
              "definition": "Text that describes the object in more detail.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectDescription"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.query",
              "short": "Actual query for object",
              "definition": "The actual query for a query-type participant object.",
              "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",
              "type": [
                {
                  "code": "base64Binary"
                }
              ],
              "condition": [
                "sev-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectQuery"
                },
                {
                  "identity": "rim",
                  "map": "No mapping"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.detail",
              "short": "Additional Information about the Object",
              "definition": "Additional Information about the Object.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectDetail"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.detail.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AuditEvent.object.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "AuditEvent.object.detail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "AuditEvent.object.detail.type",
              "short": "Name of the property",
              "definition": "Name of the property.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectDetail.type"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.detail.value",
              "short": "Property value",
              "definition": "Property value.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "base64Binary"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectDetail.value"
                },
                {
                  "identity": "rim",
                  "map": ".value"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "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.",
              "comments": "Based on ATNA (RFC 3881).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "Message"
                },
                {
                  "identity": "rim",
                  "map": "ControlAct[moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.information"
                }
              ]
            },
            {
              "path": "AuditEvent.event",
              "short": "What was done",
              "definition": "Identifies the name, action type, time, and disposition of the audited event.",
              "requirements": "The event must be identified.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Activity"
                },
                {
                  "identity": "dicom",
                  "map": "EventIdentification"
                },
                {
                  "identity": "rim",
                  "map": "N/A (no nesting in v3)"
                }
              ]
            },
            {
              "path": "AuditEvent.event.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",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Type of event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/audit-event-type"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "EventId"
                },
                {
                  "identity": "rim",
                  "map": ".code (type, subtype and action are pre-coordinated or sent as translations)"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.event.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": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Sub-type of event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/audit-event-sub-type"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "EventTypeCode"
                },
                {
                  "identity": "rim",
                  "map": ".code (type, subtype and action are pre-coordinated or sent as translations)"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.event.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 Participant Object.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicator for type of action performed during the event that generated the audit.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/audit-event-action"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "EventActionCode"
                },
                {
                  "identity": "rim",
                  "map": ".code (type, subtype and action are pre-coordinated or sent as translations)"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.event.dateTime",
              "short": "Time when the event occurred on source",
              "definition": "The time when the event occurred on the source.",
              "comments": "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",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.recorded"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.when"
                },
                {
                  "identity": "dicom",
                  "map": "EventDateTime"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "AuditEvent.event.outcome",
              "short": "Whether the event succeeded or failed",
              "definition": "Indicates whether the event succeeded or failed.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates whether the event succeeded or failed",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/audit-event-outcome"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "EventOutcomeIndicator"
                },
                {
                  "identity": "rim",
                  "map": ".actionNegationInd"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.event.outcomeDesc",
              "short": "Description of the event outcome",
              "definition": "A free text description of the outcome of the event.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "EventOutcomeDescription"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=OUT].target.text"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.event.purposeOfEvent",
              "short": "The purposeOfUse of the event",
              "definition": "The purposeOfUse (reason) that was used during the event being recorded.",
              "comments": "Use participant.purposeOfUse when you know that is specific to the participant, otherwise use event.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": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The reason the activity took place.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
                }
              },
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.reason, Provenance.activity"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.Activity"
                },
                {
                  "identity": "dicom",
                  "map": "EventPurposeOfUse"
                },
                {
                  "identity": "rim",
                  "map": "* .reasonCode [ControlActReason when Act.class = CACT Control Act]\n*.outboundRelationship[typeCode=RSON].target"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "AuditEvent.participant",
              "short": "A person, a hardware device or software process",
              "definition": "A person, a hardware device or software process.",
              "comments": "There may be more than one user per event, for example, in cases of actions initiated by one user for other users, or in events that involve more than one user, hardware device, or system process. However, only one user may be the initiator/requestor for the event.",
              "requirements": "The event has one or more active participants.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.agent"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent"
                },
                {
                  "identity": "dicom",
                  "map": "ActiveParticipant"
                },
                {
                  "identity": "rim",
                  "map": ".participation"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.role",
              "short": "User roles (e.g. local RBAC codes)",
              "definition": "Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context.",
              "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": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Role(s) the user plays (from RBAC).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/dicm-402-roleid"
                }
              },
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.agent.role"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Attribution"
                },
                {
                  "identity": "dicom",
                  "map": "RoleIdCode"
                },
                {
                  "identity": "rim",
                  "map": ".typeCode and/or .functionCode"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.reference",
              "short": "Direct reference to resource",
              "definition": "Direct reference to a resource that identifies the participant.",
              "requirements": "This field ties an audit event to a specific resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.agent.actor"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Identity"
                },
                {
                  "identity": "rim",
                  "map": ".role"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.userId",
              "short": "Unique identifier for the user",
              "definition": "Unique identifier for the user actively participating in the event.",
              "comments": "a unique value within the Audit Source ID. For node-based authentication -- where only the system hardware or process, but not a human user, is identified -- User ID would be the node name.",
              "requirements": "This field ties an audit event to a specific user.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.agent.userId"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Identity"
                },
                {
                  "identity": "dicom",
                  "map": "UserId"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.altId",
              "short": "Alternative User id e.g. authentication",
              "definition": "Alternative Participant 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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Identity"
                },
                {
                  "identity": "dicom",
                  "map": "AlternativeUserId"
                },
                {
                  "identity": "rim",
                  "map": ".id (distinguish id type by root)"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.name",
              "short": "Human-meaningful name for the user",
              "definition": "Human-meaningful name for the user.",
              "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Identity"
                },
                {
                  "identity": "dicom",
                  "map": "UserName"
                },
                {
                  "identity": "rim",
                  "map": ".name"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.requestor",
              "short": "Whether user is initiator",
              "definition": "Indicator that the user is or is not the requestor, or initiator, for the event being audited.",
              "comments": "There can only be one initiator. If the initiator is not clear, then do not choose any one participant 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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "UserIsRequestor"
                },
                {
                  "identity": "rim",
                  "map": "If participation.typeCode was author, then true"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.location",
              "short": "Where",
              "definition": "Where the event occurred.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.location"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.location"
                },
                {
                  "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 may or may not be constant."
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.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.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.policy"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantRoleIDCode"
                },
                {
                  "identity": "rim",
                  "map": "ActPolicyType"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.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",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Used when the event is about exporting/importing onto media.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/dicm-405-mediatype"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "MediaType"
                },
                {
                  "identity": "rim",
                  "map": ".player.description.mediaType"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.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",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player.description.reference"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.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.",
              "comments": "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Location"
                },
                {
                  "identity": "dicom",
                  "map": "NetworkAccessPointID"
                },
                {
                  "identity": "rim",
                  "map": "pre-coordinated into URL"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of network access point of this participant in the audit event",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/network-type"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "NetworkAccessPointTypeCode"
                },
                {
                  "identity": "rim",
                  "map": "pre-coordinated into URL"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "AuditEvent.participant.purposeOfUse",
              "short": "Reason given for this user",
              "definition": "The reason (purpose of use), specific to this participant, that was used during the event being recorded.",
              "comments": "Use participant.purposeOfUse when you know that is specific to the participant, otherwise use event.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": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The reason the activity took place.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
                }
              },
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Activity"
                },
                {
                  "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": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "AuditEvent.source",
              "short": "Application systems and processes",
              "definition": "Application systems and processes.",
              "comments": "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",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "AuditSourceIdentification"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=INF].role[classCode=ASSIGN].player[classCode=DEV, determinerCode=INSTANCE]"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "AuditEnterpriseSiteId"
                },
                {
                  "identity": "rim",
                  "map": ".scopedRole[classCode=LOCE].player.desc"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "AuditEvent.source.identifier",
              "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.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "AuditSourceId"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Code specifying the type of system that detected and recorded the event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/audit-source-type"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "AuditSourceTypeCode"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "AuditEvent.object",
              "short": "Specific instances of data or objects that have been accessed",
              "definition": "Specific instances of data or objects that have been accessed.",
              "comments": "Required unless the values for Event Identification, Active Participant Identification, and Audit Source Identification are sufficient to document the entire auditable event. Because events may have more than one participant object, this group can be a repeating set of values.",
              "requirements": "The event may have other objects involved.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "name.empty() or query.empty()"
                    }
                  ],
                  "key": "sev-1",
                  "severity": "error",
                  "human": "Either a name or a query (NOT both)",
                  "xpath": "not(exists(f:name)) or not(exists(f:query))"
                }
              ],
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.target, Provenance.entity"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectIdentification"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SUBJ].target  or  .participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.object.identifier",
              "short": "Specific instance of object (e.g. versioned)",
              "definition": "Identifies a specific instance of the participant object. The reference should always be version specific.",
              "comments": "Identifier detail depends on object type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectID and ParticipantObjectIDTypeCode"
                },
                {
                  "identity": "rim",
                  "map": ".id.extension"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.object.reference",
              "short": "Specific instance of resource (e.g. versioned)",
              "definition": "Identifies a specific instance of the participant object. The reference should always be version specific.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.target, Provenance.entity.reference"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectID"
                },
                {
                  "identity": "rim",
                  "map": "[self]"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.object.type",
              "short": "Type of object involved",
              "definition": "The type of the object that was involved in this audit event.",
              "comments": "This value is distinct from the user's role or any user relationship to the participant object.",
              "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",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Code for the object type involved audited.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/object-type"
                }
              },
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.entity.type"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity.type"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectTypeCode"
                },
                {
                  "identity": "rim",
                  "map": "[self::Act].code or role.player.code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "AuditEvent.object.role",
              "short": "What role the Object played",
              "definition": "Code representing the functional application role of Participant Object being audited.",
              "comments": "See RFC 3881 for rules concerning matches between role and type.",
              "requirements": "For some detailed audit analysis it may be necessary to indicate a more granular type of participant, based on the application role it serves.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Code representing the role the Object played in the event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/object-role"
                }
              },
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Entity.role"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectTypeCodeRole"
                },
                {
                  "identity": "rim",
                  "map": "role.code (not sure what this would mean for an Act)"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.lifecycle",
              "short": "Life-cycle stage for the object",
              "definition": "Identifier for the data life-cycle stage for the participant object.",
              "comments": "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",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Identifier for the data life-cycle stage for the object.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/object-lifecycle"
                }
              },
              "mapping": [
                {
                  "identity": "fhirprovenance",
                  "map": "Provenance.entity.role"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity.role"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectDataLifeCycle"
                },
                {
                  "identity": "rim",
                  "map": "target of ObservationEvent[code=\"lifecycle\"].value"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.securityLabel",
              "short": "Security labels applied to the object",
              "definition": "Denotes security labels for the identified object.",
              "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": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/security-labels"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectSensitivity"
                },
                {
                  "identity": "rim",
                  "map": ".confidentialityCode"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.name",
              "short": "Instance-specific descriptor for Object",
              "definition": "An instance-specific descriptor of the Participant Object ID audited, such as a person's name.",
              "comments": "This field may be used in a query/report to identify audit events for a specific person.  For example, where multiple synonymous Participant Object IDs (patient number, medical record number, encounter number, etc.) have been used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "sev-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Entity.Label"
                },
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectName"
                },
                {
                  "identity": "rim",
                  "map": ".title"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.description",
              "short": "Descriptive text",
              "definition": "Text that describes the object in more detail.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectDescription"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.query",
              "short": "Actual query for object",
              "definition": "The actual query for a query-type participant object.",
              "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",
              "type": [
                {
                  "code": "base64Binary"
                }
              ],
              "condition": [
                "sev-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectQuery"
                },
                {
                  "identity": "rim",
                  "map": "No mapping"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.detail",
              "short": "Additional Information about the Object",
              "definition": "Additional Information about the Object.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectDetail"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.detail.type",
              "short": "Name of the property",
              "definition": "Name of the property.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectDetail.type"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "AuditEvent.object.detail.value",
              "short": "Property value",
              "definition": "Property value.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "base64Binary"
                }
              ],
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "ParticipantObjectDetail.value"
                },
                {
                  "identity": "rim",
                  "map": ".value"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Basic",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Basic",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Basic",
        "name": "Basic",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Basic Resource",
        "requirements": "Need some way to safely (without breaking interoperability) allow implementers to exchange content not supported by the initial set of declared resources.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Basic",
              "short": "Resource for non-supported content",
              "definition": "Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.",
              "alias": [
                "Z-resource",
                "Extension-resource",
                "Custom-resource"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act, Entity or Role"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.structure"
                }
              ]
            },
            {
              "path": "Basic.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Basic.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Basic.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Basic.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Basic.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Basic.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Basic.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Basic.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Basic.identifier",
              "short": "Business identifier",
              "definition": "Identifier assigned to the resource for business purposes, outside the context of FHIR.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./identifier"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Basic.code",
              "short": "Kind of Resource",
              "definition": "Identifies the 'type' of resource - equivalent to the resource name for other resources.",
              "comments": "Because resource references will only be able to indicate 'Basic', the type of reference will need to be specified in a Profile identified as part of the resource.  Refer to the resource notes section for information on appropriate terminologies for this code.",
              "requirements": "Must be able to distinguish different types of \"basic\" resources.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for identifying types of resources not yet defined by FHIR",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/basic-resource-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Basic.subject",
              "short": "Identifies the focus of this resource",
              "definition": "Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resource.",
              "comments": "Optional as not all resources potential resources will have subjects.  Resources associated with multiple subjects can handle this via extension.",
              "requirements": "Needed for partitioning the resource by Patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./participation[typeCode='SBJ'] (possibly through a ControlAct and Role)"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Basic.author",
              "short": "Who created",
              "definition": "Indicates who was responsible for creating the resource instance.",
              "requirements": "Needed for partitioning the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./participation[typeCode='SUB'] (possibly through a ControlAct and Role)"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "Basic.created",
              "short": "When created",
              "definition": "Identifies when the resource was first created.",
              "requirements": "Allows ordering resource instances by time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./participation[typeCode='AUT']/time (possibly through a ControlAct and Role)"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Basic",
              "short": "Resource for non-supported content",
              "definition": "Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.",
              "alias": [
                "Z-resource",
                "Extension-resource",
                "Custom-resource"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act, Entity or Role"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.structure"
                }
              ]
            },
            {
              "path": "Basic.identifier",
              "short": "Business identifier",
              "definition": "Identifier assigned to the resource for business purposes, outside the context of FHIR.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./identifier"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Basic.code",
              "short": "Kind of Resource",
              "definition": "Identifies the 'type' of resource - equivalent to the resource name for other resources.",
              "comments": "Because resource references will only be able to indicate 'Basic', the type of reference will need to be specified in a Profile identified as part of the resource.  Refer to the resource notes section for information on appropriate terminologies for this code.",
              "requirements": "Must be able to distinguish different types of \"basic\" resources.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for identifying types of resources not yet defined by FHIR",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/basic-resource-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Basic.subject",
              "short": "Identifies the focus of this resource",
              "definition": "Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resource.",
              "comments": "Optional as not all resources potential resources will have subjects.  Resources associated with multiple subjects can handle this via extension.",
              "requirements": "Needed for partitioning the resource by Patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./participation[typeCode='SBJ'] (possibly through a ControlAct and Role)"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Basic.author",
              "short": "Who created",
              "definition": "Indicates who was responsible for creating the resource instance.",
              "requirements": "Needed for partitioning the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./participation[typeCode='SUB'] (possibly through a ControlAct and Role)"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "Basic.created",
              "short": "When created",
              "definition": "Identifies when the resource was first created.",
              "requirements": "Allows ordering resource instances by time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./participation[typeCode='AUT']/time (possibly through a ControlAct and Role)"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Binary",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Binary",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Binary",
        "name": "Binary",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Binary Resource",
        "requirements": "There are situations where it is useful or required to handle pure binary content using the same framework as other resources.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/Resource",
        "snapshot": {
          "element": [
            {
              "path": "Binary",
              "short": "Pure binary content defined by some other format than FHIR",
              "definition": "A binary resource can contain any content, whether text, image, pdf, zip archive, etc.",
              "comments": "Typically, Binary resources are used for handling content such as:  * CDA Documents (i.e. with XDS) * PDF Documents * Images (the Media resource is preferred for handling images, but not possible when the content is already binary - e.g. XDS).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.structure"
                }
              ]
            },
            {
              "path": "Binary.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Binary.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Binary.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Binary.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Binary.contentType",
              "short": "MimeType of the binary content",
              "definition": "MimeType of the binary content represented as a standard MimeType (BCP 13).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The mime type of an attachment. Any valid mime type is allowed.",
                "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt"
              }
            },
            {
              "path": "Binary.content",
              "short": "The actual content",
              "definition": "The actual content, base64 encoded.",
              "comments": "If the content type is itself base64 encoding, then this will be base64 encoded twice - what is created by un-base64ing the content must be the specified content type.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "base64Binary"
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Binary",
              "short": "Pure binary content defined by some other format than FHIR",
              "definition": "A binary resource can contain any content, whether text, image, pdf, zip archive, etc.",
              "comments": "Typically, Binary resources are used for handling content such as:  * CDA Documents (i.e. with XDS) * PDF Documents * Images (the Media resource is preferred for handling images, but not possible when the content is already binary - e.g. XDS).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.structure"
                }
              ]
            },
            {
              "path": "Binary.contentType",
              "short": "MimeType of the binary content",
              "definition": "MimeType of the binary content represented as a standard MimeType (BCP 13).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The mime type of an attachment. Any valid mime type is allowed.",
                "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt"
              }
            },
            {
              "path": "Binary.content",
              "short": "The actual content",
              "definition": "The actual content, base64 encoded.",
              "comments": "If the content type is itself base64 encoding, then this will be base64 encoded twice - what is created by un-base64ing the content must be the specified content type.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "base64Binary"
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/BodySite",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "BodySite",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/BodySite",
        "name": "BodySite",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for BodySite Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "openehr",
            "uri": "http://openehr.org",
            "name": "Open EHR"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "BodySite",
              "short": "Specific and identified anatomical location",
              "definition": "Record details about the anatomical location of a specimen or body part.  This resource may be used when a coded concept does not provide the necessary detail needed for the use case.",
              "alias": [
                "anatomical location"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Archetype ID   openEHR-EHR-CLUSTER.anatomical_location.v1      Concept name   Anatomical Location      Concept description   Record details about an anatomical location.      Keywords   location, site, anatomical      Copyright   © openEHR Foundation      Purpose   To record details about anatomical location.      Misuse   Not for specifiying unilateral/bilateral occurence - this is related to an evaluation which perhaps includes multiple locations.      Author   Author name: Heather Leslie Organisation: Ocean Informatics Email: heather.leslie@oceaninformatics.com Date of Origination: 2008-11-10       Translator   Norwegian Bokmål: Lars Bitsch-Larsen, Haukeland University Hospital of Bergen, Norway, MD, DEAA, MBA, spec in anesthesia, spec in tropical medicine. Arabic (Syria): Mona Saleh       Other contributors   Heather Leslie, Ocean Informatics, Australia (Editor) Ian McNicoll, freshEHR Clinical Informatics, United Kingdom (Editor) Dunmail Hodkinson, Black Pear Software Ltd, UK      References   Use cases: - 5LICS, midclavicular line - L forearm, 2cm anterior to the cubital fossa - Right iliac fossa - 5 cm below L tibial tuberosity - 2 cm medial to R nipple - 4 cm below R costal margin in midclavicular line - R femur - midline nose - medial aspect of R great toe nail."
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "BodySite.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "BodySite.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "BodySite.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "BodySite.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "BodySite.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "BodySite.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "BodySite.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "BodySite.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "BodySite.patient",
              "short": "Patient",
              "definition": "The person to which the body site belongs.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "BodySite.identifier",
              "short": "Bodysite identifier",
              "definition": "Identifier for this instance of the anatomical location.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Specific location  Cluster Optional (0..1) Cardinality: Mandatory, repeating, unordered (1..*)"
                }
              ]
            },
            {
              "path": "BodySite.code",
              "short": "Named anatomical location",
              "definition": "Named anatomical location - ideally coded where possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Name of location"
                },
                {
                  "identity": "v2",
                  "map": "OBX-20"
                }
              ]
            },
            {
              "path": "BodySite.modifier",
              "short": "Modification to location code",
              "definition": "Modifier to refine the anatomical location.  These include modifiers for laterality, relative location, directionality, number, and plane.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Concepts modifying the anatomic location",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/bodysite-relative-location"
                }
              },
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Combines Side, Numerical identifier, Anatomical plane,and Aspect"
                },
                {
                  "identity": "v2",
                  "map": "No distinct element defined in V2.x. The IHE Radiology Technical Framework directs the use of OBR-15-specimen source to contain laterality for imaging studies."
                }
              ]
            },
            {
              "path": "BodySite.description",
              "short": "The Description of anatomical location",
              "definition": "Description of anatomical location.",
              "comments": "This Description  could include any visual markings used to orientate the viewer e.g. external reference points, special sutures, ink markings.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Description of anatomical location/Visual markings/orientation"
                }
              ]
            },
            {
              "path": "BodySite.image",
              "short": "Attached images",
              "definition": "Image or images used to identify a location.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Image"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "BodySite",
              "short": "Specific and identified anatomical location",
              "definition": "Record details about the anatomical location of a specimen or body part.  This resource may be used when a coded concept does not provide the necessary detail needed for the use case.",
              "alias": [
                "anatomical location"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Archetype ID   openEHR-EHR-CLUSTER.anatomical_location.v1      Concept name   Anatomical Location      Concept description   Record details about an anatomical location.      Keywords   location, site, anatomical      Copyright   © openEHR Foundation      Purpose   To record details about anatomical location.      Misuse   Not for specifiying unilateral/bilateral occurence - this is related to an evaluation which perhaps includes multiple locations.      Author   Author name: Heather Leslie Organisation: Ocean Informatics Email: heather.leslie@oceaninformatics.com Date of Origination: 2008-11-10       Translator   Norwegian Bokmål: Lars Bitsch-Larsen, Haukeland University Hospital of Bergen, Norway, MD, DEAA, MBA, spec in anesthesia, spec in tropical medicine. Arabic (Syria): Mona Saleh       Other contributors   Heather Leslie, Ocean Informatics, Australia (Editor) Ian McNicoll, freshEHR Clinical Informatics, United Kingdom (Editor) Dunmail Hodkinson, Black Pear Software Ltd, UK      References   Use cases: - 5LICS, midclavicular line - L forearm, 2cm anterior to the cubital fossa - Right iliac fossa - 5 cm below L tibial tuberosity - 2 cm medial to R nipple - 4 cm below R costal margin in midclavicular line - R femur - midline nose - medial aspect of R great toe nail."
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "BodySite.patient",
              "short": "Patient",
              "definition": "The person to which the body site belongs.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "BodySite.identifier",
              "short": "Bodysite identifier",
              "definition": "Identifier for this instance of the anatomical location.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Specific location  Cluster Optional (0..1) Cardinality: Mandatory, repeating, unordered (1..*)"
                }
              ]
            },
            {
              "path": "BodySite.code",
              "short": "Named anatomical location",
              "definition": "Named anatomical location - ideally coded where possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Name of location"
                },
                {
                  "identity": "v2",
                  "map": "OBX-20"
                }
              ]
            },
            {
              "path": "BodySite.modifier",
              "short": "Modification to location code",
              "definition": "Modifier to refine the anatomical location.  These include modifiers for laterality, relative location, directionality, number, and plane.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Concepts modifying the anatomic location",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/bodysite-relative-location"
                }
              },
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Combines Side, Numerical identifier, Anatomical plane,and Aspect"
                },
                {
                  "identity": "v2",
                  "map": "No distinct element defined in V2.x. The IHE Radiology Technical Framework directs the use of OBR-15-specimen source to contain laterality for imaging studies."
                }
              ]
            },
            {
              "path": "BodySite.description",
              "short": "The Description of anatomical location",
              "definition": "Description of anatomical location.",
              "comments": "This Description  could include any visual markings used to orientate the viewer e.g. external reference points, special sutures, ink markings.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Description of anatomical location/Visual markings/orientation"
                }
              ]
            },
            {
              "path": "BodySite.image",
              "short": "Attached images",
              "definition": "Image or images used to identify a location.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Image"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Bundle",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Bundle",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Bundle",
        "name": "Bundle",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Bundle Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/Resource",
        "snapshot": {
          "element": [
            {
              "path": "Bundle",
              "short": "Contains a collection of resources",
              "definition": "A container for a collection of resources.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "entry.search.empty() or (type = 'searchset')"
                    }
                  ],
                  "key": "bdl-2",
                  "severity": "error",
                  "human": "entry.search only when a search",
                  "xpath": "not(f:entry/f:search) or (f:type/@value = 'searchset')"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "total.empty() or (type = 'searchset') or (type = 'history')"
                    }
                  ],
                  "key": "bdl-1",
                  "severity": "error",
                  "human": "total only when a search or history",
                  "xpath": "not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "entry.where(fullUrl).distinct(fullUrl,resource.meta.versionId)"
                    }
                  ],
                  "key": "bdl-7",
                  "severity": "error",
                  "human": "FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId",
                  "xpath": "count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "entry.request.empty() or type = 'batch' or type = 'transaction' or type = 'history'"
                    }
                  ],
                  "key": "bdl-3",
                  "severity": "error",
                  "human": "entry.request only for some types of bundles",
                  "xpath": "not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "entry.response.empty() or type = 'batch-response' or type = 'transaction-response'"
                    }
                  ],
                  "key": "bdl-4",
                  "severity": "error",
                  "human": "entry.response only for some types of bundles",
                  "xpath": "not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response')"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.structure"
                }
              ]
            },
            {
              "path": "Bundle.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Bundle.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Bundle.type",
              "short": "document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection",
              "definition": "Indicates the purpose of this bundle- how it was intended to be used.",
              "comments": "It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates the purpose of a bundle - how it was intended to be used.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/bundle-type"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Bundle.total",
              "short": "If search, the total number of matches",
              "definition": "If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle).",
              "comments": "Only used if the bundle is a search result set.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "condition": [
                "bdl-1"
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.link",
              "name": "link",
              "short": "Links related to this Bundle",
              "definition": "A series of links that provide context to this bundle.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.link.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Bundle.link.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Bundle.link.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Bundle.link.relation",
              "short": "http://www.iana.org/assignments/link-relations/link-relations.xhtml",
              "definition": "A name which details the functional use for this link - see [[http://www.iana.org/assignments/link-relations/link-relations.xhtml]].",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.link.url",
              "short": "Reference details for the link",
              "definition": "The reference details for the link.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry",
              "short": "Entry in the bundle - will have a resource, or information",
              "definition": "An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "resource or request or response"
                    }
                  ],
                  "key": "bdl-5",
                  "severity": "error",
                  "human": "must be a resource unless there's a request or response",
                  "xpath": "f:resource or f:request or f:response"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "fullUrl.empty() xor resource"
                    }
                  ],
                  "key": "bdl-6",
                  "severity": "error",
                  "human": "The fullUrl element must be present when a resource is present, and not present otherwise",
                  "xpath": "(not(exists(f:fullUrl)) and not(exists(f:resource))) or (exists(f:fullUrl) and exists(f:resource))"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Bundle.entry.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Bundle.entry.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Bundle.entry.link",
              "short": "Links related to this entry",
              "definition": "A series of links that provide context to this entry.",
              "min": 0,
              "max": "*",
              "nameReference": "link",
              "isSummary": true
            },
            {
              "path": "Bundle.entry.fullUrl",
              "short": "Absolute URL for resource (server address, or UUID/OID)",
              "definition": "The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource.",
              "comments": "fullUrl may not be [unique in the context of a resource](bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](references.html), the absolute URL may not end with the logical id of the resource (Resource.id), but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](references.html#regex), then it SHALL end with the Resource.id.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.resource",
              "short": "A resource in the bundle",
              "definition": "The Resources for the entry.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.search",
              "short": "Search related information",
              "definition": "Information about the search process that lead to the creation of this entry.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "bdl-2"
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.search.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Bundle.entry.search.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Bundle.entry.search.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Bundle.entry.search.mode",
              "short": "match | include | outcome - why this is in the result set",
              "definition": "Why this entry is in the result set - whether it's included as a match or because of an _include requirement.",
              "comments": "There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Why an entry is in the result set - whether it's included as a match or because of an _include requirement.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/search-entry-mode"
                }
              }
            },
            {
              "path": "Bundle.entry.search.score",
              "short": "Search ranking (between 0 and 1)",
              "definition": "When searching, the server's search ranking score for the entry.",
              "comments": "Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.request",
              "short": "Transaction Related Information",
              "definition": "Additional information about how this entry should be processed as part of a transaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "bdl-3"
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.request.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Bundle.entry.request.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Bundle.entry.request.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Bundle.entry.request.method",
              "short": "GET | POST | PUT | DELETE",
              "definition": "The HTTP verb for this entry in either a update history, or a transaction/ transaction response.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "HTTP verbs (in the HTTP command line).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/http-verb"
                }
              }
            },
            {
              "path": "Bundle.entry.request.url",
              "short": "URL for HTTP equivalent of this entry",
              "definition": "The URL for this entry, relative to the root (the address to which the request is posted).",
              "comments": "E.g. for a Patient Create, the method would be \"POST\" and the URL would be \"Patient\". For a Patient Update, the method would be PUT, and the URL would be \"Patient/[id]\".",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.request.ifNoneMatch",
              "short": "For managing cache currency",
              "definition": "If the ETag values match, return a 304 Not modified status. See the API documentation for [\"Conditional Read\"](http.html#cread).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.request.ifModifiedSince",
              "short": "For managing update contention",
              "definition": "Only perform the operation if the last updated date matches. See the API documentation for [\"Conditional Read\"](http.html#cread).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.request.ifMatch",
              "short": "For managing update contention",
              "definition": "Only perform the operation if the Etag value matches. For more information, see the API section [\"Managing Resource Contention\"](http.html#concurrency).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.request.ifNoneExist",
              "short": "For conditional creates",
              "definition": "Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for [\"Conditional Create\"](http.html#ccreate). This is just the query portion of the URL - what follows the \"?\" (not including the \"?\").",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.response",
              "short": "Transaction Related Information",
              "definition": "Additional information about how this entry should be processed as part of a transaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "bdl-4"
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.response.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Bundle.entry.response.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Bundle.entry.response.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Bundle.entry.response.status",
              "short": "Status return code for entry",
              "definition": "The status code returned by processing this entry.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.response.location",
              "short": "The location, if the operation returns a location",
              "definition": "The location header created by processing this operation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.response.etag",
              "short": "The etag for the resource (if relevant)",
              "definition": "The etag for the resource, it the operation for the entry produced a versioned resource.",
              "comments": "This has to match the version id in the header if a resource is included.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.response.lastModified",
              "short": "Server's date time modified",
              "definition": "The date/time that the resource was modified on the server.",
              "comments": "This has to match the same time in the meta header if a resource is included.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.signature",
              "short": "Digital Signature",
              "definition": "Digital Signature - base64 encoded. XML DigSIg or a JWT.",
              "comments": "The signature could be created by the \"author\" of the bundle or by the originating device.   Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific.",
              "requirements": "This element allows capturing signatures on documents. It also allows signatures on messages, transactions or even query responses. It may support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Signature"
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Bundle",
              "short": "Contains a collection of resources",
              "definition": "A container for a collection of resources.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "entry.search.empty() or (type = 'searchset')"
                    }
                  ],
                  "key": "bdl-2",
                  "severity": "error",
                  "human": "entry.search only when a search",
                  "xpath": "not(f:entry/f:search) or (f:type/@value = 'searchset')"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "total.empty() or (type = 'searchset') or (type = 'history')"
                    }
                  ],
                  "key": "bdl-1",
                  "severity": "error",
                  "human": "total only when a search or history",
                  "xpath": "not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "entry.where(fullUrl).distinct(fullUrl,resource.meta.versionId)"
                    }
                  ],
                  "key": "bdl-7",
                  "severity": "error",
                  "human": "FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId",
                  "xpath": "count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "entry.request.empty() or type = 'batch' or type = 'transaction' or type = 'history'"
                    }
                  ],
                  "key": "bdl-3",
                  "severity": "error",
                  "human": "entry.request only for some types of bundles",
                  "xpath": "not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "entry.response.empty() or type = 'batch-response' or type = 'transaction-response'"
                    }
                  ],
                  "key": "bdl-4",
                  "severity": "error",
                  "human": "entry.response only for some types of bundles",
                  "xpath": "not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response')"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.structure"
                }
              ]
            },
            {
              "path": "Bundle.type",
              "short": "document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection",
              "definition": "Indicates the purpose of this bundle- how it was intended to be used.",
              "comments": "It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates the purpose of a bundle - how it was intended to be used.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/bundle-type"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Bundle.total",
              "short": "If search, the total number of matches",
              "definition": "If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle).",
              "comments": "Only used if the bundle is a search result set.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "condition": [
                "bdl-1"
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.link",
              "name": "link",
              "short": "Links related to this Bundle",
              "definition": "A series of links that provide context to this bundle.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.link.relation",
              "short": "http://www.iana.org/assignments/link-relations/link-relations.xhtml",
              "definition": "A name which details the functional use for this link - see [[http://www.iana.org/assignments/link-relations/link-relations.xhtml]].",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.link.url",
              "short": "Reference details for the link",
              "definition": "The reference details for the link.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry",
              "short": "Entry in the bundle - will have a resource, or information",
              "definition": "An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "resource or request or response"
                    }
                  ],
                  "key": "bdl-5",
                  "severity": "error",
                  "human": "must be a resource unless there's a request or response",
                  "xpath": "f:resource or f:request or f:response"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "fullUrl.empty() xor resource"
                    }
                  ],
                  "key": "bdl-6",
                  "severity": "error",
                  "human": "The fullUrl element must be present when a resource is present, and not present otherwise",
                  "xpath": "(not(exists(f:fullUrl)) and not(exists(f:resource))) or (exists(f:fullUrl) and exists(f:resource))"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.link",
              "short": "Links related to this entry",
              "definition": "A series of links that provide context to this entry.",
              "min": 0,
              "max": "*",
              "nameReference": "link",
              "isSummary": true
            },
            {
              "path": "Bundle.entry.fullUrl",
              "short": "Absolute URL for resource (server address, or UUID/OID)",
              "definition": "The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource.",
              "comments": "fullUrl may not be [unique in the context of a resource](bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](references.html), the absolute URL may not end with the logical id of the resource (Resource.id), but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](references.html#regex), then it SHALL end with the Resource.id.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.resource",
              "short": "A resource in the bundle",
              "definition": "The Resources for the entry.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.search",
              "short": "Search related information",
              "definition": "Information about the search process that lead to the creation of this entry.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "bdl-2"
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.search.mode",
              "short": "match | include | outcome - why this is in the result set",
              "definition": "Why this entry is in the result set - whether it's included as a match or because of an _include requirement.",
              "comments": "There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Why an entry is in the result set - whether it's included as a match or because of an _include requirement.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/search-entry-mode"
                }
              }
            },
            {
              "path": "Bundle.entry.search.score",
              "short": "Search ranking (between 0 and 1)",
              "definition": "When searching, the server's search ranking score for the entry.",
              "comments": "Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.request",
              "short": "Transaction Related Information",
              "definition": "Additional information about how this entry should be processed as part of a transaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "bdl-3"
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.request.method",
              "short": "GET | POST | PUT | DELETE",
              "definition": "The HTTP verb for this entry in either a update history, or a transaction/ transaction response.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "HTTP verbs (in the HTTP command line).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/http-verb"
                }
              }
            },
            {
              "path": "Bundle.entry.request.url",
              "short": "URL for HTTP equivalent of this entry",
              "definition": "The URL for this entry, relative to the root (the address to which the request is posted).",
              "comments": "E.g. for a Patient Create, the method would be \"POST\" and the URL would be \"Patient\". For a Patient Update, the method would be PUT, and the URL would be \"Patient/[id]\".",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.request.ifNoneMatch",
              "short": "For managing cache currency",
              "definition": "If the ETag values match, return a 304 Not modified status. See the API documentation for [\"Conditional Read\"](http.html#cread).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.request.ifModifiedSince",
              "short": "For managing update contention",
              "definition": "Only perform the operation if the last updated date matches. See the API documentation for [\"Conditional Read\"](http.html#cread).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.request.ifMatch",
              "short": "For managing update contention",
              "definition": "Only perform the operation if the Etag value matches. For more information, see the API section [\"Managing Resource Contention\"](http.html#concurrency).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.request.ifNoneExist",
              "short": "For conditional creates",
              "definition": "Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for [\"Conditional Create\"](http.html#ccreate). This is just the query portion of the URL - what follows the \"?\" (not including the \"?\").",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.response",
              "short": "Transaction Related Information",
              "definition": "Additional information about how this entry should be processed as part of a transaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "bdl-4"
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.response.status",
              "short": "Status return code for entry",
              "definition": "The status code returned by processing this entry.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.response.location",
              "short": "The location, if the operation returns a location",
              "definition": "The location header created by processing this operation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.response.etag",
              "short": "The etag for the resource (if relevant)",
              "definition": "The etag for the resource, it the operation for the entry produced a versioned resource.",
              "comments": "This has to match the version id in the header if a resource is included.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.entry.response.lastModified",
              "short": "Server's date time modified",
              "definition": "The date/time that the resource was modified on the server.",
              "comments": "This has to match the same time in the meta header if a resource is included.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Bundle.signature",
              "short": "Digital Signature",
              "definition": "Digital Signature - base64 encoded. XML DigSIg or a JWT.",
              "comments": "The signature could be created by the \"author\" of the bundle or by the originating device.   Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific.",
              "requirements": "This element allows capturing signatures on documents. It also allows signatures on messages, transactions or even query responses. It may support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Signature"
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/CarePlan",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "CarePlan",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/CarePlan",
        "name": "CarePlan",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for CarePlan Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "CarePlan",
              "short": "Healthcare plan for patient or group",
              "definition": "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions.",
              "alias": [
                "Care Team"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act[classCode=PCPR, moodCode=INT]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.careprovision"
                }
              ]
            },
            {
              "path": "CarePlan.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "CarePlan.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "CarePlan.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "CarePlan.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "CarePlan.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "CarePlan.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "CarePlan.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "CarePlan.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "CarePlan.identifier",
              "short": "External Ids for this plan",
              "definition": "This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "requirements": "Need to allow connection to a wider workflow.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PTH-3"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "CarePlan.subject",
              "short": "Who care plan is for",
              "definition": "Identifies the patient or group whose intended care is described by the plan.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PAT].role[classCode=PAT]"
                }
              ]
            },
            {
              "path": "CarePlan.status",
              "short": "proposed | draft | active | completed | cancelled",
              "definition": "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
              "requirements": "Allows clinicians to determine whether the plan is actionable or not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/care-plan-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PTH-5"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode planned = new active = active completed = completed"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "CarePlan.context",
              "short": "Created in context of",
              "definition": "Identifies the context in which this particular CarePlan is defined.",
              "comments": "Activities conducted as a result of the care plan may well occur as part of other encounters/episodes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Associated PV1"
                },
                {
                  "identity": "rim",
                  "map": "."
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "CarePlan.period",
              "short": "Time period plan covers",
              "definition": "Indicates when the plan did (or is intended to) come into effect and end.",
              "comments": "Any activities scheduled as part of the plan should be constrained to the specified period.",
              "requirements": "Allows tracking what plan(s) are in effect at a particular time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "GOL-7 / GOL-8"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "CarePlan.author",
              "short": "Who is responsible for contents of the plan",
              "definition": "Identifies the individual(s) or ogranization who is responsible for the content of the care plan.",
              "comments": "Collaborative care plans may have multiple authors.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "CarePlan.modified",
              "short": "When last updated",
              "definition": "Identifies the most recent date on which the plan has been revised.",
              "requirements": "Indicates how current the plan is.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PTH-6"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                }
              ]
            },
            {
              "path": "CarePlan.category",
              "short": "Type of plan",
              "definition": "Identifies what \"kind\" of plan this is to support differentiation between multiple co-existing plans; e.g. \"Home health\", \"psychiatric\", \"asthma\", \"disease management\", \"wellness plan\", etc.",
              "comments": "There may be multiple axis of categorization and one plan may serve multiple purposes.  In some cases, this may be redundant with references to CarePlan.concern.",
              "requirements": "Used for filtering what plan(s) are retrieved and displayed to different types of users.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Identifies what \"kind\" of plan this is to support differentiation between multiple co-existing plans; e.g. \"Home health\", \"psychiatric\", \"asthma\", \"disease management\", etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/care-plan-category"
                }
              }
            },
            {
              "path": "CarePlan.description",
              "short": "Summary of nature of plan",
              "definition": "A description of the scope and nature of the plan.",
              "requirements": "Provides more detail than conveyed by category.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "CarePlan.addresses",
              "short": "Health issues this plan addresses",
              "definition": "Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.",
              "requirements": "Links plan to the conditions it manages.  Also scopes plans - multiple plans may exist addressing different concerns.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-4"
                },
                {
                  "identity": "rim",
                  "map": ".actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "CarePlan.support",
              "short": "Information considered as part of plan",
              "definition": "Identifies portions of the patient's record that specifically influenced the formation of the plan.  These might include co-morbidities, recent procedures, limitations, recent assessments, etc.",
              "comments": "Use \"concern\" to identify specific conditions addressed by the care plan.",
              "requirements": "Identifies barriers and other considerations associated with the care plan.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "CarePlan.relatedPlan",
              "short": "Plans related to this one",
              "definition": "Identifies CarePlans with some sort of formal relationship to the current plan.",
              "comments": "Relationships are uni-directional with the \"newer\" plan pointing to the older one.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "CarePlan.relatedPlan.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "CarePlan.relatedPlan.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "CarePlan.relatedPlan.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "CarePlan.relatedPlan.code",
              "short": "includes | replaces | fulfills",
              "definition": "Identifies the type of relationship this plan has to the target plan.",
              "comments": "Read the relationship as \"this plan\" [relatedPlan.code] \"relatedPlan.plan\"; e.g. This plan includes Plan B.\n\nAdditional relationship types can be proposed for future releases or handled as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Codes identifying the types of relationships between two plans.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/care-plan-relationship"
                }
              }
            },
            {
              "path": "CarePlan.relatedPlan.plan",
              "short": "Plan relationship exists with",
              "definition": "A reference to the plan to which a relationship is asserted.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/CarePlan"
                  ]
                }
              ]
            },
            {
              "path": "CarePlan.participant",
              "short": "Who's involved in plan?",
              "definition": "Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.",
              "requirements": "Allows representation of care teams, helps scope care plan.  In some cases may be a determiner of access permissions.",
              "alias": [
                "Care Team"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "REL (REL.4 is always the Patient) ( or PRT?)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM]"
                }
              ]
            },
            {
              "path": "CarePlan.participant.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "CarePlan.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "CarePlan.participant.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "CarePlan.participant.role",
              "short": "Type of involvement",
              "definition": "Indicates specific responsibility of an individual within the care plan; e.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
              "comments": "Roles may sometimes be inferred by type of Practitioner.  These are relationships that hold only within the context of the care plan.  General relationships should be handled as properties of the Patient resource directly.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Indicates specific responsibility of an individual within the care plan; e.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/participant-role"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "REL.2 (or PRT-4?)"
                },
                {
                  "identity": "rim",
                  "map": ".functionCode"
                }
              ]
            },
            {
              "path": "CarePlan.participant.member",
              "short": "Who is involved",
              "definition": "The specific person or organization who is participating/expected to participate in the care plan.",
              "comments": "Patient only needs to be listed if they have a role other than \"subject of care\".\n\nMember is optional because some participants may be known only by their role, particularly in draft plans.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "REL.5 (or PRT-5 : ( PRV-4 {provider participations} ) / PRT-5 : ( PRV-4  {non-provider person participations} ) / PRT-5 : ( PRV-4 = (patient non-subject of care) ) / PRT-8?)"
                },
                {
                  "identity": "rim",
                  "map": ".role"
                }
              ]
            },
            {
              "path": "CarePlan.goal",
              "short": "Desired outcome of plan",
              "definition": "Describes the intended objective(s) of carrying out the care plan.",
              "comments": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
              "requirements": "Provides context for plan.  Allows plan effectiveness to be evaluated by clinicians.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Goal"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "GOL.1"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode<=OBJ]."
                }
              ]
            },
            {
              "path": "CarePlan.activity",
              "short": "Action to occur as part of plan",
              "definition": "Identifies a planned action to occur as part of the plan.  For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.",
              "requirements": "Allows systems to prompt for performance of planned activities, and validate plans against best practice.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "detail.empty() or reference.empty()"
                    }
                  ],
                  "key": "cpl-3",
                  "severity": "error",
                  "human": "Provide a reference or detail, not both",
                  "xpath": "not(exists(f:detail)) or not(exists(f:reference))"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target"
                }
              ]
            },
            {
              "path": "CarePlan.activity.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "CarePlan.activity.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "CarePlan.activity.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "CarePlan.activity.actionResulting",
              "short": "Appointments, orders, etc.",
              "definition": "Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc.",
              "requirements": "Links plan to resulting actions.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=FLFS].source"
                }
              ]
            },
            {
              "path": "CarePlan.activity.progress",
              "short": "Comments about the activity status/progress",
              "definition": "Notes about the adherence/status/progress of the activity.",
              "comments": "This element should NOT be used to describe the activity to be performed - that occurs either within the resource pointed to by activity.detail.reference or in activity.detail.description.",
              "requirements": "Can be used to capture information about adherence, progress, concerns, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NTE?"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            },
            {
              "path": "CarePlan.activity.reference",
              "short": "Activity details defined in specific resource",
              "definition": "The details of the proposed activity represented in a specific resource.",
              "requirements": "Details in a form consistent with other applications and contexts of use.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Appointment"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DeviceUseRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Order"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcessRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SupplyRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                  ]
                }
              ],
              "condition": [
                "cpl-3"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail",
              "short": "In-line definition of activity",
              "definition": "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.",
              "requirements": "Details in a simple form for generic care plan systems.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "cpl-3"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "CarePlan.activity.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.category",
              "short": "diet | drug | encounter | observation | procedure | supply | other",
              "definition": "High-level categorization of the type of activity in a care plan.",
              "requirements": "May determine what types of extensions are permitted.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "High-level categorization of the type of activity in a care plan.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/care-plan-activity-category"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=LIST].code"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.code",
              "short": "Detail type of activity",
              "definition": "Detailed description of the type of planned activity; e.g. What lab test, what procedure, what kind of encounter.",
              "comments": "Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use \"prohibited\" instead.",
              "requirements": "Allows matching performed to planned as well as validation against protocols.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/care-plan-activity"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-4 / RXE-2 / RXO-1  / RXD-2"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.reasonCode",
              "short": "Why activity should be done",
              "definition": "Provides the rationale that drove the inclusion of this particular activity as part of the plan.",
              "comments": "This could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Identifies why a care plan activity is needed.  Can include any health condition codes as well as such concepts as \"general wellness\", prophylaxis, surgical preparation, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/activity-reason"
                }
              }
            },
            {
              "path": "CarePlan.activity.detail.reasonReference",
              "short": "Condition triggering need for activity",
              "definition": "Provides the health condition(s) that drove the inclusion of this particular activity as part of the plan.",
              "comments": "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.goal",
              "short": "Goals this activity relates to",
              "definition": "Internal reference that identifies the goals that this activity is intended to contribute towards meeting.",
              "requirements": "So that participants know the link explicitly.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Goal"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode<=OBJ]."
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.status",
              "short": "not-started | scheduled | in-progress | on-hold | completed | cancelled",
              "definition": "Identifies what progress is being made for the specific activity.",
              "comments": "Some aspects of status can be inferred based on the resources linked in actionTaken.  Note that \"status\" is only as current as the plan was most recently updated.",
              "requirements": "Indicates progress against the plan, whether the activity is still relevant for the plan.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "binding": {
                "strength": "required",
                "description": "Indicates where the activity is at in its overall life cycle.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/care-plan-activity-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-5?"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode not-started = new scheduled = not-started (and fulfillment relationship to appointent) in-progress = active on-hold = suspended completed = completed cancelled = aborted"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.statusReason",
              "short": "Reason for current status",
              "definition": "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.",
              "comments": "Will generally not be present if status is \"complete\".  Be sure to prompt to update this (or at least remove the existing value) if the status is changed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Describes why the current activity has the status it does; e.g. \"Recovering from injury\" as a reason for non-started or on-hold, \"Patient does not enjoy activity\" as a reason for cancelling a planned activity.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/goal-status-reason"
                }
              }
            },
            {
              "path": "CarePlan.activity.detail.prohibited",
              "short": "Do NOT do",
              "definition": "If true, indicates that the described activity is one that must NOT be engaged in when following the plan.",
              "requirements": "Captures intention to not do something that may have been previously typical.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "actionNegationInd"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.scheduled[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",
              "type": [
                {
                  "code": "Timing"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "TQ1"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.location",
              "short": "Where it should happen",
              "definition": "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.",
              "comments": "May reference a specific clinical location or may identify a type of location.",
              "requirements": "Helps in planning of activity.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-24(???!!)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=LOC].role"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.performer",
              "short": "Who will be responsible?",
              "definition": "Identifies who's expected to be involved in the activity.",
              "comments": "A performer MAY also be a participant in the care plan.",
              "requirements": "Helps in planning of activity.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRT-5 : ( PRV-4 e {provider participations} ) / PRT-5 : ( PRV-4 e {non-provider person participations} ) / PRT-5 : ( PRV-4 = (patient non-subject of care) ) / PRT-8"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM]"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.product[x]",
              "short": "What is to be administered/supplied",
              "definition": "Identifies the food, drug or other product to be consumed or supplied in the activity.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ],
              "binding": {
                "strength": "example",
                "description": "A product supplied or administered as part of a care plan activity.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-2 / RXO-1 / RXD-2"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PRD].role"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.dailyAmount",
              "short": "How to consume/day?",
              "definition": "Identifies the quantity expected to be consumed in a given day.",
              "requirements": "Allows rough dose checking.",
              "alias": [
                "daily dose"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXO-23 / RXE-19 / RXD-12"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP][classCode=SBADM].doseQuantity"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.quantity",
              "short": "How much to administer/supply/consume",
              "definition": "Identifies the quantity expected to be supplied, administered or consumed by the subject.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXO-11 / RXE-10 / RXD-4 / RXG-5 / RXA-6 /  TQ1-2.1  *and*  RXO-12 /  RXE-11 / RXD-5 / RXG-7 / RXA-7 / TQ1-2.2"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP][classCode=SPLY].quantity"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.description",
              "short": "Extra info describing activity to perform",
              "definition": "This provides a textual description of constraints on the intended activity occurrence, including relation to other activities.  It may also include objectives, pre-conditions and end-conditions.  Finally, it may convey specifics about the activity such as body site, method, route, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NTE?"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "CarePlan.note",
              "short": "Comments about the plan",
              "definition": "General notes about the care plan not covered elsewhere.",
              "requirements": "Used to capture information that applies to the plan as a whole that doesn't fit into discrete elements.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NTE?"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "CarePlan",
              "short": "Healthcare plan for patient or group",
              "definition": "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions.",
              "alias": [
                "Care Team"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act[classCode=PCPR, moodCode=INT]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.careprovision"
                }
              ]
            },
            {
              "path": "CarePlan.identifier",
              "short": "External Ids for this plan",
              "definition": "This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "requirements": "Need to allow connection to a wider workflow.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PTH-3"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "CarePlan.subject",
              "short": "Who care plan is for",
              "definition": "Identifies the patient or group whose intended care is described by the plan.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PAT].role[classCode=PAT]"
                }
              ]
            },
            {
              "path": "CarePlan.status",
              "short": "proposed | draft | active | completed | cancelled",
              "definition": "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
              "requirements": "Allows clinicians to determine whether the plan is actionable or not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/care-plan-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PTH-5"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode planned = new active = active completed = completed"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "CarePlan.context",
              "short": "Created in context of",
              "definition": "Identifies the context in which this particular CarePlan is defined.",
              "comments": "Activities conducted as a result of the care plan may well occur as part of other encounters/episodes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Associated PV1"
                },
                {
                  "identity": "rim",
                  "map": "."
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "CarePlan.period",
              "short": "Time period plan covers",
              "definition": "Indicates when the plan did (or is intended to) come into effect and end.",
              "comments": "Any activities scheduled as part of the plan should be constrained to the specified period.",
              "requirements": "Allows tracking what plan(s) are in effect at a particular time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "GOL-7 / GOL-8"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "CarePlan.author",
              "short": "Who is responsible for contents of the plan",
              "definition": "Identifies the individual(s) or ogranization who is responsible for the content of the care plan.",
              "comments": "Collaborative care plans may have multiple authors.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "CarePlan.modified",
              "short": "When last updated",
              "definition": "Identifies the most recent date on which the plan has been revised.",
              "requirements": "Indicates how current the plan is.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PTH-6"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                }
              ]
            },
            {
              "path": "CarePlan.category",
              "short": "Type of plan",
              "definition": "Identifies what \"kind\" of plan this is to support differentiation between multiple co-existing plans; e.g. \"Home health\", \"psychiatric\", \"asthma\", \"disease management\", \"wellness plan\", etc.",
              "comments": "There may be multiple axis of categorization and one plan may serve multiple purposes.  In some cases, this may be redundant with references to CarePlan.concern.",
              "requirements": "Used for filtering what plan(s) are retrieved and displayed to different types of users.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Identifies what \"kind\" of plan this is to support differentiation between multiple co-existing plans; e.g. \"Home health\", \"psychiatric\", \"asthma\", \"disease management\", etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/care-plan-category"
                }
              }
            },
            {
              "path": "CarePlan.description",
              "short": "Summary of nature of plan",
              "definition": "A description of the scope and nature of the plan.",
              "requirements": "Provides more detail than conveyed by category.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "CarePlan.addresses",
              "short": "Health issues this plan addresses",
              "definition": "Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.",
              "requirements": "Links plan to the conditions it manages.  Also scopes plans - multiple plans may exist addressing different concerns.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-4"
                },
                {
                  "identity": "rim",
                  "map": ".actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "CarePlan.support",
              "short": "Information considered as part of plan",
              "definition": "Identifies portions of the patient's record that specifically influenced the formation of the plan.  These might include co-morbidities, recent procedures, limitations, recent assessments, etc.",
              "comments": "Use \"concern\" to identify specific conditions addressed by the care plan.",
              "requirements": "Identifies barriers and other considerations associated with the care plan.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "CarePlan.relatedPlan",
              "short": "Plans related to this one",
              "definition": "Identifies CarePlans with some sort of formal relationship to the current plan.",
              "comments": "Relationships are uni-directional with the \"newer\" plan pointing to the older one.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "CarePlan.relatedPlan.code",
              "short": "includes | replaces | fulfills",
              "definition": "Identifies the type of relationship this plan has to the target plan.",
              "comments": "Read the relationship as \"this plan\" [relatedPlan.code] \"relatedPlan.plan\"; e.g. This plan includes Plan B.\n\nAdditional relationship types can be proposed for future releases or handled as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Codes identifying the types of relationships between two plans.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/care-plan-relationship"
                }
              }
            },
            {
              "path": "CarePlan.relatedPlan.plan",
              "short": "Plan relationship exists with",
              "definition": "A reference to the plan to which a relationship is asserted.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/CarePlan"
                  ]
                }
              ]
            },
            {
              "path": "CarePlan.participant",
              "short": "Who's involved in plan?",
              "definition": "Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.",
              "requirements": "Allows representation of care teams, helps scope care plan.  In some cases may be a determiner of access permissions.",
              "alias": [
                "Care Team"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "REL (REL.4 is always the Patient) ( or PRT?)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM]"
                }
              ]
            },
            {
              "path": "CarePlan.participant.role",
              "short": "Type of involvement",
              "definition": "Indicates specific responsibility of an individual within the care plan; e.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
              "comments": "Roles may sometimes be inferred by type of Practitioner.  These are relationships that hold only within the context of the care plan.  General relationships should be handled as properties of the Patient resource directly.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Indicates specific responsibility of an individual within the care plan; e.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/participant-role"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "REL.2 (or PRT-4?)"
                },
                {
                  "identity": "rim",
                  "map": ".functionCode"
                }
              ]
            },
            {
              "path": "CarePlan.participant.member",
              "short": "Who is involved",
              "definition": "The specific person or organization who is participating/expected to participate in the care plan.",
              "comments": "Patient only needs to be listed if they have a role other than \"subject of care\".\n\nMember is optional because some participants may be known only by their role, particularly in draft plans.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "REL.5 (or PRT-5 : ( PRV-4 {provider participations} ) / PRT-5 : ( PRV-4  {non-provider person participations} ) / PRT-5 : ( PRV-4 = (patient non-subject of care) ) / PRT-8?)"
                },
                {
                  "identity": "rim",
                  "map": ".role"
                }
              ]
            },
            {
              "path": "CarePlan.goal",
              "short": "Desired outcome of plan",
              "definition": "Describes the intended objective(s) of carrying out the care plan.",
              "comments": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
              "requirements": "Provides context for plan.  Allows plan effectiveness to be evaluated by clinicians.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Goal"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "GOL.1"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode<=OBJ]."
                }
              ]
            },
            {
              "path": "CarePlan.activity",
              "short": "Action to occur as part of plan",
              "definition": "Identifies a planned action to occur as part of the plan.  For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.",
              "requirements": "Allows systems to prompt for performance of planned activities, and validate plans against best practice.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "detail.empty() or reference.empty()"
                    }
                  ],
                  "key": "cpl-3",
                  "severity": "error",
                  "human": "Provide a reference or detail, not both",
                  "xpath": "not(exists(f:detail)) or not(exists(f:reference))"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target"
                }
              ]
            },
            {
              "path": "CarePlan.activity.actionResulting",
              "short": "Appointments, orders, etc.",
              "definition": "Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc.",
              "requirements": "Links plan to resulting actions.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=FLFS].source"
                }
              ]
            },
            {
              "path": "CarePlan.activity.progress",
              "short": "Comments about the activity status/progress",
              "definition": "Notes about the adherence/status/progress of the activity.",
              "comments": "This element should NOT be used to describe the activity to be performed - that occurs either within the resource pointed to by activity.detail.reference or in activity.detail.description.",
              "requirements": "Can be used to capture information about adherence, progress, concerns, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NTE?"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            },
            {
              "path": "CarePlan.activity.reference",
              "short": "Activity details defined in specific resource",
              "definition": "The details of the proposed activity represented in a specific resource.",
              "requirements": "Details in a form consistent with other applications and contexts of use.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Appointment"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DeviceUseRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Order"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcessRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SupplyRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                  ]
                }
              ],
              "condition": [
                "cpl-3"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail",
              "short": "In-line definition of activity",
              "definition": "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.",
              "requirements": "Details in a simple form for generic care plan systems.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "cpl-3"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.category",
              "short": "diet | drug | encounter | observation | procedure | supply | other",
              "definition": "High-level categorization of the type of activity in a care plan.",
              "requirements": "May determine what types of extensions are permitted.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "High-level categorization of the type of activity in a care plan.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/care-plan-activity-category"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=LIST].code"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.code",
              "short": "Detail type of activity",
              "definition": "Detailed description of the type of planned activity; e.g. What lab test, what procedure, what kind of encounter.",
              "comments": "Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use \"prohibited\" instead.",
              "requirements": "Allows matching performed to planned as well as validation against protocols.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/care-plan-activity"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-4 / RXE-2 / RXO-1  / RXD-2"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.reasonCode",
              "short": "Why activity should be done",
              "definition": "Provides the rationale that drove the inclusion of this particular activity as part of the plan.",
              "comments": "This could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Identifies why a care plan activity is needed.  Can include any health condition codes as well as such concepts as \"general wellness\", prophylaxis, surgical preparation, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/activity-reason"
                }
              }
            },
            {
              "path": "CarePlan.activity.detail.reasonReference",
              "short": "Condition triggering need for activity",
              "definition": "Provides the health condition(s) that drove the inclusion of this particular activity as part of the plan.",
              "comments": "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.goal",
              "short": "Goals this activity relates to",
              "definition": "Internal reference that identifies the goals that this activity is intended to contribute towards meeting.",
              "requirements": "So that participants know the link explicitly.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Goal"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode<=OBJ]."
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.status",
              "short": "not-started | scheduled | in-progress | on-hold | completed | cancelled",
              "definition": "Identifies what progress is being made for the specific activity.",
              "comments": "Some aspects of status can be inferred based on the resources linked in actionTaken.  Note that \"status\" is only as current as the plan was most recently updated.",
              "requirements": "Indicates progress against the plan, whether the activity is still relevant for the plan.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "binding": {
                "strength": "required",
                "description": "Indicates where the activity is at in its overall life cycle.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/care-plan-activity-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-5?"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode not-started = new scheduled = not-started (and fulfillment relationship to appointent) in-progress = active on-hold = suspended completed = completed cancelled = aborted"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.statusReason",
              "short": "Reason for current status",
              "definition": "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.",
              "comments": "Will generally not be present if status is \"complete\".  Be sure to prompt to update this (or at least remove the existing value) if the status is changed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Describes why the current activity has the status it does; e.g. \"Recovering from injury\" as a reason for non-started or on-hold, \"Patient does not enjoy activity\" as a reason for cancelling a planned activity.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/goal-status-reason"
                }
              }
            },
            {
              "path": "CarePlan.activity.detail.prohibited",
              "short": "Do NOT do",
              "definition": "If true, indicates that the described activity is one that must NOT be engaged in when following the plan.",
              "requirements": "Captures intention to not do something that may have been previously typical.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "actionNegationInd"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.scheduled[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",
              "type": [
                {
                  "code": "Timing"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "TQ1"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.location",
              "short": "Where it should happen",
              "definition": "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.",
              "comments": "May reference a specific clinical location or may identify a type of location.",
              "requirements": "Helps in planning of activity.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-24(???!!)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=LOC].role"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.performer",
              "short": "Who will be responsible?",
              "definition": "Identifies who's expected to be involved in the activity.",
              "comments": "A performer MAY also be a participant in the care plan.",
              "requirements": "Helps in planning of activity.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRT-5 : ( PRV-4 e {provider participations} ) / PRT-5 : ( PRV-4 e {non-provider person participations} ) / PRT-5 : ( PRV-4 = (patient non-subject of care) ) / PRT-8"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM]"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.product[x]",
              "short": "What is to be administered/supplied",
              "definition": "Identifies the food, drug or other product to be consumed or supplied in the activity.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ],
              "binding": {
                "strength": "example",
                "description": "A product supplied or administered as part of a care plan activity.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-2 / RXO-1 / RXD-2"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PRD].role"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.dailyAmount",
              "short": "How to consume/day?",
              "definition": "Identifies the quantity expected to be consumed in a given day.",
              "requirements": "Allows rough dose checking.",
              "alias": [
                "daily dose"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXO-23 / RXE-19 / RXD-12"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP][classCode=SBADM].doseQuantity"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.quantity",
              "short": "How much to administer/supply/consume",
              "definition": "Identifies the quantity expected to be supplied, administered or consumed by the subject.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXO-11 / RXE-10 / RXD-4 / RXG-5 / RXA-6 /  TQ1-2.1  *and*  RXO-12 /  RXE-11 / RXD-5 / RXG-7 / RXA-7 / TQ1-2.2"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP][classCode=SPLY].quantity"
                }
              ]
            },
            {
              "path": "CarePlan.activity.detail.description",
              "short": "Extra info describing activity to perform",
              "definition": "This provides a textual description of constraints on the intended activity occurrence, including relation to other activities.  It may also include objectives, pre-conditions and end-conditions.  Finally, it may convey specifics about the activity such as body site, method, route, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NTE?"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "CarePlan.note",
              "short": "Comments about the plan",
              "definition": "General notes about the care plan not covered elsewhere.",
              "requirements": "Used to capture information that applies to the plan as a whole that doesn't fit into discrete elements.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NTE?"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Claim",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Claim",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Claim",
        "name": "Claim",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Claim Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Claim",
              "short": "Claim, Pre-determination or Pre-authorization",
              "definition": "A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.billing"
                }
              ]
            },
            {
              "path": "Claim.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Claim.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Claim.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Claim.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Claim.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Claim.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Claim.type",
              "short": "institutional | oral | pharmacy | professional | vision",
              "definition": "The category of claim this is.",
              "comments": "Affects which fields and value sets are used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The type or discipline-style of the claim",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/claim-type-link"
                }
              }
            },
            {
              "path": "Claim.identifier",
              "short": "Claim number",
              "definition": "The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.ruleset",
              "short": "Current specification followed",
              "definition": "The version of the specification on which this instance relies.",
              "alias": [
                "BusinessVersion"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "Claim.originalRuleset",
              "short": "Original specification followed",
              "definition": "The version of the specification from which the original instance was created.",
              "alias": [
                "OriginalBusinessVersion"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "Claim.created",
              "short": "Creation date",
              "definition": "The date when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.billablePeriod",
              "short": "Period for charge submission",
              "definition": "The billable period for which charges are being submitted.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.target",
              "short": "Insurer",
              "definition": "Insurer Identifier, typical BIN number (6 digit).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.provider",
              "short": "Responsible provider",
              "definition": "The provider which is responsible for the bill, claim pre-determination, pre-authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.organization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the bill, claim pre-determination, pre-authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.use",
              "short": "complete | proposed | exploratory | other",
              "definition": "Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Complete, proposed, exploratory, other",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/claim-use-link"
                }
              }
            },
            {
              "path": "Claim.priority",
              "short": "Desired processing priority",
              "definition": "Immediate (STAT), best effort (NORMAL), deferred (DEFER).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The timeliness with which processing is required: STAT, normal, Deferred",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/process-priority"
                }
              }
            },
            {
              "path": "Claim.fundsReserve",
              "short": "Funds requested to be reserved",
              "definition": "In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "For whom funds are to be reserved: (Patient, Provider, None).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/fundsreserve"
                }
              }
            },
            {
              "path": "Claim.enterer",
              "short": "Author",
              "definition": "Person who created the invoice/claim/pre-determination or pre-authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.facility",
              "short": "Servicing Facility",
              "definition": "Facility where the services were provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.relatedClaim",
              "short": "Related Claims",
              "definition": "Other claims which are related to this claim such as prior claim versions or for related services.",
              "comments": "Do we need a relationship code?",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Claim"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.prescription",
              "short": "Prescription",
              "definition": "Prescription to support the dispensing of Pharmacy or Vision products.",
              "comments": "Should we create a group to hold multiple prescriptions and add a sequence number and on the line items a link to the sequence.",
              "requirements": "For type=Pharmacy and Vision only.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.originalPrescription",
              "short": "Original Prescription",
              "definition": "Original prescription which has been superceded by this prescription to support the dispensing of pharmacy services, medications or products.",
              "comments": "as above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Payee"
                }
              ],
              "path": "Claim.payee",
              "short": "Payee",
              "definition": "The party to be reimbursed for the services.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.payee.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.payee.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.payee.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Claim.payee.type",
              "short": "Party to be paid any benefits payable",
              "definition": "Party to be reimbursed: Subscriber, provider, other.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code for the party to be reimbursed.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payeetype"
                }
              }
            },
            {
              "path": "Claim.payee.provider",
              "short": "Provider who is the payee",
              "definition": "The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned).",
              "comments": "Consider makig this a choice (payee[x]).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.payee.organization",
              "short": "Organization who is the payee",
              "definition": "The organization who is to be reimbursed for the claim (the party to whom any benefit is assigned).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.payee.person",
              "short": "Other person who is the payee",
              "definition": "The person other than the subscriber who is to be reimbursed for the claim (the party to whom any benefit is assigned).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.referral",
              "short": "Treatment Referral",
              "definition": "The referral resource which lists the date, practitioner, reason and other supporting information.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Diagnosis"
                }
              ],
              "path": "Claim.diagnosis",
              "short": "Diagnosis",
              "definition": "Ordered list of patient diagnosis for which care is sought.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.diagnosis.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.diagnosis.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.diagnosis.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Claim.diagnosis.sequence",
              "short": "Sequence of diagnosis",
              "definition": "Sequence of diagnosis which serves to order and provide a link.",
              "requirements": "Required to maintain order of the diagnoses.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.diagnosis.diagnosis",
              "short": "Patient's list of diagnosis",
              "definition": "The diagnosis.",
              "requirements": "Required to adjudicate services rendered to condition presented.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "ICD10 Diagnostic codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/icd-10"
                }
              }
            },
            {
              "path": "Claim.specialCondition",
              "short": "List of special Conditions",
              "definition": "List of special conditions relating to the setting, treatment or patient  for which care is sought which may influence the adjudication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Patient conditions and symptoms",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/fm-conditions"
                }
              }
            },
            {
              "path": "Claim.patient",
              "short": "The subject of the Products and Services",
              "definition": "Patient Resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Coverage"
                }
              ],
              "path": "Claim.coverage",
              "short": "Insurance or medical plan",
              "definition": "Financial instrument by which payment information for health care.",
              "requirements": "Health care programs and insurers are significant payors of health service costs.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Coverage"
                }
              ]
            },
            {
              "path": "Claim.coverage.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.coverage.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.coverage.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Claim.coverage.sequence",
              "short": "Service instance identifier",
              "definition": "A service line item.",
              "requirements": "To maintain order of the coverages.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.coverage.focal",
              "short": "Is the focal Coverage",
              "definition": "The instance number of the Coverage which is the focus for adjudication. The Coverage against which the claim is to be adjudicated.",
              "requirements": "To identify which coverage is being adjudicated.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.coverage.coverage",
              "short": "Insurance information",
              "definition": "Reference to the program or plan identification, underwriter or payor.",
              "requirements": "Need to identify the issuer to target for processing and for coordination of benefit processing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Coverage"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.coverage.businessArrangement",
              "short": "Business agreement",
              "definition": "The contract number of a business agreement which describes the terms and conditions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.coverage.relationship",
              "short": "Patient relationship to subscriber",
              "definition": "The relationship of the patient to the subscriber.",
              "requirements": "To determine relationship between the patient and the subscriber.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the relationship of the patient to the subscriber.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/relationship"
                }
              }
            },
            {
              "path": "Claim.coverage.preAuthRef",
              "short": "Pre-Authorization/Determination Reference",
              "definition": "A list of references from the Insurer to which these services pertain.",
              "requirements": "To provide any pre=determination or prior authorization reference.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.coverage.claimResponse",
              "short": "Adjudication results",
              "definition": "The Coverages adjudication details.",
              "requirements": "Used by downstream payers to determine what balance remains and the net payable.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.coverage.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "Claim.exception",
              "short": "Eligibility exceptions",
              "definition": "Factors which may influence the applicability of coverage.",
              "requirements": "To determine extenuating circumstances for coverage.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The eligibility exception codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/claim-exception"
                }
              }
            },
            {
              "path": "Claim.school",
              "short": "Name of School",
              "definition": "Name of school for over-aged dependants.",
              "requirements": "Often required for over-age dependents.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.accidentDate",
              "short": "Accident Date",
              "definition": "Date of an accident which these services are addressing.",
              "requirements": "Coverage may be dependant on accidents.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.accidentType",
              "short": "Accident Type",
              "definition": "Type of accident: work, auto, etc.",
              "requirements": "Coverage may be dependant on the type of accident.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Type of accident: work place, auto, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActIncidentCode"
                }
              }
            },
            {
              "path": "Claim.accidentLocation[x]",
              "short": "Accident Place",
              "definition": "Accident Place.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                },
                {
                  "code": "Address"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.interventionException",
              "short": "Intervention and exception code (Pharma)",
              "definition": "A list of intervention and exception codes which may influence the adjudication of the claim.",
              "requirements": "Coverage may be modified based on exception information provided.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Intervention and exception codes (Pharm)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/intervention"
                }
              }
            },
            {
              "path": "Claim.onset[x]",
              "short": "Illness, injury or treatable condition date",
              "definition": "The start or start and end dates for the treatable condition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.employmentImpacted",
              "short": "Period unable to work",
              "definition": "The start and optional end dates of when the patient was precluded from working due to the treatable condition(s).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.hospitalization",
              "short": "Period in hospital",
              "definition": "The start and optional end dates of when the patient was confined to a treatment center.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Items"
                }
              ],
              "path": "Claim.item",
              "short": "Goods and Services",
              "definition": "First tier of goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.item.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Claim.item.sequence",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.type",
              "short": "Group or type of product or service",
              "definition": "The type of product or service.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Service, Product, Rx Dispense, Rx Compound etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"
                }
              }
            },
            {
              "path": "Claim.item.provider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.diagnosisLinkId",
              "short": "Diagnosis Link",
              "definition": "Diagnosis applicable for this service or product line.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.service",
              "short": "Item Code",
              "definition": "If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "Claim.item.serviced[x]",
              "short": "Date or dates of Service",
              "definition": "The date or dates when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.place",
              "short": "Place of service",
              "definition": "Where the service was provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-place"
                }
              }
            },
            {
              "path": "Claim.item.quantity",
              "short": "Count of Products or Services",
              "definition": "The number of repetitions of a service or product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.unitPrice",
              "short": "Fee, charge or cost per point",
              "definition": "If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.factor",
              "short": "Price scaling factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.points",
              "short": "Difficulty scaling factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.net",
              "short": "Total item cost",
              "definition": "The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.udi",
              "short": "Unique Device Identifier",
              "definition": "List of Unique Device Identifiers associated with this line item.",
              "requirements": "The UDI code and issuer if applicable for the supplied product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The FDA, or other, UDI repository.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/udi"
                }
              }
            },
            {
              "path": "Claim.item.bodySite",
              "short": "Service Location",
              "definition": "Physical service site on the patient (limb, tooth, etc).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the teeth, quadrant, sextant and arch",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/tooth"
                }
              }
            },
            {
              "path": "Claim.item.subSite",
              "short": "Service Sub-location",
              "definition": "A region or surface of the site, eg. limb region or tooth surface(s).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the tooth surface and surface combinations",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/surface"
                }
              }
            },
            {
              "path": "Claim.item.modifier",
              "short": "Service/Product billing modifiers",
              "definition": "Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/claim-modifiers"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Detail"
                }
              ],
              "path": "Claim.item.detail",
              "short": "Additional items",
              "definition": "Second tier of goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.item.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.item.detail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Claim.item.detail.sequence",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.type",
              "short": "Group or type of product or service",
              "definition": "The type of product or service.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Service, Product, Rx Dispense, Rx Compound etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"
                }
              }
            },
            {
              "path": "Claim.item.detail.service",
              "short": "Additional item codes",
              "definition": "If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "Claim.item.detail.quantity",
              "short": "Count of Products or Services",
              "definition": "The number of repetitions of a service or product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.unitPrice",
              "short": "Fee, charge or cost per point",
              "definition": "If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.factor",
              "short": "Price scaling factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.points",
              "short": "Difficulty scaling factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.net",
              "short": "Total additional item cost",
              "definition": "The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.udi",
              "short": "Unique Device Identifier",
              "definition": "List of Unique Device Identifiers associated with this line item.",
              "requirements": "The UDI code and issuer if applicable for the supplied product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The FDA, or other, UDI repository.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/udi"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SubDetail"
                }
              ],
              "path": "Claim.item.detail.subDetail",
              "short": "Additional items",
              "definition": "Third tier of goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.item.detail.subDetail.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.item.detail.subDetail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Claim.item.detail.subDetail.sequence",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.type",
              "short": "Type of product or service",
              "definition": "The type of product or service.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Service, Product, Rx Dispense, Rx Compound etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"
                }
              }
            },
            {
              "path": "Claim.item.detail.subDetail.service",
              "short": "Additional item codes",
              "definition": "The fee for an addittional service or product or charge.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "Claim.item.detail.subDetail.quantity",
              "short": "Count of Products or Services",
              "definition": "The number of repetitions of a service or product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.unitPrice",
              "short": "Fee, charge or cost per point",
              "definition": "The fee for an addittional service or product or charge.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.factor",
              "short": "Price scaling factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.points",
              "short": "Difficulty scaling factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.net",
              "short": "Net additional item cost",
              "definition": "The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.udi",
              "short": "Unique Device Identifier",
              "definition": "List of Unique Device Identifiers associated with this line item.",
              "requirements": "The UDI code and issuer if applicable for the supplied product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The FDA, or other, UDI repository.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/udi"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Prosthesis"
                }
              ],
              "path": "Claim.item.prosthesis",
              "short": "Prosthetic details",
              "definition": "The materials and placement date of prior fixed prosthesis.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.prosthesis.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.item.prosthesis.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.item.prosthesis.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Claim.item.prosthesis.initial",
              "short": "Is this the initial service",
              "definition": "Indicates whether this is the initial placement of a fixed prosthesis.",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.prosthesis.priorDate",
              "short": "Initial service Date",
              "definition": "Date of the initial placement.",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.prosthesis.priorMaterial",
              "short": "Prosthetic Material",
              "definition": "Material of the prior denture or bridge prosthesis. (Oral).",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Material of the prior denture or bridge prosthesis. (Oral)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/oral-prosthodontic-material"
                }
              }
            },
            {
              "path": "Claim.total",
              "short": "Total claim cost",
              "definition": "The total value of the claim.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.additionalMaterials",
              "short": "Additional materials, documents, etc.",
              "definition": "Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/additionalmaterials"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "MissingTeeth"
                }
              ],
              "path": "Claim.missingTeeth",
              "short": "Only if type = oral",
              "definition": "A list of teeth which would be expected but are not found due to having been previously  extracted or for other reasons.",
              "requirements": "The list of missing teeth may influence the adjudication of services for example with Bridges.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.missingTeeth.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.missingTeeth.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Claim.missingTeeth.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Claim.missingTeeth.tooth",
              "short": "Tooth Code",
              "definition": "The code identifying which tooth is missing.",
              "requirements": "Provides the tooth number of the missing tooth.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The codes for the teeth, subset of OralSites",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/teeth"
                }
              }
            },
            {
              "path": "Claim.missingTeeth.reason",
              "short": "Reason for missing",
              "definition": "Missing reason may be: E-extraction, O-other.",
              "requirements": "Provides the reason for the missing tooth.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Reason codes for the missing teeth",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/missing-tooth-reason"
                }
              }
            },
            {
              "path": "Claim.missingTeeth.extractionDate",
              "short": "Date of Extraction",
              "definition": "The date of the extraction either known from records or patient reported estimate.",
              "requirements": "Some services and adjudications require this information.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Claim",
              "short": "Claim, Pre-determination or Pre-authorization",
              "definition": "A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.billing"
                }
              ]
            },
            {
              "path": "Claim.type",
              "short": "institutional | oral | pharmacy | professional | vision",
              "definition": "The category of claim this is.",
              "comments": "Affects which fields and value sets are used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The type or discipline-style of the claim",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/claim-type-link"
                }
              }
            },
            {
              "path": "Claim.identifier",
              "short": "Claim number",
              "definition": "The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.ruleset",
              "short": "Current specification followed",
              "definition": "The version of the specification on which this instance relies.",
              "alias": [
                "BusinessVersion"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "Claim.originalRuleset",
              "short": "Original specification followed",
              "definition": "The version of the specification from which the original instance was created.",
              "alias": [
                "OriginalBusinessVersion"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "Claim.created",
              "short": "Creation date",
              "definition": "The date when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.billablePeriod",
              "short": "Period for charge submission",
              "definition": "The billable period for which charges are being submitted.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.target",
              "short": "Insurer",
              "definition": "Insurer Identifier, typical BIN number (6 digit).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.provider",
              "short": "Responsible provider",
              "definition": "The provider which is responsible for the bill, claim pre-determination, pre-authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.organization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the bill, claim pre-determination, pre-authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.use",
              "short": "complete | proposed | exploratory | other",
              "definition": "Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Complete, proposed, exploratory, other",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/claim-use-link"
                }
              }
            },
            {
              "path": "Claim.priority",
              "short": "Desired processing priority",
              "definition": "Immediate (STAT), best effort (NORMAL), deferred (DEFER).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The timeliness with which processing is required: STAT, normal, Deferred",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/process-priority"
                }
              }
            },
            {
              "path": "Claim.fundsReserve",
              "short": "Funds requested to be reserved",
              "definition": "In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "For whom funds are to be reserved: (Patient, Provider, None).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/fundsreserve"
                }
              }
            },
            {
              "path": "Claim.enterer",
              "short": "Author",
              "definition": "Person who created the invoice/claim/pre-determination or pre-authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.facility",
              "short": "Servicing Facility",
              "definition": "Facility where the services were provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.relatedClaim",
              "short": "Related Claims",
              "definition": "Other claims which are related to this claim such as prior claim versions or for related services.",
              "comments": "Do we need a relationship code?",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Claim"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.prescription",
              "short": "Prescription",
              "definition": "Prescription to support the dispensing of Pharmacy or Vision products.",
              "comments": "Should we create a group to hold multiple prescriptions and add a sequence number and on the line items a link to the sequence.",
              "requirements": "For type=Pharmacy and Vision only.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.originalPrescription",
              "short": "Original Prescription",
              "definition": "Original prescription which has been superceded by this prescription to support the dispensing of pharmacy services, medications or products.",
              "comments": "as above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Payee"
                }
              ],
              "path": "Claim.payee",
              "short": "Payee",
              "definition": "The party to be reimbursed for the services.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.payee.type",
              "short": "Party to be paid any benefits payable",
              "definition": "Party to be reimbursed: Subscriber, provider, other.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code for the party to be reimbursed.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payeetype"
                }
              }
            },
            {
              "path": "Claim.payee.provider",
              "short": "Provider who is the payee",
              "definition": "The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned).",
              "comments": "Consider makig this a choice (payee[x]).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.payee.organization",
              "short": "Organization who is the payee",
              "definition": "The organization who is to be reimbursed for the claim (the party to whom any benefit is assigned).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.payee.person",
              "short": "Other person who is the payee",
              "definition": "The person other than the subscriber who is to be reimbursed for the claim (the party to whom any benefit is assigned).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.referral",
              "short": "Treatment Referral",
              "definition": "The referral resource which lists the date, practitioner, reason and other supporting information.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Diagnosis"
                }
              ],
              "path": "Claim.diagnosis",
              "short": "Diagnosis",
              "definition": "Ordered list of patient diagnosis for which care is sought.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.diagnosis.sequence",
              "short": "Sequence of diagnosis",
              "definition": "Sequence of diagnosis which serves to order and provide a link.",
              "requirements": "Required to maintain order of the diagnoses.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.diagnosis.diagnosis",
              "short": "Patient's list of diagnosis",
              "definition": "The diagnosis.",
              "requirements": "Required to adjudicate services rendered to condition presented.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "ICD10 Diagnostic codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/icd-10"
                }
              }
            },
            {
              "path": "Claim.specialCondition",
              "short": "List of special Conditions",
              "definition": "List of special conditions relating to the setting, treatment or patient  for which care is sought which may influence the adjudication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Patient conditions and symptoms",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/fm-conditions"
                }
              }
            },
            {
              "path": "Claim.patient",
              "short": "The subject of the Products and Services",
              "definition": "Patient Resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Coverage"
                }
              ],
              "path": "Claim.coverage",
              "short": "Insurance or medical plan",
              "definition": "Financial instrument by which payment information for health care.",
              "requirements": "Health care programs and insurers are significant payors of health service costs.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Coverage"
                }
              ]
            },
            {
              "path": "Claim.coverage.sequence",
              "short": "Service instance identifier",
              "definition": "A service line item.",
              "requirements": "To maintain order of the coverages.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.coverage.focal",
              "short": "Is the focal Coverage",
              "definition": "The instance number of the Coverage which is the focus for adjudication. The Coverage against which the claim is to be adjudicated.",
              "requirements": "To identify which coverage is being adjudicated.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.coverage.coverage",
              "short": "Insurance information",
              "definition": "Reference to the program or plan identification, underwriter or payor.",
              "requirements": "Need to identify the issuer to target for processing and for coordination of benefit processing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Coverage"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.coverage.businessArrangement",
              "short": "Business agreement",
              "definition": "The contract number of a business agreement which describes the terms and conditions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.coverage.relationship",
              "short": "Patient relationship to subscriber",
              "definition": "The relationship of the patient to the subscriber.",
              "requirements": "To determine relationship between the patient and the subscriber.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the relationship of the patient to the subscriber.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/relationship"
                }
              }
            },
            {
              "path": "Claim.coverage.preAuthRef",
              "short": "Pre-Authorization/Determination Reference",
              "definition": "A list of references from the Insurer to which these services pertain.",
              "requirements": "To provide any pre=determination or prior authorization reference.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.coverage.claimResponse",
              "short": "Adjudication results",
              "definition": "The Coverages adjudication details.",
              "requirements": "Used by downstream payers to determine what balance remains and the net payable.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.coverage.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "Claim.exception",
              "short": "Eligibility exceptions",
              "definition": "Factors which may influence the applicability of coverage.",
              "requirements": "To determine extenuating circumstances for coverage.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The eligibility exception codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/claim-exception"
                }
              }
            },
            {
              "path": "Claim.school",
              "short": "Name of School",
              "definition": "Name of school for over-aged dependants.",
              "requirements": "Often required for over-age dependents.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.accidentDate",
              "short": "Accident Date",
              "definition": "Date of an accident which these services are addressing.",
              "requirements": "Coverage may be dependant on accidents.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.accidentType",
              "short": "Accident Type",
              "definition": "Type of accident: work, auto, etc.",
              "requirements": "Coverage may be dependant on the type of accident.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Type of accident: work place, auto, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActIncidentCode"
                }
              }
            },
            {
              "path": "Claim.accidentLocation[x]",
              "short": "Accident Place",
              "definition": "Accident Place.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                },
                {
                  "code": "Address"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.interventionException",
              "short": "Intervention and exception code (Pharma)",
              "definition": "A list of intervention and exception codes which may influence the adjudication of the claim.",
              "requirements": "Coverage may be modified based on exception information provided.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Intervention and exception codes (Pharm)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/intervention"
                }
              }
            },
            {
              "path": "Claim.onset[x]",
              "short": "Illness, injury or treatable condition date",
              "definition": "The start or start and end dates for the treatable condition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.employmentImpacted",
              "short": "Period unable to work",
              "definition": "The start and optional end dates of when the patient was precluded from working due to the treatable condition(s).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.hospitalization",
              "short": "Period in hospital",
              "definition": "The start and optional end dates of when the patient was confined to a treatment center.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Items"
                }
              ],
              "path": "Claim.item",
              "short": "Goods and Services",
              "definition": "First tier of goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.sequence",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.type",
              "short": "Group or type of product or service",
              "definition": "The type of product or service.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Service, Product, Rx Dispense, Rx Compound etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"
                }
              }
            },
            {
              "path": "Claim.item.provider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.diagnosisLinkId",
              "short": "Diagnosis Link",
              "definition": "Diagnosis applicable for this service or product line.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.service",
              "short": "Item Code",
              "definition": "If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "Claim.item.serviced[x]",
              "short": "Date or dates of Service",
              "definition": "The date or dates when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.place",
              "short": "Place of service",
              "definition": "Where the service was provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-place"
                }
              }
            },
            {
              "path": "Claim.item.quantity",
              "short": "Count of Products or Services",
              "definition": "The number of repetitions of a service or product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.unitPrice",
              "short": "Fee, charge or cost per point",
              "definition": "If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.factor",
              "short": "Price scaling factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.points",
              "short": "Difficulty scaling factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.net",
              "short": "Total item cost",
              "definition": "The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.udi",
              "short": "Unique Device Identifier",
              "definition": "List of Unique Device Identifiers associated with this line item.",
              "requirements": "The UDI code and issuer if applicable for the supplied product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The FDA, or other, UDI repository.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/udi"
                }
              }
            },
            {
              "path": "Claim.item.bodySite",
              "short": "Service Location",
              "definition": "Physical service site on the patient (limb, tooth, etc).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the teeth, quadrant, sextant and arch",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/tooth"
                }
              }
            },
            {
              "path": "Claim.item.subSite",
              "short": "Service Sub-location",
              "definition": "A region or surface of the site, eg. limb region or tooth surface(s).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the tooth surface and surface combinations",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/surface"
                }
              }
            },
            {
              "path": "Claim.item.modifier",
              "short": "Service/Product billing modifiers",
              "definition": "Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/claim-modifiers"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Detail"
                }
              ],
              "path": "Claim.item.detail",
              "short": "Additional items",
              "definition": "Second tier of goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.sequence",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.type",
              "short": "Group or type of product or service",
              "definition": "The type of product or service.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Service, Product, Rx Dispense, Rx Compound etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"
                }
              }
            },
            {
              "path": "Claim.item.detail.service",
              "short": "Additional item codes",
              "definition": "If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "Claim.item.detail.quantity",
              "short": "Count of Products or Services",
              "definition": "The number of repetitions of a service or product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.unitPrice",
              "short": "Fee, charge or cost per point",
              "definition": "If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.factor",
              "short": "Price scaling factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.points",
              "short": "Difficulty scaling factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.net",
              "short": "Total additional item cost",
              "definition": "The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.udi",
              "short": "Unique Device Identifier",
              "definition": "List of Unique Device Identifiers associated with this line item.",
              "requirements": "The UDI code and issuer if applicable for the supplied product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The FDA, or other, UDI repository.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/udi"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SubDetail"
                }
              ],
              "path": "Claim.item.detail.subDetail",
              "short": "Additional items",
              "definition": "Third tier of goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.sequence",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.type",
              "short": "Type of product or service",
              "definition": "The type of product or service.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Service, Product, Rx Dispense, Rx Compound etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"
                }
              }
            },
            {
              "path": "Claim.item.detail.subDetail.service",
              "short": "Additional item codes",
              "definition": "The fee for an addittional service or product or charge.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "Claim.item.detail.subDetail.quantity",
              "short": "Count of Products or Services",
              "definition": "The number of repetitions of a service or product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.unitPrice",
              "short": "Fee, charge or cost per point",
              "definition": "The fee for an addittional service or product or charge.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.factor",
              "short": "Price scaling factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.points",
              "short": "Difficulty scaling factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.net",
              "short": "Net additional item cost",
              "definition": "The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.detail.subDetail.udi",
              "short": "Unique Device Identifier",
              "definition": "List of Unique Device Identifiers associated with this line item.",
              "requirements": "The UDI code and issuer if applicable for the supplied product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The FDA, or other, UDI repository.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/udi"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Prosthesis"
                }
              ],
              "path": "Claim.item.prosthesis",
              "short": "Prosthetic details",
              "definition": "The materials and placement date of prior fixed prosthesis.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.prosthesis.initial",
              "short": "Is this the initial service",
              "definition": "Indicates whether this is the initial placement of a fixed prosthesis.",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.prosthesis.priorDate",
              "short": "Initial service Date",
              "definition": "Date of the initial placement.",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.item.prosthesis.priorMaterial",
              "short": "Prosthetic Material",
              "definition": "Material of the prior denture or bridge prosthesis. (Oral).",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Material of the prior denture or bridge prosthesis. (Oral)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/oral-prosthodontic-material"
                }
              }
            },
            {
              "path": "Claim.total",
              "short": "Total claim cost",
              "definition": "The total value of the claim.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.additionalMaterials",
              "short": "Additional materials, documents, etc.",
              "definition": "Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/additionalmaterials"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "MissingTeeth"
                }
              ],
              "path": "Claim.missingTeeth",
              "short": "Only if type = oral",
              "definition": "A list of teeth which would be expected but are not found due to having been previously  extracted or for other reasons.",
              "requirements": "The list of missing teeth may influence the adjudication of services for example with Bridges.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Claim.missingTeeth.tooth",
              "short": "Tooth Code",
              "definition": "The code identifying which tooth is missing.",
              "requirements": "Provides the tooth number of the missing tooth.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The codes for the teeth, subset of OralSites",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/teeth"
                }
              }
            },
            {
              "path": "Claim.missingTeeth.reason",
              "short": "Reason for missing",
              "definition": "Missing reason may be: E-extraction, O-other.",
              "requirements": "Provides the reason for the missing tooth.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Reason codes for the missing teeth",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/missing-tooth-reason"
                }
              }
            },
            {
              "path": "Claim.missingTeeth.extractionDate",
              "short": "Date of Extraction",
              "definition": "The date of the extraction either known from records or patient reported estimate.",
              "requirements": "Some services and adjudications require this information.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ClaimResponse",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ClaimResponse",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ClaimResponse",
        "name": "ClaimResponse",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ClaimResponse Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "cdanetv4",
            "uri": "http://www.cda-adc.ca/en/services/cdanet/",
            "name": "Canadian Dental Association eclaims standard"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ClaimResponse",
              "short": "Remittance resource",
              "definition": "This resource provides the adjudication details from the processing of a Claim resource.",
              "alias": [
                "Remittance Advice"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.billing"
                }
              ]
            },
            {
              "path": "ClaimResponse.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ClaimResponse.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ClaimResponse.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ClaimResponse.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.identifier",
              "short": "Response  number",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.request",
              "short": "Id of resource triggering adjudication",
              "definition": "Original request resource referrence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Claim"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "ClaimResponse.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ClaimResponse.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ClaimResponse.created",
              "short": "Creation date",
              "definition": "The date when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.organization",
              "short": "Insurer",
              "definition": "The Insurer who produced this adjudicated response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.requestProvider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "ClaimResponse.requestOrganization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.outcome",
              "short": "complete | error",
              "definition": "Transaction status: error, complete.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The outcome of the processing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/remittance-outcome"
                }
              }
            },
            {
              "path": "ClaimResponse.disposition",
              "short": "Disposition Message",
              "definition": "A description of the status of the adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.payeeType",
              "short": "Party to be paid any benefits payable",
              "definition": "Party to be reimbursed: Subscriber, provider, other.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code for the party to be reimbursed.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payeetype"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Items"
                }
              ],
              "path": "ClaimResponse.item",
              "short": "Line items",
              "definition": "The first tier service adjudications for submitted services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.sequenceLinkId",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F07"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.noteNumber",
              "short": "List of note numbers which apply",
              "definition": "A list of note references to the notes provided below.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ItemAdjudication"
                }
              ],
              "path": "ClaimResponse.item.adjudication",
              "short": "Adjudication details",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.adjudication.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.adjudication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.adjudication.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ClaimResponse.item.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monetary amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.adjudication.value",
              "short": "Non-monetary value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ItemDetail"
                }
              ],
              "path": "ClaimResponse.item.detail",
              "short": "Detail line items",
              "definition": "The second tier service adjudications for submitted services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.detail.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.detail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.detail.sequenceLinkId",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F07"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "DetailAdjudication"
                }
              ],
              "path": "ClaimResponse.item.detail.adjudication",
              "short": "Detail adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.detail.adjudication.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.detail.adjudication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.detail.adjudication.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.detail.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ClaimResponse.item.detail.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monetary amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.detail.adjudication.value",
              "short": "Non-monetary value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SubDetail"
                }
              ],
              "path": "ClaimResponse.item.detail.subDetail",
              "short": "Subdetail line items",
              "definition": "The third tier service adjudications for submitted services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.sequenceLinkId",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F07"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SubdetailAdjudication"
                }
              ],
              "path": "ClaimResponse.item.detail.subDetail.adjudication",
              "short": "Subdetail adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.adjudication.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.adjudication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.adjudication.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monetary amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.adjudication.value",
              "short": "Non-monetary value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItem"
                }
              ],
              "path": "ClaimResponse.addItem",
              "short": "Insurer added line items",
              "definition": "The first tier service adjudications for payor added services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.addItem.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.addItem.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.addItem.sequenceLinkId",
              "short": "Service instances",
              "definition": "List of input service items which this service line is intended to replace.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.service",
              "short": "Group, Service or Product",
              "definition": "A code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "ClaimResponse.addItem.fee",
              "short": "Professional fee or Product charge",
              "definition": "The fee charged for the professional service or product..",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.noteNumberLinkId",
              "short": "List of note numbers which apply",
              "definition": "A list of note references to the notes provided below.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItemAdjudication"
                }
              ],
              "path": "ClaimResponse.addItem.adjudication",
              "short": "Added items adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.adjudication.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.addItem.adjudication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.addItem.adjudication.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.addItem.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ClaimResponse.addItem.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monetary amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.adjudication.value",
              "short": "Non-monetary value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItemsDetail"
                }
              ],
              "path": "ClaimResponse.addItem.detail",
              "short": "Added items details",
              "definition": "The second tier service adjudications for payor added services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.detail.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.addItem.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.addItem.detail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.addItem.detail.service",
              "short": "Service or Product",
              "definition": "A code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "ClaimResponse.addItem.detail.fee",
              "short": "Professional fee or Product charge",
              "definition": "The fee charged for the professional service or product..",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItemDetailAdjudication"
                }
              ],
              "path": "ClaimResponse.addItem.detail.adjudication",
              "short": "Added items detail adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.detail.adjudication.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.addItem.detail.adjudication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.addItem.detail.adjudication.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.addItem.detail.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ClaimResponse.addItem.detail.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monetary amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.detail.adjudication.value",
              "short": "Non-monetary value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Errors"
                }
              ],
              "path": "ClaimResponse.error",
              "short": "Processing errors",
              "definition": "Mutually exclusive with Services Provided (Item).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.error.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.error.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.error.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.error.sequenceLinkId",
              "short": "Item sequence number",
              "definition": "The sequence number of the line item submitted which contains the error. This value is omitted when the error is elsewhere.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.error.detailSequenceLinkId",
              "short": "Detail sequence number",
              "definition": "The sequence number of the addition within the line item submitted which contains the error. This value is omitted when the error is not related to an Addition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.error.subdetailSequenceLinkId",
              "short": "Subdetail sequence number",
              "definition": "The sequence number of the addition within the line item submitted which contains the error. This value is omitted when the error is not related to an Addition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.error.code",
              "short": "Error code detailing processing issues",
              "definition": "An error code,from a specified code system, which details why the claim could not be adjudicated.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication error codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication-error"
                }
              }
            },
            {
              "path": "ClaimResponse.totalCost",
              "short": "Total Cost of service from the Claim",
              "definition": "The total cost of the services reported.",
              "requirements": "This is a check value that the receiver calculates and returns.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.unallocDeductable",
              "short": "Unallocated deductible",
              "definition": "The amount of deductible applied which was not allocated to any particular service line.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.totalBenefit",
              "short": "Total benefit payable for the Claim",
              "definition": "Total amount of benefit payable (Equal to sum of the Benefit amounts from all detail lines and additions less the Unallocated Deductible).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.paymentAdjustment",
              "short": "Payment adjustment for non-Claim issues",
              "definition": "Adjustment to the payment of this transaction which is not related to adjudication of this transaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.paymentAdjustmentReason",
              "short": "Reason for Payment adjustment",
              "definition": "Reason for the payment adjustment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Payment Adjustment reason codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payment-adjustment-reason"
                }
              }
            },
            {
              "path": "ClaimResponse.paymentDate",
              "short": "Expected data of Payment",
              "definition": "Estimated payment data.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.paymentAmount",
              "short": "Payment amount",
              "definition": "Payable less any payment adjustment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.paymentRef",
              "short": "Payment identifier",
              "definition": "Payment identifier.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.reserved",
              "short": "Funds reserved status",
              "definition": "Status of funds reservation (For provider, for Patient, None).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "For whom funds are to be reserved: (Patient, Provider, None).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/fundsreserve"
                }
              }
            },
            {
              "path": "ClaimResponse.form",
              "short": "Printed Form Identifier",
              "definition": "The form to be used for printing the content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The forms codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/forms"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G42"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Notes"
                }
              ],
              "path": "ClaimResponse.note",
              "short": "Processing notes",
              "definition": "Note text.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.note.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.note.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.note.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.note.number",
              "short": "Note Number for this note",
              "definition": "An integer associated with each note which may be referred to from each service line item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.note.type",
              "short": "display | print | printoper",
              "definition": "The note purpose: Print/Display.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The presentation types of notes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/note-type"
                }
              }
            },
            {
              "path": "ClaimResponse.note.text",
              "short": "Note explanatory text",
              "definition": "The note text.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G32"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Coverage"
                }
              ],
              "path": "ClaimResponse.coverage",
              "short": "Insurance or medical plan",
              "definition": "Financial instrument by which payment information for health care.",
              "requirements": "Health care programs and insurers are significant payors of health service costs.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Coverage"
                }
              ]
            },
            {
              "path": "ClaimResponse.coverage.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.coverage.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClaimResponse.coverage.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClaimResponse.coverage.sequence",
              "short": "Service instance identifier",
              "definition": "A service line item.",
              "requirements": "To maintain order of the coverages.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.coverage.focal",
              "short": "Is the focal Coverage",
              "definition": "The instance number of the Coverage which is the focus for adjudication. The Coverage against which the claim is to be adjudicated.",
              "requirements": "To identify which coverage is being adjudicated.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.coverage.coverage",
              "short": "Insurance information",
              "definition": "Reference to the program or plan identification, underwriter or payor.",
              "requirements": "Need to identify the issuer to target for processing and for coordination of benefit processing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Coverage"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.coverage.businessArrangement",
              "short": "Business agreement",
              "definition": "The contract number of a business agreement which describes the terms and conditions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.coverage.relationship",
              "short": "Patient relationship to subscriber",
              "definition": "The relationship of the patient to the subscriber.",
              "requirements": "To determine the relationship between the patient and the subscriber.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the relationship of the patient to the subscriber.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/relationship"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C03"
                }
              ]
            },
            {
              "path": "ClaimResponse.coverage.preAuthRef",
              "short": "Pre-Authorization/Determination Reference",
              "definition": "A list of references from the Insurer to which these services pertain.",
              "requirements": "To provide any pre-determination or prior authorization reference.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F03"
                }
              ]
            },
            {
              "path": "ClaimResponse.coverage.claimResponse",
              "short": "Adjudication results",
              "definition": "The Coverages adjudication details.",
              "requirements": "Used by downstream payers to determine what balance remains and the net payable.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "EOB"
                }
              ]
            },
            {
              "path": "ClaimResponse.coverage.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ClaimResponse",
              "short": "Remittance resource",
              "definition": "This resource provides the adjudication details from the processing of a Claim resource.",
              "alias": [
                "Remittance Advice"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.billing"
                }
              ]
            },
            {
              "path": "ClaimResponse.identifier",
              "short": "Response  number",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.request",
              "short": "Id of resource triggering adjudication",
              "definition": "Original request resource referrence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Claim"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "ClaimResponse.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ClaimResponse.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ClaimResponse.created",
              "short": "Creation date",
              "definition": "The date when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.organization",
              "short": "Insurer",
              "definition": "The Insurer who produced this adjudicated response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.requestProvider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "ClaimResponse.requestOrganization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.outcome",
              "short": "complete | error",
              "definition": "Transaction status: error, complete.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The outcome of the processing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/remittance-outcome"
                }
              }
            },
            {
              "path": "ClaimResponse.disposition",
              "short": "Disposition Message",
              "definition": "A description of the status of the adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.payeeType",
              "short": "Party to be paid any benefits payable",
              "definition": "Party to be reimbursed: Subscriber, provider, other.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code for the party to be reimbursed.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payeetype"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Items"
                }
              ],
              "path": "ClaimResponse.item",
              "short": "Line items",
              "definition": "The first tier service adjudications for submitted services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.sequenceLinkId",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F07"
                }
              ]
            },
            {
              "path": "ClaimResponse.item.noteNumber",
              "short": "List of note numbers which apply",
              "definition": "A list of note references to the notes provided below.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ItemAdjudication"
                }
              ],
              "path": "ClaimResponse.item.adjudication",
              "short": "Adjudication details",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ClaimResponse.item.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monetary amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.adjudication.value",
              "short": "Non-monetary value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ItemDetail"
                }
              ],
              "path": "ClaimResponse.item.detail",
              "short": "Detail line items",
              "definition": "The second tier service adjudications for submitted services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.detail.sequenceLinkId",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F07"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "DetailAdjudication"
                }
              ],
              "path": "ClaimResponse.item.detail.adjudication",
              "short": "Detail adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.detail.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ClaimResponse.item.detail.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monetary amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.detail.adjudication.value",
              "short": "Non-monetary value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SubDetail"
                }
              ],
              "path": "ClaimResponse.item.detail.subDetail",
              "short": "Subdetail line items",
              "definition": "The third tier service adjudications for submitted services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.sequenceLinkId",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F07"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SubdetailAdjudication"
                }
              ],
              "path": "ClaimResponse.item.detail.subDetail.adjudication",
              "short": "Subdetail adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monetary amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.item.detail.subDetail.adjudication.value",
              "short": "Non-monetary value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItem"
                }
              ],
              "path": "ClaimResponse.addItem",
              "short": "Insurer added line items",
              "definition": "The first tier service adjudications for payor added services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.sequenceLinkId",
              "short": "Service instances",
              "definition": "List of input service items which this service line is intended to replace.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.service",
              "short": "Group, Service or Product",
              "definition": "A code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "ClaimResponse.addItem.fee",
              "short": "Professional fee or Product charge",
              "definition": "The fee charged for the professional service or product..",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.noteNumberLinkId",
              "short": "List of note numbers which apply",
              "definition": "A list of note references to the notes provided below.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItemAdjudication"
                }
              ],
              "path": "ClaimResponse.addItem.adjudication",
              "short": "Added items adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ClaimResponse.addItem.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monetary amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.adjudication.value",
              "short": "Non-monetary value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItemsDetail"
                }
              ],
              "path": "ClaimResponse.addItem.detail",
              "short": "Added items details",
              "definition": "The second tier service adjudications for payor added services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.detail.service",
              "short": "Service or Product",
              "definition": "A code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "ClaimResponse.addItem.detail.fee",
              "short": "Professional fee or Product charge",
              "definition": "The fee charged for the professional service or product..",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItemDetailAdjudication"
                }
              ],
              "path": "ClaimResponse.addItem.detail.adjudication",
              "short": "Added items detail adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.detail.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ClaimResponse.addItem.detail.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monetary amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.addItem.detail.adjudication.value",
              "short": "Non-monetary value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Errors"
                }
              ],
              "path": "ClaimResponse.error",
              "short": "Processing errors",
              "definition": "Mutually exclusive with Services Provided (Item).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.error.sequenceLinkId",
              "short": "Item sequence number",
              "definition": "The sequence number of the line item submitted which contains the error. This value is omitted when the error is elsewhere.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.error.detailSequenceLinkId",
              "short": "Detail sequence number",
              "definition": "The sequence number of the addition within the line item submitted which contains the error. This value is omitted when the error is not related to an Addition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.error.subdetailSequenceLinkId",
              "short": "Subdetail sequence number",
              "definition": "The sequence number of the addition within the line item submitted which contains the error. This value is omitted when the error is not related to an Addition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.error.code",
              "short": "Error code detailing processing issues",
              "definition": "An error code,from a specified code system, which details why the claim could not be adjudicated.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication error codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication-error"
                }
              }
            },
            {
              "path": "ClaimResponse.totalCost",
              "short": "Total Cost of service from the Claim",
              "definition": "The total cost of the services reported.",
              "requirements": "This is a check value that the receiver calculates and returns.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.unallocDeductable",
              "short": "Unallocated deductible",
              "definition": "The amount of deductible applied which was not allocated to any particular service line.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.totalBenefit",
              "short": "Total benefit payable for the Claim",
              "definition": "Total amount of benefit payable (Equal to sum of the Benefit amounts from all detail lines and additions less the Unallocated Deductible).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.paymentAdjustment",
              "short": "Payment adjustment for non-Claim issues",
              "definition": "Adjustment to the payment of this transaction which is not related to adjudication of this transaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.paymentAdjustmentReason",
              "short": "Reason for Payment adjustment",
              "definition": "Reason for the payment adjustment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Payment Adjustment reason codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payment-adjustment-reason"
                }
              }
            },
            {
              "path": "ClaimResponse.paymentDate",
              "short": "Expected data of Payment",
              "definition": "Estimated payment data.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.paymentAmount",
              "short": "Payment amount",
              "definition": "Payable less any payment adjustment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.paymentRef",
              "short": "Payment identifier",
              "definition": "Payment identifier.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.reserved",
              "short": "Funds reserved status",
              "definition": "Status of funds reservation (For provider, for Patient, None).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "For whom funds are to be reserved: (Patient, Provider, None).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/fundsreserve"
                }
              }
            },
            {
              "path": "ClaimResponse.form",
              "short": "Printed Form Identifier",
              "definition": "The form to be used for printing the content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The forms codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/forms"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G42"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Notes"
                }
              ],
              "path": "ClaimResponse.note",
              "short": "Processing notes",
              "definition": "Note text.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.note.number",
              "short": "Note Number for this note",
              "definition": "An integer associated with each note which may be referred to from each service line item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.note.type",
              "short": "display | print | printoper",
              "definition": "The note purpose: Print/Display.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The presentation types of notes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/note-type"
                }
              }
            },
            {
              "path": "ClaimResponse.note.text",
              "short": "Note explanatory text",
              "definition": "The note text.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G32"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Coverage"
                }
              ],
              "path": "ClaimResponse.coverage",
              "short": "Insurance or medical plan",
              "definition": "Financial instrument by which payment information for health care.",
              "requirements": "Health care programs and insurers are significant payors of health service costs.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Coverage"
                }
              ]
            },
            {
              "path": "ClaimResponse.coverage.sequence",
              "short": "Service instance identifier",
              "definition": "A service line item.",
              "requirements": "To maintain order of the coverages.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.coverage.focal",
              "short": "Is the focal Coverage",
              "definition": "The instance number of the Coverage which is the focus for adjudication. The Coverage against which the claim is to be adjudicated.",
              "requirements": "To identify which coverage is being adjudicated.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.coverage.coverage",
              "short": "Insurance information",
              "definition": "Reference to the program or plan identification, underwriter or payor.",
              "requirements": "Need to identify the issuer to target for processing and for coordination of benefit processing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Coverage"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.coverage.businessArrangement",
              "short": "Business agreement",
              "definition": "The contract number of a business agreement which describes the terms and conditions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClaimResponse.coverage.relationship",
              "short": "Patient relationship to subscriber",
              "definition": "The relationship of the patient to the subscriber.",
              "requirements": "To determine the relationship between the patient and the subscriber.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the relationship of the patient to the subscriber.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/relationship"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C03"
                }
              ]
            },
            {
              "path": "ClaimResponse.coverage.preAuthRef",
              "short": "Pre-Authorization/Determination Reference",
              "definition": "A list of references from the Insurer to which these services pertain.",
              "requirements": "To provide any pre-determination or prior authorization reference.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F03"
                }
              ]
            },
            {
              "path": "ClaimResponse.coverage.claimResponse",
              "short": "Adjudication results",
              "definition": "The Coverages adjudication details.",
              "requirements": "Used by downstream payers to determine what balance remains and the net payable.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "EOB"
                }
              ]
            },
            {
              "path": "ClaimResponse.coverage.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ClinicalImpression",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ClinicalImpression",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ClinicalImpression",
        "name": "ClinicalImpression",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ClinicalImpression Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ClinicalImpression",
              "short": "A clinical assessment performed when planning treatments and management strategies for a patient",
              "definition": "A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter,  but this varies greatly depending on the clinical workflow. This resource is called \"ClinicalImpression\" rather than \"ClinicalAssessment\" to avoid confusion with the recording of assessment tools such as Apgar score.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Partial mapping for problem evaluation"
                },
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "ClinicalImpression.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClinicalImpression.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClinicalImpression.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ClinicalImpression.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ClinicalImpression.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ClinicalImpression.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClinicalImpression.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClinicalImpression.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClinicalImpression.patient",
              "short": "The patient being assessed",
              "definition": "The patient being assessed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "ClinicalImpression.assessor",
              "short": "The clinician performing the assessment",
              "definition": "The clinician performing the assessment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ROL-4"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "ClinicalImpression.status",
              "short": "in-progress | completed | entered-in-error",
              "definition": "Identifies the workflow status of the assessment.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The workflow state of a clinical impression.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/clinical-impression-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-14"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ClinicalImpression.date",
              "short": "When the assessment occurred",
              "definition": "The point in time at which the assessment was concluded (not when it was recorded).",
              "comments": "This SHOULD be accurate to at least the minute, though some assessments only have a known date.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-2"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "ClinicalImpression.description",
              "short": "Why/how the assessment was performed",
              "definition": "A summary of the context and/or cause of the assessment - why / where was it peformed, and what patient events/sstatus prompted it.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClinicalImpression.previous",
              "short": "Reference to last assessment",
              "definition": "A reference to the last assesment that was conducted bon this patient. Assessments are often/usually ongoing in nature; a care provider (practitioner or team) will make new assessments on an ongoing basis as new data arises or the patient's conditions changes.",
              "comments": "It is always likely that multiple previous assessments exist for a patient. The point of quoting a previous assessment is that this assessment is relative to it (see resolved).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ClinicalImpression"
                  ]
                }
              ]
            },
            {
              "path": "ClinicalImpression.problem",
              "short": "General assessment of patient state",
              "definition": "This a list of the general problems/conditions for a patient.",
              "comments": "e.g. The patient is a pregnant, and cardiac congestive failure, ‎Adenocarcinoma, and is allergic to penicillin.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-3 / IAM-7"
                }
              ]
            },
            {
              "path": "ClinicalImpression.trigger[x]",
              "short": "Request or event that necessitated this assessment",
              "definition": "The request or event that necessitated this assessment. This may be a diagnosis, a Care Plan, a Request Referral, or some other resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Clinical Findings that may cause an clinical evaluation.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/clinical-findings"
                }
              }
            },
            {
              "path": "ClinicalImpression.investigations",
              "short": "One or more sets of investigations (signs, symptions, etc.)",
              "definition": "One or more sets of investigations (signs, symptions, etc.). The actual grouping of investigations vary greatly depending on the type and context of the assessment. These investigations may include data generated during the assessment process, or data previously generated and recorded that is pertinent to the outcomes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ClinicalImpression.investigations.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClinicalImpression.investigations.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClinicalImpression.investigations.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClinicalImpression.investigations.code",
              "short": "A name/code for the set",
              "definition": "A name/code for the group (\"set\") of investigations. Typically, this will be something like \"signs\", \"symptoms\", \"clinical\", \"diagnostic\", but the list is not constrained, and others such groups such as (exposure|family|travel|nutitirional) history may be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "A name/code for a set of investigations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/investigation-sets"
                }
              }
            },
            {
              "path": "ClinicalImpression.investigations.item",
              "short": "Record of a specific investigation",
              "definition": "A record of a specific investigation that was undertaken.",
              "comments": "Most investigations are observations of one kind of or another but some other specific types of data collection resources can also be used.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-21"
                }
              ]
            },
            {
              "path": "ClinicalImpression.protocol",
              "short": "Clinical Protocol followed",
              "definition": "Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ClinicalImpression.summary",
              "short": "Summary of the assessment",
              "definition": "A text summary of the investigations and the diagnosis.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX"
                }
              ]
            },
            {
              "path": "ClinicalImpression.finding",
              "short": "Possible or likely findings and diagnoses",
              "definition": "Specific findings or diagnoses that was considered likely or relevant to ongoing treatment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ClinicalImpression.finding.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClinicalImpression.finding.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClinicalImpression.finding.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClinicalImpression.finding.item",
              "short": "Specific text or code for finding",
              "definition": "Specific text of code for finding or diagnosis.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Identification of the Condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX"
                }
              ]
            },
            {
              "path": "ClinicalImpression.finding.cause",
              "short": "Which investigations support finding",
              "definition": "Which investigations support finding or diagnosis.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ClinicalImpression.resolved",
              "short": "Diagnoses/conditions resolved since previous assessment",
              "definition": "Diagnoses/conditions resolved since the last assessment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Identification of the Condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              }
            },
            {
              "path": "ClinicalImpression.ruledOut",
              "short": "Diagnosis considered not possible",
              "definition": "Diagnosis considered not possible.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ClinicalImpression.ruledOut.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClinicalImpression.ruledOut.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ClinicalImpression.ruledOut.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ClinicalImpression.ruledOut.item",
              "short": "Specific text of code for diagnosis",
              "definition": "Specific text of code for diagnosis.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Identification of the Condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              }
            },
            {
              "path": "ClinicalImpression.ruledOut.reason",
              "short": "Grounds for elimination",
              "definition": "Grounds for elimination.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ClinicalImpression.prognosis",
              "short": "Estimate of likely outcome",
              "definition": "Estimate of likely outcome.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-22"
                }
              ]
            },
            {
              "path": "ClinicalImpression.plan",
              "short": "Plan of action after assessment",
              "definition": "Plan of action after assessment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/CarePlan"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Appointment"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DeviceUseRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Order"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcessRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SupplyRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                  ]
                }
              ]
            },
            {
              "path": "ClinicalImpression.action",
              "short": "Actions taken during assessment",
              "definition": "Actions taken during assessment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Procedure"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SupplyRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Appointment"
                  ]
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ClinicalImpression",
              "short": "A clinical assessment performed when planning treatments and management strategies for a patient",
              "definition": "A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter,  but this varies greatly depending on the clinical workflow. This resource is called \"ClinicalImpression\" rather than \"ClinicalAssessment\" to avoid confusion with the recording of assessment tools such as Apgar score.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Partial mapping for problem evaluation"
                },
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "ClinicalImpression.patient",
              "short": "The patient being assessed",
              "definition": "The patient being assessed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "ClinicalImpression.assessor",
              "short": "The clinician performing the assessment",
              "definition": "The clinician performing the assessment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ROL-4"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "ClinicalImpression.status",
              "short": "in-progress | completed | entered-in-error",
              "definition": "Identifies the workflow status of the assessment.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The workflow state of a clinical impression.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/clinical-impression-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-14"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ClinicalImpression.date",
              "short": "When the assessment occurred",
              "definition": "The point in time at which the assessment was concluded (not when it was recorded).",
              "comments": "This SHOULD be accurate to at least the minute, though some assessments only have a known date.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-2"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "ClinicalImpression.description",
              "short": "Why/how the assessment was performed",
              "definition": "A summary of the context and/or cause of the assessment - why / where was it peformed, and what patient events/sstatus prompted it.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ClinicalImpression.previous",
              "short": "Reference to last assessment",
              "definition": "A reference to the last assesment that was conducted bon this patient. Assessments are often/usually ongoing in nature; a care provider (practitioner or team) will make new assessments on an ongoing basis as new data arises or the patient's conditions changes.",
              "comments": "It is always likely that multiple previous assessments exist for a patient. The point of quoting a previous assessment is that this assessment is relative to it (see resolved).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ClinicalImpression"
                  ]
                }
              ]
            },
            {
              "path": "ClinicalImpression.problem",
              "short": "General assessment of patient state",
              "definition": "This a list of the general problems/conditions for a patient.",
              "comments": "e.g. The patient is a pregnant, and cardiac congestive failure, ‎Adenocarcinoma, and is allergic to penicillin.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-3 / IAM-7"
                }
              ]
            },
            {
              "path": "ClinicalImpression.trigger[x]",
              "short": "Request or event that necessitated this assessment",
              "definition": "The request or event that necessitated this assessment. This may be a diagnosis, a Care Plan, a Request Referral, or some other resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Clinical Findings that may cause an clinical evaluation.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/clinical-findings"
                }
              }
            },
            {
              "path": "ClinicalImpression.investigations",
              "short": "One or more sets of investigations (signs, symptions, etc.)",
              "definition": "One or more sets of investigations (signs, symptions, etc.). The actual grouping of investigations vary greatly depending on the type and context of the assessment. These investigations may include data generated during the assessment process, or data previously generated and recorded that is pertinent to the outcomes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ClinicalImpression.investigations.code",
              "short": "A name/code for the set",
              "definition": "A name/code for the group (\"set\") of investigations. Typically, this will be something like \"signs\", \"symptoms\", \"clinical\", \"diagnostic\", but the list is not constrained, and others such groups such as (exposure|family|travel|nutitirional) history may be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "A name/code for a set of investigations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/investigation-sets"
                }
              }
            },
            {
              "path": "ClinicalImpression.investigations.item",
              "short": "Record of a specific investigation",
              "definition": "A record of a specific investigation that was undertaken.",
              "comments": "Most investigations are observations of one kind of or another but some other specific types of data collection resources can also be used.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-21"
                }
              ]
            },
            {
              "path": "ClinicalImpression.protocol",
              "short": "Clinical Protocol followed",
              "definition": "Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ClinicalImpression.summary",
              "short": "Summary of the assessment",
              "definition": "A text summary of the investigations and the diagnosis.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX"
                }
              ]
            },
            {
              "path": "ClinicalImpression.finding",
              "short": "Possible or likely findings and diagnoses",
              "definition": "Specific findings or diagnoses that was considered likely or relevant to ongoing treatment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ClinicalImpression.finding.item",
              "short": "Specific text or code for finding",
              "definition": "Specific text of code for finding or diagnosis.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Identification of the Condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX"
                }
              ]
            },
            {
              "path": "ClinicalImpression.finding.cause",
              "short": "Which investigations support finding",
              "definition": "Which investigations support finding or diagnosis.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ClinicalImpression.resolved",
              "short": "Diagnoses/conditions resolved since previous assessment",
              "definition": "Diagnoses/conditions resolved since the last assessment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Identification of the Condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              }
            },
            {
              "path": "ClinicalImpression.ruledOut",
              "short": "Diagnosis considered not possible",
              "definition": "Diagnosis considered not possible.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ClinicalImpression.ruledOut.item",
              "short": "Specific text of code for diagnosis",
              "definition": "Specific text of code for diagnosis.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Identification of the Condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              }
            },
            {
              "path": "ClinicalImpression.ruledOut.reason",
              "short": "Grounds for elimination",
              "definition": "Grounds for elimination.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ClinicalImpression.prognosis",
              "short": "Estimate of likely outcome",
              "definition": "Estimate of likely outcome.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-22"
                }
              ]
            },
            {
              "path": "ClinicalImpression.plan",
              "short": "Plan of action after assessment",
              "definition": "Plan of action after assessment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/CarePlan"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Appointment"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DeviceUseRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Order"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcessRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SupplyRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                  ]
                }
              ]
            },
            {
              "path": "ClinicalImpression.action",
              "short": "Actions taken during assessment",
              "definition": "Actions taken during assessment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Procedure"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SupplyRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Appointment"
                  ]
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Communication",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Communication",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Communication",
        "name": "Communication",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Communication Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Communication",
              "short": "A record of information transmitted from a sender to a receiver",
              "definition": "An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency was notified about a reportable condition.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "workflow.encounter"
                }
              ]
            },
            {
              "path": "Communication.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Communication.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Communication.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Communication.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Communication.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Communication.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Communication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Communication.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Communication.identifier",
              "short": "Unique identifier",
              "definition": "Identifiers associated with this Communication that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Communication.category",
              "short": "Message category",
              "definition": "The type of message conveyed such as alert, notification, reminder, instruction, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for general categories of communications such as alerts, instruction, etc."
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Communication.sender",
              "short": "Message sender",
              "definition": "The entity (e.g. person, organization, clinical information system, or device) which was the source of the communication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Communication.recipient",
              "short": "Message recipient",
              "definition": "The entity (e.g. person, organization, clinical information system, or device) which was the target of the communication. If receipts need to be tracked by individual, a separate resource instance will need to be created for each recipient.  Multiple recipient communications are intended where either a receipt(s) is not tracked (e.g. a mass mail-out) or is captured in aggregate (all emails confirmed received by a particular time).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Communication.payload",
              "short": "Message payload",
              "definition": "Text, attachment(s), or resource(s) that was communicated to the recipient.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Communication.payload.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Communication.payload.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Communication.payload.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Communication.payload.content[x]",
              "short": "Message part content",
              "definition": "A communicated content (or for multi-part communications, one portion of the communication).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                },
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Communication.medium",
              "short": "A channel of communication",
              "definition": "A channel that was used for this communication (e.g. email, fax).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for communication mediums such as phone, fax, email, in person, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ParticipationMode"
                }
              }
            },
            {
              "path": "Communication.status",
              "short": "in-progress | completed | suspended | rejected | failed",
              "definition": "The status of the transmission.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the communication.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/communication-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Communication.encounter",
              "short": "Encounter leading to message",
              "definition": "The encounter within which the communication was sent.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Communication.sent",
              "short": "When sent",
              "definition": "The time when this communication was sent.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "Communication.received",
              "short": "When received",
              "definition": "The time when this communication arrived at the destination.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Communication.reason",
              "short": "Indication for message",
              "definition": "The reason or justification for the communication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for describing reasons for the occurrence of a communication."
              }
            },
            {
              "path": "Communication.subject",
              "short": "Focus of message",
              "definition": "The patient who was the focus of this communication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Communication.requestDetail",
              "short": "CommunicationRequest producing this message",
              "definition": "The communication request that was responsible for producing this communication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Communication",
              "short": "A record of information transmitted from a sender to a receiver",
              "definition": "An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency was notified about a reportable condition.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "workflow.encounter"
                }
              ]
            },
            {
              "path": "Communication.identifier",
              "short": "Unique identifier",
              "definition": "Identifiers associated with this Communication that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Communication.category",
              "short": "Message category",
              "definition": "The type of message conveyed such as alert, notification, reminder, instruction, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for general categories of communications such as alerts, instruction, etc."
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Communication.sender",
              "short": "Message sender",
              "definition": "The entity (e.g. person, organization, clinical information system, or device) which was the source of the communication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Communication.recipient",
              "short": "Message recipient",
              "definition": "The entity (e.g. person, organization, clinical information system, or device) which was the target of the communication. If receipts need to be tracked by individual, a separate resource instance will need to be created for each recipient.  Multiple recipient communications are intended where either a receipt(s) is not tracked (e.g. a mass mail-out) or is captured in aggregate (all emails confirmed received by a particular time).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Communication.payload",
              "short": "Message payload",
              "definition": "Text, attachment(s), or resource(s) that was communicated to the recipient.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Communication.payload.content[x]",
              "short": "Message part content",
              "definition": "A communicated content (or for multi-part communications, one portion of the communication).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                },
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Communication.medium",
              "short": "A channel of communication",
              "definition": "A channel that was used for this communication (e.g. email, fax).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for communication mediums such as phone, fax, email, in person, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ParticipationMode"
                }
              }
            },
            {
              "path": "Communication.status",
              "short": "in-progress | completed | suspended | rejected | failed",
              "definition": "The status of the transmission.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the communication.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/communication-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Communication.encounter",
              "short": "Encounter leading to message",
              "definition": "The encounter within which the communication was sent.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Communication.sent",
              "short": "When sent",
              "definition": "The time when this communication was sent.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "Communication.received",
              "short": "When received",
              "definition": "The time when this communication arrived at the destination.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Communication.reason",
              "short": "Indication for message",
              "definition": "The reason or justification for the communication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for describing reasons for the occurrence of a communication."
              }
            },
            {
              "path": "Communication.subject",
              "short": "Focus of message",
              "definition": "The patient who was the focus of this communication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Communication.requestDetail",
              "short": "CommunicationRequest producing this message",
              "definition": "The communication request that was responsible for producing this communication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "CommunicationRequest",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
        "name": "CommunicationRequest",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for CommunicationRequest Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "CommunicationRequest",
              "short": "A request for information to be sent to a receiver",
              "definition": "A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "CommunicationRequest.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "CommunicationRequest.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "CommunicationRequest.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "CommunicationRequest.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "CommunicationRequest.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "CommunicationRequest.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "CommunicationRequest.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "CommunicationRequest.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "CommunicationRequest.identifier",
              "short": "Unique identifier",
              "definition": "A unique ID of this request for reference purposes. It must be provided if user wants it returned as part of any output, otherwise it will be autogenerated, if needed, by CDS system. Does not need to be the actual ID of the source system.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "CommunicationRequest.category",
              "short": "Message category",
              "definition": "The type of message to be sent such as alert, notification, reminder, instruction, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for general categories of communications such as alerts, instruction, etc."
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "CommunicationRequest.sender",
              "short": "Message sender",
              "definition": "The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "CommunicationRequest.recipient",
              "short": "Message recipient",
              "definition": "The entity (e.g. person, organization, clinical information system, or device) which is the intended target of the communication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "CommunicationRequest.payload",
              "short": "Message payload",
              "definition": "Text, attachment(s), or resource(s) to be communicated to the recipient.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "CommunicationRequest.payload.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "CommunicationRequest.payload.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "CommunicationRequest.payload.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "CommunicationRequest.payload.content[x]",
              "short": "Message part content",
              "definition": "The communicated content (or for multi-part communications, one portion of the communication).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                },
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "CommunicationRequest.medium",
              "short": "A channel of communication",
              "definition": "A channel that was used for this communication (e.g. email, fax).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for communication mediums such as phone, fax, email, in person, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ParticipationMode"
                }
              }
            },
            {
              "path": "CommunicationRequest.requester",
              "short": "An individual who requested a communication",
              "definition": "The responsible person who authorizes this order, e.g. physician. This may be different than the author of the order statement, e.g. clerk, who may have entered the statement into the order entry application.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.cause"
                }
              ]
            },
            {
              "path": "CommunicationRequest.status",
              "short": "proposed | planned | requested | received | accepted | in-progress | completed | suspended | rejected | failed",
              "definition": "The status of the proposal or order.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the communication.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/communication-request-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "CommunicationRequest.encounter",
              "short": "Encounter leading to message",
              "definition": "The encounter within which the communication request was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "CommunicationRequest.scheduled[x]",
              "short": "When scheduled",
              "definition": "The time when this communication is to occur.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "CommunicationRequest.reason",
              "short": "Indication for message",
              "definition": "The reason or justification for the communication request.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for describing reasons for the occurrence of a communication."
              }
            },
            {
              "path": "CommunicationRequest.requestedOn",
              "short": "When ordered or proposed",
              "definition": "The time when the request was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "CommunicationRequest.subject",
              "short": "Focus of message",
              "definition": "The patient who is the focus of this communication request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "CommunicationRequest.priority",
              "short": "Message urgency",
              "definition": "Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes indicating the relative importance of a communication request.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-priority"
                }
              }
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "CommunicationRequest",
              "short": "A request for information to be sent to a receiver",
              "definition": "A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "CommunicationRequest.identifier",
              "short": "Unique identifier",
              "definition": "A unique ID of this request for reference purposes. It must be provided if user wants it returned as part of any output, otherwise it will be autogenerated, if needed, by CDS system. Does not need to be the actual ID of the source system.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "CommunicationRequest.category",
              "short": "Message category",
              "definition": "The type of message to be sent such as alert, notification, reminder, instruction, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for general categories of communications such as alerts, instruction, etc."
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "CommunicationRequest.sender",
              "short": "Message sender",
              "definition": "The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "CommunicationRequest.recipient",
              "short": "Message recipient",
              "definition": "The entity (e.g. person, organization, clinical information system, or device) which is the intended target of the communication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "CommunicationRequest.payload",
              "short": "Message payload",
              "definition": "Text, attachment(s), or resource(s) to be communicated to the recipient.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "CommunicationRequest.payload.content[x]",
              "short": "Message part content",
              "definition": "The communicated content (or for multi-part communications, one portion of the communication).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                },
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "CommunicationRequest.medium",
              "short": "A channel of communication",
              "definition": "A channel that was used for this communication (e.g. email, fax).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for communication mediums such as phone, fax, email, in person, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ParticipationMode"
                }
              }
            },
            {
              "path": "CommunicationRequest.requester",
              "short": "An individual who requested a communication",
              "definition": "The responsible person who authorizes this order, e.g. physician. This may be different than the author of the order statement, e.g. clerk, who may have entered the statement into the order entry application.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.cause"
                }
              ]
            },
            {
              "path": "CommunicationRequest.status",
              "short": "proposed | planned | requested | received | accepted | in-progress | completed | suspended | rejected | failed",
              "definition": "The status of the proposal or order.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the communication.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/communication-request-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "CommunicationRequest.encounter",
              "short": "Encounter leading to message",
              "definition": "The encounter within which the communication request was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "CommunicationRequest.scheduled[x]",
              "short": "When scheduled",
              "definition": "The time when this communication is to occur.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "CommunicationRequest.reason",
              "short": "Indication for message",
              "definition": "The reason or justification for the communication request.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for describing reasons for the occurrence of a communication."
              }
            },
            {
              "path": "CommunicationRequest.requestedOn",
              "short": "When ordered or proposed",
              "definition": "The time when the request was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "CommunicationRequest.subject",
              "short": "Focus of message",
              "definition": "The patient who is the focus of this communication request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "CommunicationRequest.priority",
              "short": "Message urgency",
              "definition": "Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes indicating the relative importance of a communication request.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-priority"
                }
              }
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/Composition-document",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "Composition-document",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/Composition-document",
        "name": "Generate a Document",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "A client can ask a server to generate a fully bundled document from a composition resource. The server takes the composition resource, locates all the referenced resources and other additional resources as configured or requested and either returns a full document bundle, or returns an error. Note that since this is a search operation, the document bundle is  wrapped inside the search bundle.  If some of the resources are located on other servers, it is at the discretion of the  server whether to retrieve them or return an error. If the correct version of the document  that would be generated already exists, then the server can return the existing one.",
        "code": "document",
        "notes": "Note: this operation definition does not resolve the question how document signatures are created. This is an open issue during the period of trial use, and feedback is requested regarding this question",
        "system": false,
        "type": [
          "Composition"
        ],
        "instance": false,
        "parameter": [
          {
            "name": "persist",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "Whether to store the document at the binary end-point (/Binary) or not once it is generated. Value = true or false (default is for the server to decide)",
            "type": "boolean"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Composition",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Composition",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Composition",
        "name": "Composition",
        "status": "draft",
        "publisher": "Health Level Seven International (Structured Documents)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/structure/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Composition Resource",
        "requirements": "To support documents, and also to capture the EN13606 notion of an attested commit to the patient EHR, and to allow a set of disparate resources at the information/engineering level to be gathered into a clinical statement.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "cda",
            "uri": "http://hl7.org/v3/cda",
            "name": "CDA (R2)"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "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.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument"
                },
                {
                  "identity": "rim",
                  "map": "Document[classCode=\"DOC\" and moodCode=\"EVN\" and isNormalAct()]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.documents"
                }
              ]
            },
            {
              "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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Composition.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "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 may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Composition.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Composition.identifier",
              "short": "Logical identifier of composition (version-independent)",
              "definition": "Logical identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time.",
              "comments": "See discussion in resource definition for how these relate.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".setId"
                },
                {
                  "identity": "rim",
                  "map": "Document.id / Document.setId"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Composition.date",
              "short": "Composition editing time",
              "definition": "The composition editing time, when the composition was last logically changed by the author.",
              "comments": "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.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime[type=\"TS\"]"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Type of a composition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/doc-typecodes"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".code"
                },
                {
                  "identity": "rim",
                  "map": "./code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Composition.class",
              "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.",
              "comments": "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": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "High-level kind of a clinical document at a macro level.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/doc-classcodes"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Composition.title",
              "short": "Human Readable name/title",
              "definition": "Official human-readable label for the composition.",
              "comments": "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".title"
                },
                {
                  "identity": "rim",
                  "map": "./title"
                }
              ]
            },
            {
              "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.",
              "comments": "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 \"withdrawn\" 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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The workflow/clinical status of the composition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/composition-status"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "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": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Composition.confidentiality",
              "short": "As defined by affinity domain",
              "definition": "The code specifying the level of confidentiality of the Composition.",
              "comments": "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).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Codes specifying the level of confidentiality of the composition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-Confidentiality"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".confidentialityCode"
                },
                {
                  "identity": "rim",
                  "map": ".confidentialityCode"
                }
              ]
            },
            {
              "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).",
              "comments": "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": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".recordTarget"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".author.assignedAuthor"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "Composition.attester",
              "short": "Attests to accuracy of composition",
              "definition": "A participant who has attested to the accuracy of the composition/document.",
              "comments": "Only list each attester once.",
              "requirements": "Identifies responsibility for the accuracy of the composition content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".authenticator/.legalAuthenticator"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"AUTHEN\"].role[classCode=\"ASSIGNED\"]"
                }
              ]
            },
            {
              "path": "Composition.attester.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Composition.attester.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Composition.attester.mode",
              "short": "personal | professional | legal | official",
              "definition": "The type of attestation the authenticator offers.",
              "comments": "Use more than one code where a single attester has more than one mode (professional and legal are often paired).",
              "requirements": "Indicates the level of authority of the attestation.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The way in which a person authenticated a composition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/composition-attestation-mode"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "implied by .authenticator/.legalAuthenticator"
                },
                {
                  "identity": "rim",
                  "map": "unique(./modeCode)"
                }
              ]
            },
            {
              "path": "Composition.attester.time",
              "short": "When composition attested",
              "definition": "When 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",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".authenticator.time"
                },
                {
                  "identity": "rim",
                  "map": "./time[type=\"TS\" and isNormalDatatype()]"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".authenticator.assignedEnttty"
                },
                {
                  "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": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".custodian.assignedCustodian"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"RCV\"].role[classCode=\"CUST\"].scoper[classCode=\"ORG\" and determinerCode=\"INST\"]"
                }
              ]
            },
            {
              "path": "Composition.event",
              "short": "The clinical service(s) being documented",
              "definition": "The clinical service, such as a colonoscopy or an appendectomy, being documented.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".documentationOf.serviceEvent"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=\"SUBJ\"].target[classCode<'ACT']"
                }
              ]
            },
            {
              "path": "Composition.event.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Composition.event.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "This list of codes represents the main clinical acts being documented.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActCode"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".code"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"SUBJ\"].target"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".componentOf.encompassingEncounter"
                },
                {
                  "identity": "rim",
                  "map": "unique(highest(./outboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()], priorityNumber)/target[moodCode=\"EVN\" and classCode=(\"ENC\", \"PCPR\") and isNormalAct])"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Section"
                }
              ],
              "path": "Composition.section",
              "name": "section",
              "short": "Composition is broken into sections",
              "definition": "The root of the sections that make up the composition.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "emptyReason.empty() or entry.empty()"
                    }
                  ],
                  "key": "cmp-2",
                  "severity": "error",
                  "human": "A section can only have an emptyReason if it is empty",
                  "xpath": "not(exists(f:emptyReason) and exists(f:entry))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "text or entry or section"
                    }
                  ],
                  "key": "cmp-1",
                  "severity": "error",
                  "human": "A section must at least one of text, entries, or sub-sections",
                  "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".component.structuredBody.component.section"
                },
                {
                  "identity": "rim",
                  "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
                }
              ]
            },
            {
              "path": "Composition.section.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Composition.section.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".title"
                },
                {
                  "identity": "rim",
                  "map": "./title"
                }
              ]
            },
            {
              "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.",
              "comments": "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.   If 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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Classification of a section of a composition/document.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/doc-section-codes"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".code"
                },
                {
                  "identity": "rim",
                  "map": "./code"
                }
              ]
            },
            {
              "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.",
              "comments": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "cmp-1"
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".text"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "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.",
              "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The processing mode that applies to this section.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-mode"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Composition.section.orderedBy",
              "short": "Order of section entries",
              "definition": "Specifies the order applied to the items in the section entries.",
              "comments": "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "What order applies to the items in the entry.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-order"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
                }
              ]
            },
            {
              "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.",
              "comments": "If there are no entries in the list, an emptyReason SHOULD be provided.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "condition": [
                "cmp-2"
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".entry"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "cmp-2"
              ],
              "binding": {
                "strength": "preferred",
                "description": "If a section is empty, why it is empty.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-empty-reason"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ,code<{ListEmptyReason}].value[type=CD]"
                }
              ]
            },
            {
              "path": "Composition.section.section",
              "short": "Nested Section",
              "definition": "A nested sub-section within this section.",
              "comments": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
              "min": 0,
              "max": "*",
              "nameReference": "section",
              "condition": [
                "cmp-1"
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".component.section"
                },
                {
                  "identity": "rim",
                  "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "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.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument"
                },
                {
                  "identity": "rim",
                  "map": "Document[classCode=\"DOC\" and moodCode=\"EVN\" and isNormalAct()]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.documents"
                }
              ]
            },
            {
              "path": "Composition.identifier",
              "short": "Logical identifier of composition (version-independent)",
              "definition": "Logical identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time.",
              "comments": "See discussion in resource definition for how these relate.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".setId"
                },
                {
                  "identity": "rim",
                  "map": "Document.id / Document.setId"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Composition.date",
              "short": "Composition editing time",
              "definition": "The composition editing time, when the composition was last logically changed by the author.",
              "comments": "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.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime[type=\"TS\"]"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Type of a composition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/doc-typecodes"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".code"
                },
                {
                  "identity": "rim",
                  "map": "./code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Composition.class",
              "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.",
              "comments": "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": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "High-level kind of a clinical document at a macro level.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/doc-classcodes"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Composition.title",
              "short": "Human Readable name/title",
              "definition": "Official human-readable label for the composition.",
              "comments": "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".title"
                },
                {
                  "identity": "rim",
                  "map": "./title"
                }
              ]
            },
            {
              "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.",
              "comments": "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 \"withdrawn\" 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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The workflow/clinical status of the composition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/composition-status"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "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": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Composition.confidentiality",
              "short": "As defined by affinity domain",
              "definition": "The code specifying the level of confidentiality of the Composition.",
              "comments": "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).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Codes specifying the level of confidentiality of the composition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-Confidentiality"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".confidentialityCode"
                },
                {
                  "identity": "rim",
                  "map": ".confidentialityCode"
                }
              ]
            },
            {
              "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).",
              "comments": "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": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".recordTarget"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".author.assignedAuthor"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "Composition.attester",
              "short": "Attests to accuracy of composition",
              "definition": "A participant who has attested to the accuracy of the composition/document.",
              "comments": "Only list each attester once.",
              "requirements": "Identifies responsibility for the accuracy of the composition content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".authenticator/.legalAuthenticator"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"AUTHEN\"].role[classCode=\"ASSIGNED\"]"
                }
              ]
            },
            {
              "path": "Composition.attester.mode",
              "short": "personal | professional | legal | official",
              "definition": "The type of attestation the authenticator offers.",
              "comments": "Use more than one code where a single attester has more than one mode (professional and legal are often paired).",
              "requirements": "Indicates the level of authority of the attestation.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The way in which a person authenticated a composition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/composition-attestation-mode"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "implied by .authenticator/.legalAuthenticator"
                },
                {
                  "identity": "rim",
                  "map": "unique(./modeCode)"
                }
              ]
            },
            {
              "path": "Composition.attester.time",
              "short": "When composition attested",
              "definition": "When 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",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".authenticator.time"
                },
                {
                  "identity": "rim",
                  "map": "./time[type=\"TS\" and isNormalDatatype()]"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".authenticator.assignedEnttty"
                },
                {
                  "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": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".custodian.assignedCustodian"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"RCV\"].role[classCode=\"CUST\"].scoper[classCode=\"ORG\" and determinerCode=\"INST\"]"
                }
              ]
            },
            {
              "path": "Composition.event",
              "short": "The clinical service(s) being documented",
              "definition": "The clinical service, such as a colonoscopy or an appendectomy, being documented.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".documentationOf.serviceEvent"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=\"SUBJ\"].target[classCode<'ACT']"
                }
              ]
            },
            {
              "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.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "This list of codes represents the main clinical acts being documented.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActCode"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".code"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"SUBJ\"].target"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".componentOf.encompassingEncounter"
                },
                {
                  "identity": "rim",
                  "map": "unique(highest(./outboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()], priorityNumber)/target[moodCode=\"EVN\" and classCode=(\"ENC\", \"PCPR\") and isNormalAct])"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Section"
                }
              ],
              "path": "Composition.section",
              "name": "section",
              "short": "Composition is broken into sections",
              "definition": "The root of the sections that make up the composition.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "emptyReason.empty() or entry.empty()"
                    }
                  ],
                  "key": "cmp-2",
                  "severity": "error",
                  "human": "A section can only have an emptyReason if it is empty",
                  "xpath": "not(exists(f:emptyReason) and exists(f:entry))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "text or entry or section"
                    }
                  ],
                  "key": "cmp-1",
                  "severity": "error",
                  "human": "A section must at least one of text, entries, or sub-sections",
                  "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".component.structuredBody.component.section"
                },
                {
                  "identity": "rim",
                  "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".title"
                },
                {
                  "identity": "rim",
                  "map": "./title"
                }
              ]
            },
            {
              "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.",
              "comments": "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.   If 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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Classification of a section of a composition/document.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/doc-section-codes"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".code"
                },
                {
                  "identity": "rim",
                  "map": "./code"
                }
              ]
            },
            {
              "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.",
              "comments": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "cmp-1"
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".text"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "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.",
              "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The processing mode that applies to this section.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-mode"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Composition.section.orderedBy",
              "short": "Order of section entries",
              "definition": "Specifies the order applied to the items in the section entries.",
              "comments": "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "What order applies to the items in the entry.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-order"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
                }
              ]
            },
            {
              "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.",
              "comments": "If there are no entries in the list, an emptyReason SHOULD be provided.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "condition": [
                "cmp-2"
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".entry"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "cmp-2"
              ],
              "binding": {
                "strength": "preferred",
                "description": "If a section is empty, why it is empty.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-empty-reason"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ,code<{ListEmptyReason}].value[type=CD]"
                }
              ]
            },
            {
              "path": "Composition.section.section",
              "short": "Nested Section",
              "definition": "A nested sub-section within this section.",
              "comments": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
              "min": 0,
              "max": "*",
              "nameReference": "section",
              "condition": [
                "cmp-1"
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".component.section"
                },
                {
                  "identity": "rim",
                  "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/ConceptMap-translate",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "ConceptMap-translate",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/ConceptMap-translate",
        "name": "Concept Translation",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Translate a code from one value set to another, based on the existing value set and concept maps resources, and/or other additional knowledge available to the server. || One (and only one) of the in parameters (code, coding, codeableConcept) must be provided, to identify the code that is to be translated.  || The operation returns a set of parameters including a 'result' for whether there is an acceptable match, and a list of possible matches. Note that the list of matches may include notes of codes for which mapping is specifically excluded, so implementers have to check the match.equivalence for each match",
        "code": "translate",
        "system": false,
        "type": [
          "ConceptMap"
        ],
        "instance": true,
        "parameter": [
          {
            "name": "code",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The code that is to be translated. If a code is provided, a system must be provided",
            "type": "code"
          },
          {
            "name": "system",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The system for the code that is to be translated",
            "type": "uri"
          },
          {
            "name": "version",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The version of the system, if one was provided in the source data",
            "type": "string"
          },
          {
            "name": "valueSet",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "Identifies the value set used when the concept (system/code pair) was chosen. May be a logical id, or an absolute or relative location",
            "type": "uri"
          },
          {
            "name": "coding",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A coding to translate",
            "type": "Coding"
          },
          {
            "name": "codeableConcept",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A full codeableConcept to validate. The server can translate any of the coding values (e.g. existing translations) as it chooses",
            "type": "CodeableConcept"
          },
          {
            "name": "target",
            "use": "in",
            "min": 1,
            "max": "1",
            "documentation": "Identifies the value set in which a translation is sought. May be a logical id, or an absolute or relative location",
            "type": "uri"
          },
          {
            "name": "dependency",
            "use": "in",
            "min": 0,
            "max": "*",
            "documentation": "Another element that may help produce the correct mapping",
            "part": [
              {
                "name": "element",
                "use": "in",
                "min": 0,
                "max": "1",
                "documentation": "The element for this dependency",
                "type": "uri"
              },
              {
                "name": "concept",
                "use": "in",
                "min": 0,
                "max": "1",
                "documentation": "The value for this dependency",
                "type": "CodeableConcept"
              }
            ]
          },
          {
            "name": "result",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "True if the concept could be translated successfully. The value can only be true if at least one returned match has an equivalence which is not  unmatched or disjoint",
            "type": "boolean"
          },
          {
            "name": "message",
            "use": "out",
            "min": 0,
            "max": "1",
            "documentation": "Error details, for display to a human. If this is provided when result = true, the message carries hints and warnings (e.g. a note that the matches could be improved by providing additional detail)",
            "type": "string"
          },
          {
            "name": "match",
            "use": "out",
            "min": 0,
            "max": "*",
            "documentation": "A concept in the target value set with an equivalence. Note that there may be multiple matches of equal or differing equivalence, and the matches may include equivalence values that mean that there is no match",
            "part": [
              {
                "name": "equivalence",
                "use": "out",
                "min": 0,
                "max": "1",
                "documentation": "A code indicating the equivalence of the translation, using values from [ConceptMapEquivalence]{concept-map-equivalence.html}",
                "type": "code"
              },
              {
                "name": "concept",
                "use": "out",
                "min": 0,
                "max": "1",
                "documentation": "The translation outcome. Note that this would never have userSelected = true, since the process of translations implies that the user is not selecting the code (and only the client could know differently)",
                "type": "Coding"
              },
              {
                "name": "product",
                "use": "out",
                "min": 0,
                "max": "*",
                "documentation": "Another element that is the product of this mapping",
                "part": [
                  {
                    "name": "element",
                    "use": "out",
                    "min": 0,
                    "max": "1",
                    "documentation": "The element for this product",
                    "type": "uri"
                  },
                  {
                    "name": "concept",
                    "use": "out",
                    "min": 0,
                    "max": "1",
                    "documentation": "The value for this product",
                    "type": "Coding"
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/ConceptMap-closure",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "ConceptMap-closure",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/ConceptMap-closure",
        "name": "Closure Table Maintenance",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "This operation provides support for ongoing maintenance of a client-side closure table based on server-side terminological logic. For details of how this is used, see [Maintaining a Closure Table](terminology-service.html#closure)",
        "code": "closure",
        "system": true,
        "instance": false,
        "parameter": [
          {
            "name": "name",
            "use": "in",
            "min": 1,
            "max": "1",
            "documentation": "The name that defines the particular context for the subsumption based closure table",
            "type": "string"
          },
          {
            "name": "concept",
            "use": "in",
            "min": 0,
            "max": "*",
            "documentation": "Concepts to add to the closure table",
            "type": "Coding"
          },
          {
            "name": "version",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A request to resynchronise - request to send all new entries since the nominated version was sent by the server",
            "type": "id"
          },
          {
            "name": "return",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "A list of new entries (code / system --> code/system) that the client should add to its closure table. The only kind of entry mapping equivalences that can be returned are equal, narrower, wider, and unmatched",
            "type": "ConceptMap"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ConceptMap",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ConceptMap",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ConceptMap",
        "name": "ConceptMap",
        "status": "draft",
        "publisher": "Health Level Seven International (Vocabulary)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/Vocab/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ConceptMap Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ConceptMap",
              "short": "A map from one set of concepts to one or more other concepts",
              "definition": "A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "conformance.terminology"
                }
              ]
            },
            {
              "path": "ConceptMap.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ConceptMap.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ConceptMap.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ConceptMap.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ConceptMap.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ConceptMap.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.url",
              "short": "Globally unique logical id for concept map",
              "definition": "An absolute URL that is used to identify this concept map when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this concept map is (or will be) published.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ConceptMap.identifier",
              "short": "Additional identifier for the concept map",
              "definition": "Formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.",
              "comments": "Typically, this is used for values that can go in a v3 II data type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ConceptMap.version",
              "short": "Logical id for this version of the concept map",
              "definition": "The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.",
              "comments": "There may be multiple resource versions of the concept map that have this same identifier.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "ConceptMap.name",
              "short": "Informal name for this concept map",
              "definition": "A free text natural language name describing the concept map.",
              "comments": "Not expected to be unique.",
              "requirements": "Support human navigation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.status",
              "short": "draft | active | retired",
              "definition": "The status of the concept map.",
              "comments": "Allows filtering of ConceptMap resources that are appropriate for use.",
              "requirements": "Identify when/if the concept map should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ConceptMap.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This ConceptMap was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "comments": "Allows filtering of ConceptMap resources that are appropriate for use.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "ConceptMap.publisher",
              "short": "Name of the publisher (organization or individual)",
              "definition": "The name of the individual or organization that published the concept map.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the concept map.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "ConceptMap.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ConceptMap.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ConceptMap.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ConceptMap.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the concept map.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ConceptMap.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ConceptMap.date",
              "short": "Date for given status",
              "definition": "The date this version of the concept map was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the concept map changes.",
              "comments": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the concept map. Additional specific dates may be added as extensions.",
              "requirements": "Need to know when a concept map was first legal for use or became withdrawn or replaced.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "ConceptMap.description",
              "short": "Human language description of the concept map",
              "definition": "A free text natural language description of the use of the concept map - reason for definition, conditions of use, etc.",
              "comments": "The description is not intended to describe the semantics of the concept map. The description should capture its intended use, which is needed for ensuring integrity for its use in models across future changes.",
              "requirements": "Human understandability.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.useContext",
              "short": "Content intends to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of concept map instances.",
              "requirements": "Assist in searching for appropriate concept map instances.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.requirements",
              "short": "Why needed",
              "definition": "Explains why this concept map is needed and why it has been constrained as it has.",
              "comments": "This element does not describe the usage of the concept map (that is 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",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ConceptMap.copyright",
              "short": "Use and/or publishing restrictions",
              "definition": "A copyright statement relating to the concept map and/or its contents.",
              "comments": "Frequently, the copyright differs between the concept map, and codes that are included. The copyright statement should clearly differentiate between these when required.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ConceptMap.source[x]",
              "short": "Identifies the source of the concepts which are being mapped",
              "definition": "The source value set that specifies the concepts that are being mapped.",
              "comments": "Should be a version specific reference. URIs SHOULD be absolute.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ValueSet"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ConceptMap.target[x]",
              "short": "Provides context to the mappings",
              "definition": "The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.",
              "comments": "Should be a version specific reference. URIs SHOULD be absolute.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ValueSet"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SourceElement"
                }
              ],
              "path": "ConceptMap.element",
              "short": "Mappings for a concept from the source set",
              "definition": "Mappings for an individual concept in the source to one or more concepts in the target.",
              "comments": "Generally, the ideal is that there would only be one mapping for each concept in the source value set, but a given concept may be mapped multiple times with different comments or dependencies.",
              "alias": [
                "code",
                "concept",
                "item"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ConceptMap.element.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ConceptMap.element.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ConceptMap.element.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.element.codeSystem",
              "short": "Code System (if value set crosses code systems)",
              "definition": "An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ConceptMap.element.code",
              "short": "Identifies element being mapped",
              "definition": "Identity (code or path) or the element/item being mapped.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "TargetElement"
                }
              ],
              "path": "ConceptMap.element.target",
              "short": "Concept in target system for element",
              "definition": "A concept from the target value set that this concept maps to.",
              "comments": "Ideally there would only be one map, with equal or equivalent mapping. But multiple maps are allowed for several narrower options, or to assert that other concepts are unmatched.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "comments or ((equivalence != 'narrower') and (equivalence != 'inexact'))"
                    }
                  ],
                  "key": "cmd-1",
                  "severity": "error",
                  "human": "If the map is narrower or inexact, there SHALL be some comments",
                  "xpath": "exists(f:comments) or ((f:equivalence/@value != 'narrower') and (f:equivalence/@value != 'inexact'))"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ConceptMap.element.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.codeSystem",
              "short": "System of the target (if necessary)",
              "definition": "An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).",
              "comments": "Should be a version specific reference.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.code",
              "short": "Code that identifies the target element",
              "definition": "Identity (code or path) or the element/item that the map refers to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.equivalence",
              "short": "equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint",
              "definition": "The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "binding": {
                "strength": "required",
                "description": "The degree of equivalence between concepts.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/concept-map-equivalence"
                }
              }
            },
            {
              "path": "ConceptMap.element.target.comments",
              "short": "Description of status/issues in mapping",
              "definition": "A description of status/issues in mapping that conveys additional information not represented in  the structured data.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "cmd-1"
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "OtherElement"
                }
              ],
              "path": "ConceptMap.element.target.dependsOn",
              "name": "dependsOn",
              "short": "Other elements required for this mapping (from context)",
              "definition": "A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.dependsOn.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.dependsOn.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.dependsOn.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.dependsOn.element",
              "short": "Reference to element/field/ValueSet mapping depends on",
              "definition": "A reference to a specific concept that holds a coded value. This can be an element in a FHIR resource, or a specific reference to a data element in a different specification (e.g. HL7 v2) or a general reference to a kind of data field, or a reference to a value set with an appropriately narrow definition.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.dependsOn.codeSystem",
              "short": "Code System (if necessary)",
              "definition": "An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.dependsOn.code",
              "short": "Value of the referenced element",
              "definition": "Identity (code or path) or the element/item/ValueSet that the map depends on / refers to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.product",
              "short": "Other concepts that this mapping also produces",
              "definition": "A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.",
              "min": 0,
              "max": "*",
              "nameReference": "dependsOn"
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ConceptMap",
              "short": "A map from one set of concepts to one or more other concepts",
              "definition": "A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "conformance.terminology"
                }
              ]
            },
            {
              "path": "ConceptMap.url",
              "short": "Globally unique logical id for concept map",
              "definition": "An absolute URL that is used to identify this concept map when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this concept map is (or will be) published.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ConceptMap.identifier",
              "short": "Additional identifier for the concept map",
              "definition": "Formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.",
              "comments": "Typically, this is used for values that can go in a v3 II data type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ConceptMap.version",
              "short": "Logical id for this version of the concept map",
              "definition": "The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.",
              "comments": "There may be multiple resource versions of the concept map that have this same identifier.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "ConceptMap.name",
              "short": "Informal name for this concept map",
              "definition": "A free text natural language name describing the concept map.",
              "comments": "Not expected to be unique.",
              "requirements": "Support human navigation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.status",
              "short": "draft | active | retired",
              "definition": "The status of the concept map.",
              "comments": "Allows filtering of ConceptMap resources that are appropriate for use.",
              "requirements": "Identify when/if the concept map should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ConceptMap.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This ConceptMap was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "comments": "Allows filtering of ConceptMap resources that are appropriate for use.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "ConceptMap.publisher",
              "short": "Name of the publisher (organization or individual)",
              "definition": "The name of the individual or organization that published the concept map.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the concept map.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "ConceptMap.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ConceptMap.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the concept map.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ConceptMap.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ConceptMap.date",
              "short": "Date for given status",
              "definition": "The date this version of the concept map was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the concept map changes.",
              "comments": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the concept map. Additional specific dates may be added as extensions.",
              "requirements": "Need to know when a concept map was first legal for use or became withdrawn or replaced.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "ConceptMap.description",
              "short": "Human language description of the concept map",
              "definition": "A free text natural language description of the use of the concept map - reason for definition, conditions of use, etc.",
              "comments": "The description is not intended to describe the semantics of the concept map. The description should capture its intended use, which is needed for ensuring integrity for its use in models across future changes.",
              "requirements": "Human understandability.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.useContext",
              "short": "Content intends to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of concept map instances.",
              "requirements": "Assist in searching for appropriate concept map instances.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ConceptMap.requirements",
              "short": "Why needed",
              "definition": "Explains why this concept map is needed and why it has been constrained as it has.",
              "comments": "This element does not describe the usage of the concept map (that is 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",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ConceptMap.copyright",
              "short": "Use and/or publishing restrictions",
              "definition": "A copyright statement relating to the concept map and/or its contents.",
              "comments": "Frequently, the copyright differs between the concept map, and codes that are included. The copyright statement should clearly differentiate between these when required.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ConceptMap.source[x]",
              "short": "Identifies the source of the concepts which are being mapped",
              "definition": "The source value set that specifies the concepts that are being mapped.",
              "comments": "Should be a version specific reference. URIs SHOULD be absolute.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ValueSet"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ConceptMap.target[x]",
              "short": "Provides context to the mappings",
              "definition": "The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.",
              "comments": "Should be a version specific reference. URIs SHOULD be absolute.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ValueSet"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SourceElement"
                }
              ],
              "path": "ConceptMap.element",
              "short": "Mappings for a concept from the source set",
              "definition": "Mappings for an individual concept in the source to one or more concepts in the target.",
              "comments": "Generally, the ideal is that there would only be one mapping for each concept in the source value set, but a given concept may be mapped multiple times with different comments or dependencies.",
              "alias": [
                "code",
                "concept",
                "item"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ConceptMap.element.codeSystem",
              "short": "Code System (if value set crosses code systems)",
              "definition": "An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ConceptMap.element.code",
              "short": "Identifies element being mapped",
              "definition": "Identity (code or path) or the element/item being mapped.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "TargetElement"
                }
              ],
              "path": "ConceptMap.element.target",
              "short": "Concept in target system for element",
              "definition": "A concept from the target value set that this concept maps to.",
              "comments": "Ideally there would only be one map, with equal or equivalent mapping. But multiple maps are allowed for several narrower options, or to assert that other concepts are unmatched.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "comments or ((equivalence != 'narrower') and (equivalence != 'inexact'))"
                    }
                  ],
                  "key": "cmd-1",
                  "severity": "error",
                  "human": "If the map is narrower or inexact, there SHALL be some comments",
                  "xpath": "exists(f:comments) or ((f:equivalence/@value != 'narrower') and (f:equivalence/@value != 'inexact'))"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.codeSystem",
              "short": "System of the target (if necessary)",
              "definition": "An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).",
              "comments": "Should be a version specific reference.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.code",
              "short": "Code that identifies the target element",
              "definition": "Identity (code or path) or the element/item that the map refers to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.equivalence",
              "short": "equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint",
              "definition": "The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "binding": {
                "strength": "required",
                "description": "The degree of equivalence between concepts.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/concept-map-equivalence"
                }
              }
            },
            {
              "path": "ConceptMap.element.target.comments",
              "short": "Description of status/issues in mapping",
              "definition": "A description of status/issues in mapping that conveys additional information not represented in  the structured data.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "cmd-1"
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "OtherElement"
                }
              ],
              "path": "ConceptMap.element.target.dependsOn",
              "name": "dependsOn",
              "short": "Other elements required for this mapping (from context)",
              "definition": "A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.dependsOn.element",
              "short": "Reference to element/field/ValueSet mapping depends on",
              "definition": "A reference to a specific concept that holds a coded value. This can be an element in a FHIR resource, or a specific reference to a data element in a different specification (e.g. HL7 v2) or a general reference to a kind of data field, or a reference to a value set with an appropriately narrow definition.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.dependsOn.codeSystem",
              "short": "Code System (if necessary)",
              "definition": "An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.dependsOn.code",
              "short": "Value of the referenced element",
              "definition": "Identity (code or path) or the element/item/ValueSet that the map depends on / refers to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ConceptMap.element.target.product",
              "short": "Other concepts that this mapping also produces",
              "definition": "A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.",
              "min": 0,
              "max": "*",
              "nameReference": "dependsOn"
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Condition",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Condition",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Condition",
        "name": "Condition",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Condition Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Condition",
              "short": "Detailed information about conditions, problems or diagnoses",
              "definition": "Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a diagnosis during an encounter; populating a problem list or a summary statement, such as a discharge summary.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PPR message"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=EVN, code=ASSERTION, value<Diagnosis]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "Condition.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Condition.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Condition.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Condition.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Condition.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Condition.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "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 resource. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Condition.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Condition.identifier",
              "short": "External Ids for this condition",
              "definition": "This records identifiers associated with this condition that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "requirements": "Need to allow connection to a wider workflow.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Condition.patient",
              "short": "Who has the condition?",
              "definition": "Indicates the patient who the condition record is associated with.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Condition.encounter",
              "short": "Encounter when condition first asserted",
              "definition": "Encounter during which the condition was first asserted.",
              "comments": "This record indicates the encounter this particular record is associated with.  In the case of a \"new\" diagnosis reflecting ongoing/revised information about the condition, this might be distinct from the first encounter in which the underlying condition was first \"known\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19 (+PV1-54)"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Condition.asserter",
              "short": "Person who asserts this condition",
              "definition": "Individual who is making the condition statement.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "REL-7.1 identifier + REL-7.12 type code"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "Condition.dateRecorded",
              "short": "When first entered",
              "definition": "A date, when  the Condition statement was documented.",
              "comments": "The Date Recorded represents the date when this particular Condition record was created in the EHR, not the date of the most recent update in terms of when severity, abatement, etc. were specified.  The date of the last record modification can be retrieved from the resource metadata.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "REL-11"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "Condition.code",
              "short": "Identification of the condition, problem or diagnosis",
              "definition": "Identification of the condition, problem or diagnosis.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Identification of the condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-3"
                },
                {
                  "identity": "rim",
                  "map": ".value"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Condition.category",
              "short": "complaint | symptom | finding | diagnosis",
              "definition": "A category assigned to the condition.",
              "comments": "The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "A category assigned to the condition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-category"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "'problem' if from PRB-3. 'diagnosis' if from DG1 segment in PV1 message"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Condition.clinicalStatus",
              "short": "active | relapse | remission | resolved",
              "definition": "The clinical status of the condition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "The clinical status of the condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-clinical"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-14 / DG1-6"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Condition.verificationStatus",
              "short": "provisional | differential | confirmed | refuted | entered-in-error | unknown",
              "definition": "The verification status to support the clinical status of the condition.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The verification status to support or decline the clinical status of the condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-ver-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-13"
                },
                {
                  "identity": "rim",
                  "map": ".code (pre or post-coordinated in)  Can use valueNegationInd for refuted"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Condition.severity",
              "short": "Subjective severity of condition",
              "definition": "A subjective assessment of the severity of the condition as evaluated by the clinician.",
              "comments": "Coding of the severity with a terminology is preferred, where possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "A subjective assessment of the severity of the condition as evaluated by the clinician.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-severity"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-26 / ABS-3"
                },
                {
                  "identity": "rim",
                  "map": "Can be pre/post-coordinated into value.  Or ./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"severity\"].value"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            },
            {
              "path": "Condition.onset[x]",
              "short": "Estimated or actual date,  date-time, or age",
              "definition": "Estimated or actual date or date-time  the condition began, in the opinion of the clinician.",
              "comments": "Age is generally used when the patient reports an age at which the Condition began to occur.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Age"
                  ]
                },
                {
                  "code": "Period"
                },
                {
                  "code": "Range"
                },
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-16"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime.low or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at onset\"].value"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "Condition.abatement[x]",
              "short": "If/when in resolution/remission",
              "definition": "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.",
              "comments": "There is no explicit distinction between resolution and remission because in many cases the distinction is not clear. Age is generally used when the patient reports an age at which the Condition abated.  If there is no abatement element, it is unknown whether the condition has resolved or entered remission; applications and users should generally assume that the condition is still valid.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Age"
                  ]
                },
                {
                  "code": "boolean"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "Range"
                },
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime.high or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at remission\"].value or .inboundRelationship[typeCode=SUBJ]source[classCode=CONC, moodCode=EVN].status=completed"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Condition.stage",
              "short": "Stage/grade, usually assessed formally",
              "definition": "Clinical stage or grade of a condition. May include formal severity assessments.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "summary or assessment"
                    }
                  ],
                  "key": "con-1",
                  "severity": "error",
                  "human": "Stage SHALL have summary or assessment",
                  "xpath": "exists(f:summary) or exists(f:assessment)"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"stage/grade\"]"
                }
              ]
            },
            {
              "path": "Condition.stage.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Condition.stage.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Condition.stage.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Condition.stage.summary",
              "short": "Simple summary (disease specific)",
              "definition": "A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "con-1"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing condition stages (e.g. Cancer stages).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-stage"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-14"
                },
                {
                  "identity": "rim",
                  "map": ".value"
                }
              ]
            },
            {
              "path": "Condition.stage.assessment",
              "short": "Formal record of assessment",
              "definition": "Reference to a formal record of the evidence on which the staging assessment is based.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ClinicalImpression"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                }
              ],
              "condition": [
                "con-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".self"
                }
              ]
            },
            {
              "path": "Condition.evidence",
              "short": "Supporting evidence",
              "definition": "Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed.",
              "comments": "The evidence may be a simple list of coded symptoms/manifestations, or references to observations or formal assessments, or both.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "code or detail"
                    }
                  ],
                  "key": "con-2",
                  "severity": "error",
                  "human": "evidence SHALL have code or details",
                  "xpath": "exists(f:code) or exists(f:detail)"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SPRT].target[classCode=OBS, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "Condition.evidence.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Condition.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 element. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Condition.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Condition.evidence.code",
              "short": "Manifestation/symptom",
              "definition": "A manifestation or symptom that led to the recording of this condition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "con-2"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes that describe the manifestation or symptoms of a condition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/manifestation-or-symptom"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "[code=\"diagnosis\"].value"
                }
              ]
            },
            {
              "path": "Condition.evidence.detail",
              "short": "Supporting information found elsewhere",
              "definition": "Links to other relevant information, including pathology reports.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "condition": [
                "con-2"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".self"
                }
              ]
            },
            {
              "path": "Condition.bodySite",
              "short": "Anatomical location, if relevant",
              "definition": "The anatomical location where this condition manifests itself.",
              "comments": "May be a summary code, or a reference to a very precise definition of the location, or both.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".targetBodySiteCode"
                }
              ]
            },
            {
              "path": "Condition.notes",
              "short": "Additional information about the Condition",
              "definition": "Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NTE child of PRB"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Condition",
              "short": "Detailed information about conditions, problems or diagnoses",
              "definition": "Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a diagnosis during an encounter; populating a problem list or a summary statement, such as a discharge summary.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PPR message"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=EVN, code=ASSERTION, value<Diagnosis]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "Condition.identifier",
              "short": "External Ids for this condition",
              "definition": "This records identifiers associated with this condition that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "requirements": "Need to allow connection to a wider workflow.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Condition.patient",
              "short": "Who has the condition?",
              "definition": "Indicates the patient who the condition record is associated with.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Condition.encounter",
              "short": "Encounter when condition first asserted",
              "definition": "Encounter during which the condition was first asserted.",
              "comments": "This record indicates the encounter this particular record is associated with.  In the case of a \"new\" diagnosis reflecting ongoing/revised information about the condition, this might be distinct from the first encounter in which the underlying condition was first \"known\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19 (+PV1-54)"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Condition.asserter",
              "short": "Person who asserts this condition",
              "definition": "Individual who is making the condition statement.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "REL-7.1 identifier + REL-7.12 type code"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "Condition.dateRecorded",
              "short": "When first entered",
              "definition": "A date, when  the Condition statement was documented.",
              "comments": "The Date Recorded represents the date when this particular Condition record was created in the EHR, not the date of the most recent update in terms of when severity, abatement, etc. were specified.  The date of the last record modification can be retrieved from the resource metadata.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "REL-11"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "Condition.code",
              "short": "Identification of the condition, problem or diagnosis",
              "definition": "Identification of the condition, problem or diagnosis.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Identification of the condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-3"
                },
                {
                  "identity": "rim",
                  "map": ".value"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Condition.category",
              "short": "complaint | symptom | finding | diagnosis",
              "definition": "A category assigned to the condition.",
              "comments": "The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "A category assigned to the condition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-category"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "'problem' if from PRB-3. 'diagnosis' if from DG1 segment in PV1 message"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Condition.clinicalStatus",
              "short": "active | relapse | remission | resolved",
              "definition": "The clinical status of the condition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "The clinical status of the condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-clinical"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-14 / DG1-6"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Condition.verificationStatus",
              "short": "provisional | differential | confirmed | refuted | entered-in-error | unknown",
              "definition": "The verification status to support the clinical status of the condition.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The verification status to support or decline the clinical status of the condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-ver-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-13"
                },
                {
                  "identity": "rim",
                  "map": ".code (pre or post-coordinated in)  Can use valueNegationInd for refuted"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Condition.severity",
              "short": "Subjective severity of condition",
              "definition": "A subjective assessment of the severity of the condition as evaluated by the clinician.",
              "comments": "Coding of the severity with a terminology is preferred, where possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "A subjective assessment of the severity of the condition as evaluated by the clinician.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-severity"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-26 / ABS-3"
                },
                {
                  "identity": "rim",
                  "map": "Can be pre/post-coordinated into value.  Or ./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"severity\"].value"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            },
            {
              "path": "Condition.onset[x]",
              "short": "Estimated or actual date,  date-time, or age",
              "definition": "Estimated or actual date or date-time  the condition began, in the opinion of the clinician.",
              "comments": "Age is generally used when the patient reports an age at which the Condition began to occur.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Age"
                  ]
                },
                {
                  "code": "Period"
                },
                {
                  "code": "Range"
                },
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-16"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime.low or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at onset\"].value"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "Condition.abatement[x]",
              "short": "If/when in resolution/remission",
              "definition": "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.",
              "comments": "There is no explicit distinction between resolution and remission because in many cases the distinction is not clear. Age is generally used when the patient reports an age at which the Condition abated.  If there is no abatement element, it is unknown whether the condition has resolved or entered remission; applications and users should generally assume that the condition is still valid.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Age"
                  ]
                },
                {
                  "code": "boolean"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "Range"
                },
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime.high or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at remission\"].value or .inboundRelationship[typeCode=SUBJ]source[classCode=CONC, moodCode=EVN].status=completed"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Condition.stage",
              "short": "Stage/grade, usually assessed formally",
              "definition": "Clinical stage or grade of a condition. May include formal severity assessments.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "summary or assessment"
                    }
                  ],
                  "key": "con-1",
                  "severity": "error",
                  "human": "Stage SHALL have summary or assessment",
                  "xpath": "exists(f:summary) or exists(f:assessment)"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"stage/grade\"]"
                }
              ]
            },
            {
              "path": "Condition.stage.summary",
              "short": "Simple summary (disease specific)",
              "definition": "A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "con-1"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing condition stages (e.g. Cancer stages).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-stage"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRB-14"
                },
                {
                  "identity": "rim",
                  "map": ".value"
                }
              ]
            },
            {
              "path": "Condition.stage.assessment",
              "short": "Formal record of assessment",
              "definition": "Reference to a formal record of the evidence on which the staging assessment is based.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ClinicalImpression"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                }
              ],
              "condition": [
                "con-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".self"
                }
              ]
            },
            {
              "path": "Condition.evidence",
              "short": "Supporting evidence",
              "definition": "Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed.",
              "comments": "The evidence may be a simple list of coded symptoms/manifestations, or references to observations or formal assessments, or both.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "code or detail"
                    }
                  ],
                  "key": "con-2",
                  "severity": "error",
                  "human": "evidence SHALL have code or details",
                  "xpath": "exists(f:code) or exists(f:detail)"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SPRT].target[classCode=OBS, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "Condition.evidence.code",
              "short": "Manifestation/symptom",
              "definition": "A manifestation or symptom that led to the recording of this condition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "con-2"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes that describe the manifestation or symptoms of a condition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/manifestation-or-symptom"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "[code=\"diagnosis\"].value"
                }
              ]
            },
            {
              "path": "Condition.evidence.detail",
              "short": "Supporting information found elsewhere",
              "definition": "Links to other relevant information, including pathology reports.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "condition": [
                "con-2"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".self"
                }
              ]
            },
            {
              "path": "Condition.bodySite",
              "short": "Anatomical location, if relevant",
              "definition": "The anatomical location where this condition manifests itself.",
              "comments": "May be a summary code, or a reference to a very precise definition of the location, or both.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".targetBodySiteCode"
                }
              ]
            },
            {
              "path": "Condition.notes",
              "short": "Additional information about the Condition",
              "definition": "Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NTE child of PRB"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Conformance",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Conformance",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Conformance",
        "name": "Conformance",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Conformance Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Conformance",
              "short": "A conformance statement",
              "definition": "A conformance statement is a set of capabilities of a FHIR Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(software.empty() and implementation.empty()) or kind != 'requirements'"
                    }
                  ],
                  "key": "cnf-14",
                  "severity": "error",
                  "human": "Conformance statements of kind 'requirements' do not have software or implementation elements",
                  "xpath": "not(exists(f:software) or exists(f:implementation)) or (f:kind/@value != 'requirements')"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "rest or messaging or document"
                    }
                  ],
                  "key": "cnf-1",
                  "severity": "error",
                  "human": "A Conformance statement SHALL have at least one of REST, messaging or document",
                  "xpath": "exists(f:rest) or exists(f:messaging) or exists(f:document)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "implementation.empty() or kind != 'capability'"
                    }
                  ],
                  "key": "cnf-15",
                  "severity": "error",
                  "human": "Conformance statements of kind 'software' do not have implementation elements",
                  "xpath": "not(exists(f:implementation)) or (f:kind/@value != 'capability')"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "description or software or implementation"
                    }
                  ],
                  "key": "cnf-2",
                  "severity": "error",
                  "human": "A Conformance statement SHALL have at least one of description, software, or implementation",
                  "xpath": "count(f:software | f:implementation | f:description) > 0"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "messaging.endpoint.empty() or kind = 'instance'"
                    }
                  ],
                  "key": "cnf-3",
                  "severity": "error",
                  "human": "Messaging end-point is required (and is only permitted) when statement is for an implementation",
                  "xpath": "not(exists(f:messaging/f:endpoint)) or f:kind/@value = 'instance'"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "document.distinct(profile,mode)"
                    }
                  ],
                  "key": "cnf-7",
                  "severity": "error",
                  "human": "The set of documents must be unique by the combination of profile & mode",
                  "xpath": "count(f:document[f:mode/@value='producer'])=count(distinct-values(f:document[f:mode/@value='producer']/f:profile/f:reference/@value)) and count(f:document[f:mode/@value='consumer'])=count(distinct-values(f:document[f:mode/@value='consumer']/f:profile/f:reference/@value))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "rest.distinct(mode)"
                    }
                  ],
                  "key": "cnf-8",
                  "severity": "error",
                  "human": "There can only be one REST declaration per mode",
                  "xpath": "count(f:rest)=count(distinct-values(f:rest/f:mode/@value))"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "conformance.behavior"
                }
              ]
            },
            {
              "path": "Conformance.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Conformance.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Conformance.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Conformance.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.url",
              "short": "Logical uri to reference this statement",
              "definition": "An absolute URL that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this conformance statement is (or will be) published.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Conformance.version",
              "short": "Logical id for this version of the statement",
              "definition": "The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.",
              "comments": "There may be multiple different instances of a conformance statement that have the same identifier but different versions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "Conformance.name",
              "short": "Informal name for this conformance statement",
              "definition": "A free text natural language name identifying the conformance statement.",
              "comments": "The name is not expected to be globally unique.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.status",
              "short": "draft | active | retired",
              "definition": "The status of this conformance statement.",
              "comments": "This is not intended for use with actual conformance statements, but where conformance statements are used to describe possible or desired systems.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Conformance.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "comments": "Allows filtering of conformance statements that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Conformance.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the conformance.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the conformance.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "Conformance.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the conformance.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.date",
              "short": "Publication Date(/time)",
              "definition": "The date  (and optionally time) when the conformance statement was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the conformance statement changes.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "Conformance.description",
              "short": "Human description of the conformance statement",
              "definition": "A free text natural language description of the conformance statement and its use. Typically, this is used when the conformance statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.",
              "comments": "This field may include the purpose of this conformance statement, comments about its context etc. This does not need to be populated if the description is adequately implied by the software or implementation details.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "cnf-2"
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.requirements",
              "short": "Why is this needed?",
              "definition": "Explains why this conformance statement is needed and why it's been constrained as it has.",
              "comments": "This element does not describe the usage of the conformance statement (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",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.copyright",
              "short": "Use and/or publishing restrictions",
              "definition": "A copyright statement relating to the conformance statement and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the system described by the conformance statement.",
              "alias": [
                "License",
                "Restrictions"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.kind",
              "short": "instance | capability | requirements",
              "definition": "The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind not instance of software) or a class of implementation (e.g. a desired purchase).",
              "requirements": "Allow searching the 3 modes.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "How a conformance statement is intended to be used.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-statement-kind"
                }
              }
            },
            {
              "path": "Conformance.software",
              "short": "Software that is covered by this conformance statement",
              "definition": "Software that is covered by this conformance statement.  It is used when the conformance statement describes the capabilities of a particular software version, independent of an installation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "cnf-2"
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.software.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.software.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.software.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.software.name",
              "short": "A name the software is known by",
              "definition": "Name software is known by.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.software.version",
              "short": "Version covered by this statement",
              "definition": "The version identifier for the software covered by this statement.",
              "comments": "If possible, version should be specified, as statements are likely to be different for different versions of software.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.software.releaseDate",
              "short": "Date this version released",
              "definition": "Date this version of the software released.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.implementation",
              "short": "If this describes a specific instance",
              "definition": "Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "cnf-2"
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.implementation.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.implementation.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.implementation.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.implementation.description",
              "short": "Describes this specific instance",
              "definition": "Information about the specific installation that this conformance statement relates to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.implementation.url",
              "short": "Base URL for the installation",
              "definition": "An absolute base URL for the implementation.  This forms the base for REST interfaces as well as the mailbox and document interfaces.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.fhirVersion",
              "short": "FHIR Version the system uses",
              "definition": "The version of the FHIR specification on which this conformance statement is based.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.acceptUnknown",
              "short": "no | extensions | elements | both",
              "definition": "A code that indicates whether the application accepts unknown elements or extensions when reading resources.",
              "comments": "Unknown elements in a resource can only arise as later versions of the specification are published, because this is the only place where such elements can be defined. Hence accepting unknown elements is about inter-version compatibility.\n\nApplications are recommended to accept unknown extensions and elements ('both'), but this is not always possible.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A code that indicates whether an application accepts unknown elements or extensions when reading resources.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/unknown-content-code"
                }
              }
            },
            {
              "path": "Conformance.format",
              "short": "formats supported (xml | json | mime type)",
              "definition": "A list of the formats supported by this implementation using their content types.",
              "comments": "\"xml\" or \"json\" are allowed, which describe the simple encodings described in the specification (and imply appropriate bundle support). Otherwise, mime types are legal here.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The mime type of an attachment. Any valid mime type is allowed.",
                "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt"
              }
            },
            {
              "path": "Conformance.profile",
              "short": "Profiles for use cases supported",
              "definition": "A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}.",
              "comments": "Supported profiles are different to the profiles that apply to a particular resource in rest.resource.profile. The resource profile is a general statement of what features of the resource are supported overall by the system - the sum total of the facilities it supports. A supported profile is a deeper statement about the functionality of the data and services provided by the server (or used by the client). A typical case is a laboratory system that produces a set of different reports - this is the list of types of data that it publishes. A key aspect of declaring profiles here is the question of how the client converts knowledge that the server publishes this data into working with the data; the client can inspect individual resources to determine whether they conform to a particular profile, but how does it find the ones that does? It does so by searching using the _profile parameter, so any resources listed here must be valid values for the _profile resource (using the identifier in the target profile).  Typical supported profiles cross resource types to describe a network of related resources, so they are listed here rather than by resource. However, they do not need to describe more than one resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "Conformance.rest",
              "short": "If the endpoint is a RESTful one",
              "definition": "A definition of the restful capabilities of the solution, if any.",
              "comments": "Multiple repetitions allow definition of both client and / or server behaviors or possibly behaviors under different configuration settings (for software or requirements statements).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "cnf-1"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "resource.distinct(type)"
                    }
                  ],
                  "key": "cnf-9",
                  "severity": "error",
                  "human": "A given resource can only be described once per RESTful mode",
                  "xpath": "count(f:resource)=count(distinct-values(f:resource/f:type/@value))"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.rest.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.rest.mode",
              "short": "client | server",
              "definition": "Identifies whether this portion of the statement is describing ability to initiate or receive restful operations.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The mode of a RESTful conformance statement.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/restful-conformance-mode"
                }
              }
            },
            {
              "path": "Conformance.rest.documentation",
              "short": "General description of implementation",
              "definition": "Information about the system's restful capabilities that apply across all applications, such as security.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.security",
              "short": "Information about security of implementation",
              "definition": "Information about security implementation from an interface perspective - what a client needs to know.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.cors",
              "short": "Adds CORS Headers (http://enable-cors.org/)",
              "definition": "Server adds CORS headers when responding to requests - this enables javascript applications to use the server.",
              "comments": "The easiest CORS headers to add are Access-Control-Allow-Origin: * & Access-Control-Request-Method: GET, POST, PUT, DELETE. All servers SHOULD support CORS.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.service",
              "short": "OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates",
              "definition": "Types of security services are supported/required by the system.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Types of security services used with FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/restful-security-service"
                }
              }
            },
            {
              "path": "Conformance.rest.security.description",
              "short": "General description of how security works",
              "definition": "General description of how security works.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.certificate",
              "short": "Certificates associated with security profiles",
              "definition": "Certificates associated with security profiles.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.certificate.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.certificate.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.certificate.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.certificate.type",
              "short": "Mime type for certificate",
              "definition": "Mime type for certificate.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The mime type of an attachment. Any valid mime type is allowed.",
                "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt"
              }
            },
            {
              "path": "Conformance.rest.security.certificate.blob",
              "short": "Actual certificate",
              "definition": "Actual certificate.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "base64Binary"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource",
              "short": "Resource served on the REST interface",
              "definition": "A specification of the restful capabilities of the solution for a specific resource type.",
              "comments": "Max of one repetition per resource type.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "searchParam.distinct(name)"
                    }
                  ],
                  "key": "cnf-12",
                  "severity": "error",
                  "human": "Search parameter names must be unique in the context of a resource",
                  "xpath": "count(f:searchParam)=count(distinct-values(f:searchParam/f:name/@value))"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.rest.resource.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.type",
              "short": "A resource type that is supported",
              "definition": "A type of resource exposed via the restful interface.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.profile",
              "short": "Base System profile for all uses of resource",
              "definition": "A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses}.",
              "comments": "The profile applies to all  resources of this type - i.e. it is the superset of what is supported by the system.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ResourceInteraction"
                }
              ],
              "path": "Conformance.rest.resource.interaction",
              "short": "What operations are supported?",
              "definition": "Identifies a restful operation supported by the solution.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.interaction.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.interaction.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.interaction.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.interaction.code",
              "short": "read | vread | update | delete | history-instance | validate | history-type | create | search-type",
              "definition": "Coded identifier of the operation, supported by the system resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Operations supported by REST at the type or instance level.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/type-restful-interaction"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.interaction.documentation",
              "short": "Anything special about operation behavior",
              "definition": "Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'.",
              "requirements": "REST allows a degree of variability in the implementation of RESTful solutions that is useful for exchange partners to be aware of.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.versioning",
              "short": "no-version | versioned | versioned-update",
              "definition": "This field is set to no-version to specify that the system does not support (server) or use (client) versioning for this resource type. If this has some other value, the server must at least correctly track and populate the versionId meta-property on resources. If the value is 'versioned-update', then the server supports all the versioning features, including using e-tags for version integrity in the API.",
              "comments": "If a server supports versionIds correctly, it SHOULD support vread too, but is not required to do so.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "How the system supports versioning for a resource.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/versioning-policy"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.readHistory",
              "short": "Whether vRead can return past versions",
              "definition": "A flag for whether the server is able to return past versions as part of the vRead operation.",
              "comments": "It is useful to support the vRead operation for current operations, even if past versions aren't available.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.updateCreate",
              "short": "If update can commit to a new identity",
              "definition": "A flag to indicate that the server allows or needs to allow the client to create new identities on the server (e.g. that is, the client PUTs to a location where there is no existing resource). Allowing this operation means that the server allows the client to create new identities on the server.",
              "comments": "Allowing the clients to create new identities on the server means that the system administrator needs to have confidence that the clients do not create clashing identities between them. Obviously, if there is only one client, this won't happen. While creating identities on the client means that the clients need to be managed, it's much more convenient for many scenarios if such management can be put in place.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.conditionalCreate",
              "short": "If allows/uses conditional create",
              "definition": "A flag that indicates that the server supports conditional create.",
              "comments": "Conditional Create is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.conditionalUpdate",
              "short": "If allows/uses conditional update",
              "definition": "A flag that indicates that the server supports conditional update.",
              "comments": "Conditional Update is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.conditionalDelete",
              "short": "not-supported | single | multiple - how conditional delete is supported",
              "definition": "A code that indicates how the server supports conditional delete.",
              "comments": "Conditional Delete is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A code that indicates how the server supports conditional delete.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conditional-delete-status"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.searchInclude",
              "short": "_include values supported by the server",
              "definition": "A list of _include values supported by the server.",
              "comments": "If this list is empty, the server does not support includes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchRevInclude",
              "short": "_revinclude values supported by the server",
              "definition": "A list of _revinclude (reverse include) values supported by the server.",
              "comments": "If this list is empty, the server does not support includes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam",
              "name": "searchParam",
              "short": "Search params supported by implementation",
              "definition": "Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "chain.empty() or type = 'reference'"
                    }
                  ],
                  "key": "cnf-13",
                  "severity": "error",
                  "human": "Search parameters can only have chain names when the search parameter type is 'reference'",
                  "xpath": "not(exists(f:chain)) or (f:type/@value = 'reference')"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam.name",
              "short": "Name of search parameter",
              "definition": "The name of the search parameter used in the interface.",
              "comments": "Parameter names cannot overlap with standard parameter names, and standard parameters cannot be redefined.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam.definition",
              "short": "Source of definition for parameter",
              "definition": "An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]).",
              "comments": "This SHOULD be present, and matches SearchParameter.url.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam.type",
              "short": "number | date | string | token | reference | composite | quantity | uri",
              "definition": "The type of value a search parameter refers to, and how the content is interpreted.",
              "comments": "While this can be looked up from the definition, it is included here as a convenience for systems that autogenerate a query interface based on the server conformance statement.  It SHALL be the same as the type in the search parameter definition.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Data types allowed to be used for search parameters.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/search-param-type"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.searchParam.documentation",
              "short": "Server-specific usage",
              "definition": "This allows documentation of any distinct behaviors about how the search parameter is used.  For example, text matching algorithms.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam.target",
              "short": "Types of resource (if a resource reference)",
              "definition": "Types of resource (if a resource is referenced).",
              "comments": "This SHALL be the same as or a proper subset of the resources listed in the search parameter definition.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.searchParam.modifier",
              "short": "missing | exact | contains | not | text | in | not-in | below | above | type",
              "definition": "A modifier supported for the search parameter.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A supported modifier for a search parameter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/search-modifier-code"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.searchParam.chain",
              "short": "Chained names supported",
              "definition": "Contains the names of any search parameters which may be chained to the containing search parameter. Chained parameters may be added to search parameters of type reference, and specify that resources will only be returned if they contain a reference to a resource which matches the chained parameter value. Values for this field should be drawn from Conformance.rest.resource.searchParam.name on the target resource type.",
              "comments": "Systems are not required to list all the chain names they support, but if they don't list them, clients may not know to use them.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SystemInteraction"
                }
              ],
              "path": "Conformance.rest.interaction",
              "short": "What operations are supported?",
              "definition": "A specification of restful operations supported by the system.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.rest.interaction.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.interaction.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.interaction.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.rest.interaction.code",
              "short": "transaction | search-system | history-system",
              "definition": "A coded identifier of the operation, supported by the system.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Operations supported by REST at the system level.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/system-restful-interaction"
                }
              }
            },
            {
              "path": "Conformance.rest.interaction.documentation",
              "short": "Anything special about operation behavior",
              "definition": "Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.transactionMode",
              "short": "not-supported | batch | transaction | both",
              "definition": "A code that indicates how transactions are supported.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "defaultValueCode": "not-supported",
              "binding": {
                "strength": "required",
                "description": "A code that indicates how transactions are supported.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/transaction-mode"
                }
              }
            },
            {
              "path": "Conformance.rest.searchParam",
              "short": "Search params for searching all resources",
              "definition": "Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.",
              "comments": "Typically, the only search parameters supported for all parameters are search parameters that apply to all resources - tags, profiles, text search etc.",
              "min": 0,
              "max": "*",
              "nameReference": "searchParam"
            },
            {
              "path": "Conformance.rest.operation",
              "short": "Definition of an operation or a custom query",
              "definition": "Definition of an operation or a named query and with its parameters and their meaning and type.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.rest.operation.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.operation.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.rest.operation.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.rest.operation.name",
              "short": "Name by which the operation/query is invoked",
              "definition": "The name of a query, which is used in the _query parameter when the query is called.",
              "comments": "The name here SHOULD be the same as the name in the definition, unless there is a name clash and the name cannot be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.operation.definition",
              "short": "The defined operation/query",
              "definition": "Where the formal definition can be found.",
              "comments": "This can be used to build an HTML form to invoke the operation, for instance.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                  ]
                }
              ]
            },
            {
              "path": "Conformance.rest.compartment",
              "short": "Compartments served/used by system",
              "definition": "An absolute URI which is a reference to the definition of a compartment hosted by the system.",
              "comments": "At present, the only defined compartments are at [[compartments.html]].",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "Conformance.messaging",
              "short": "If messaging is supported",
              "definition": "A description of the messaging capabilities of the solution.",
              "comments": "Multiple repetitions allow the documentation of multiple endpoints per solution.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "cnf-1"
              ]
            },
            {
              "path": "Conformance.messaging.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.messaging.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.messaging.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.messaging.endpoint",
              "short": "A messaging service end-point",
              "definition": "An endpoint (network accessible address) to which messages and/or replies are to be sent.",
              "alias": [
                "3"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.messaging.endpoint.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.messaging.endpoint.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.messaging.endpoint.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.messaging.endpoint.protocol",
              "short": "http | ftp | mllp +",
              "definition": "A list of the messaging transport protocol(s) identifiers, supported by this endpoint.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The protocol used for message transport.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/message-transport"
                }
              }
            },
            {
              "path": "Conformance.messaging.endpoint.address",
              "short": "Address of end-point",
              "definition": "The network address of the end-point. For solutions that do not use network addresses for routing, it can be just an identifier.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "Conformance.messaging.reliableCache",
              "short": "Reliable Message Cache Length (min)",
              "definition": "Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender).",
              "comments": "If this value is missing then the application does not implement (receiver) or depend on (sender) reliable messaging.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ]
            },
            {
              "path": "Conformance.messaging.documentation",
              "short": "Messaging interface behavior details",
              "definition": "Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement.  For example, process for becoming an authorized messaging exchange partner.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.messaging.event",
              "short": "Declare support for this event",
              "definition": "A description of the solution's support for an event at this end-point.",
              "comments": "The same event may be listed up to two times - once as sender and once as receiver.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.messaging.event.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.messaging.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.messaging.event.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.messaging.event.code",
              "short": "Event type",
              "definition": "A coded identifier of a supported messaging event.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "One of the message events defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/message-events"
                }
              }
            },
            {
              "path": "Conformance.messaging.event.category",
              "short": "Consequence | Currency | Notification",
              "definition": "The impact of the content of the message.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The impact of the content of a message.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/message-significance-category"
                }
              }
            },
            {
              "path": "Conformance.messaging.event.mode",
              "short": "sender | receiver",
              "definition": "The mode of this event declaration - whether application is sender or receiver.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The mode of a message conformance statement.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/message-conformance-event-mode"
                }
              }
            },
            {
              "path": "Conformance.messaging.event.focus",
              "short": "Resource that's focus of message",
              "definition": "A resource associated with the event.  This is the resource that defines the event.",
              "comments": "This SHALL be provided if the event type supports multiple different resource types.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "Conformance.messaging.event.request",
              "short": "Profile that describes the request",
              "definition": "Information about the request for this event.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "Conformance.messaging.event.response",
              "short": "Profile that describes the response",
              "definition": "Information about the response for this event.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "Conformance.messaging.event.documentation",
              "short": "Endpoint-specific event documentation",
              "definition": "Guidance on how this event is handled, such as internal system trigger points, business rules, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.document",
              "short": "Document definition",
              "definition": "A document definition.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "cnf-1"
              ]
            },
            {
              "path": "Conformance.document.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.document.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Conformance.document.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Conformance.document.mode",
              "short": "producer | consumer",
              "definition": "Mode of this document declaration - whether application is producer or consumer.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Whether the application produces or consumes documents.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/document-mode"
                }
              }
            },
            {
              "path": "Conformance.document.documentation",
              "short": "Description of document support",
              "definition": "A description of how the application supports or uses the specified document profile.  For example, when are documents created, what action is taken with consumed documents, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.document.profile",
              "short": "Constraint on a resource used in the document",
              "definition": "A constraint on a resource used in the document.",
              "comments": "The first resource is the document resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Conformance",
              "short": "A conformance statement",
              "definition": "A conformance statement is a set of capabilities of a FHIR Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(software.empty() and implementation.empty()) or kind != 'requirements'"
                    }
                  ],
                  "key": "cnf-14",
                  "severity": "error",
                  "human": "Conformance statements of kind 'requirements' do not have software or implementation elements",
                  "xpath": "not(exists(f:software) or exists(f:implementation)) or (f:kind/@value != 'requirements')"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "rest or messaging or document"
                    }
                  ],
                  "key": "cnf-1",
                  "severity": "error",
                  "human": "A Conformance statement SHALL have at least one of REST, messaging or document",
                  "xpath": "exists(f:rest) or exists(f:messaging) or exists(f:document)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "implementation.empty() or kind != 'capability'"
                    }
                  ],
                  "key": "cnf-15",
                  "severity": "error",
                  "human": "Conformance statements of kind 'software' do not have implementation elements",
                  "xpath": "not(exists(f:implementation)) or (f:kind/@value != 'capability')"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "description or software or implementation"
                    }
                  ],
                  "key": "cnf-2",
                  "severity": "error",
                  "human": "A Conformance statement SHALL have at least one of description, software, or implementation",
                  "xpath": "count(f:software | f:implementation | f:description) > 0"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "messaging.endpoint.empty() or kind = 'instance'"
                    }
                  ],
                  "key": "cnf-3",
                  "severity": "error",
                  "human": "Messaging end-point is required (and is only permitted) when statement is for an implementation",
                  "xpath": "not(exists(f:messaging/f:endpoint)) or f:kind/@value = 'instance'"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "document.distinct(profile,mode)"
                    }
                  ],
                  "key": "cnf-7",
                  "severity": "error",
                  "human": "The set of documents must be unique by the combination of profile & mode",
                  "xpath": "count(f:document[f:mode/@value='producer'])=count(distinct-values(f:document[f:mode/@value='producer']/f:profile/f:reference/@value)) and count(f:document[f:mode/@value='consumer'])=count(distinct-values(f:document[f:mode/@value='consumer']/f:profile/f:reference/@value))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "rest.distinct(mode)"
                    }
                  ],
                  "key": "cnf-8",
                  "severity": "error",
                  "human": "There can only be one REST declaration per mode",
                  "xpath": "count(f:rest)=count(distinct-values(f:rest/f:mode/@value))"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "conformance.behavior"
                }
              ]
            },
            {
              "path": "Conformance.url",
              "short": "Logical uri to reference this statement",
              "definition": "An absolute URL that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this conformance statement is (or will be) published.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Conformance.version",
              "short": "Logical id for this version of the statement",
              "definition": "The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.",
              "comments": "There may be multiple different instances of a conformance statement that have the same identifier but different versions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "Conformance.name",
              "short": "Informal name for this conformance statement",
              "definition": "A free text natural language name identifying the conformance statement.",
              "comments": "The name is not expected to be globally unique.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.status",
              "short": "draft | active | retired",
              "definition": "The status of this conformance statement.",
              "comments": "This is not intended for use with actual conformance statements, but where conformance statements are used to describe possible or desired systems.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Conformance.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "comments": "Allows filtering of conformance statements that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Conformance.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the conformance.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the conformance.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "Conformance.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the conformance.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.date",
              "short": "Publication Date(/time)",
              "definition": "The date  (and optionally time) when the conformance statement was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the conformance statement changes.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "Conformance.description",
              "short": "Human description of the conformance statement",
              "definition": "A free text natural language description of the conformance statement and its use. Typically, this is used when the conformance statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.",
              "comments": "This field may include the purpose of this conformance statement, comments about its context etc. This does not need to be populated if the description is adequately implied by the software or implementation details.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "cnf-2"
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.requirements",
              "short": "Why is this needed?",
              "definition": "Explains why this conformance statement is needed and why it's been constrained as it has.",
              "comments": "This element does not describe the usage of the conformance statement (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",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.copyright",
              "short": "Use and/or publishing restrictions",
              "definition": "A copyright statement relating to the conformance statement and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the system described by the conformance statement.",
              "alias": [
                "License",
                "Restrictions"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.kind",
              "short": "instance | capability | requirements",
              "definition": "The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind not instance of software) or a class of implementation (e.g. a desired purchase).",
              "requirements": "Allow searching the 3 modes.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "How a conformance statement is intended to be used.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-statement-kind"
                }
              }
            },
            {
              "path": "Conformance.software",
              "short": "Software that is covered by this conformance statement",
              "definition": "Software that is covered by this conformance statement.  It is used when the conformance statement describes the capabilities of a particular software version, independent of an installation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "cnf-2"
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.software.name",
              "short": "A name the software is known by",
              "definition": "Name software is known by.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.software.version",
              "short": "Version covered by this statement",
              "definition": "The version identifier for the software covered by this statement.",
              "comments": "If possible, version should be specified, as statements are likely to be different for different versions of software.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.software.releaseDate",
              "short": "Date this version released",
              "definition": "Date this version of the software released.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.implementation",
              "short": "If this describes a specific instance",
              "definition": "Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "cnf-2"
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.implementation.description",
              "short": "Describes this specific instance",
              "definition": "Information about the specific installation that this conformance statement relates to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.implementation.url",
              "short": "Base URL for the installation",
              "definition": "An absolute base URL for the implementation.  This forms the base for REST interfaces as well as the mailbox and document interfaces.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.fhirVersion",
              "short": "FHIR Version the system uses",
              "definition": "The version of the FHIR specification on which this conformance statement is based.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.acceptUnknown",
              "short": "no | extensions | elements | both",
              "definition": "A code that indicates whether the application accepts unknown elements or extensions when reading resources.",
              "comments": "Unknown elements in a resource can only arise as later versions of the specification are published, because this is the only place where such elements can be defined. Hence accepting unknown elements is about inter-version compatibility.\n\nApplications are recommended to accept unknown extensions and elements ('both'), but this is not always possible.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A code that indicates whether an application accepts unknown elements or extensions when reading resources.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/unknown-content-code"
                }
              }
            },
            {
              "path": "Conformance.format",
              "short": "formats supported (xml | json | mime type)",
              "definition": "A list of the formats supported by this implementation using their content types.",
              "comments": "\"xml\" or \"json\" are allowed, which describe the simple encodings described in the specification (and imply appropriate bundle support). Otherwise, mime types are legal here.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The mime type of an attachment. Any valid mime type is allowed.",
                "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt"
              }
            },
            {
              "path": "Conformance.profile",
              "short": "Profiles for use cases supported",
              "definition": "A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}.",
              "comments": "Supported profiles are different to the profiles that apply to a particular resource in rest.resource.profile. The resource profile is a general statement of what features of the resource are supported overall by the system - the sum total of the facilities it supports. A supported profile is a deeper statement about the functionality of the data and services provided by the server (or used by the client). A typical case is a laboratory system that produces a set of different reports - this is the list of types of data that it publishes. A key aspect of declaring profiles here is the question of how the client converts knowledge that the server publishes this data into working with the data; the client can inspect individual resources to determine whether they conform to a particular profile, but how does it find the ones that does? It does so by searching using the _profile parameter, so any resources listed here must be valid values for the _profile resource (using the identifier in the target profile).  Typical supported profiles cross resource types to describe a network of related resources, so they are listed here rather than by resource. However, they do not need to describe more than one resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "Conformance.rest",
              "short": "If the endpoint is a RESTful one",
              "definition": "A definition of the restful capabilities of the solution, if any.",
              "comments": "Multiple repetitions allow definition of both client and / or server behaviors or possibly behaviors under different configuration settings (for software or requirements statements).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "cnf-1"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "resource.distinct(type)"
                    }
                  ],
                  "key": "cnf-9",
                  "severity": "error",
                  "human": "A given resource can only be described once per RESTful mode",
                  "xpath": "count(f:resource)=count(distinct-values(f:resource/f:type/@value))"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.rest.mode",
              "short": "client | server",
              "definition": "Identifies whether this portion of the statement is describing ability to initiate or receive restful operations.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The mode of a RESTful conformance statement.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/restful-conformance-mode"
                }
              }
            },
            {
              "path": "Conformance.rest.documentation",
              "short": "General description of implementation",
              "definition": "Information about the system's restful capabilities that apply across all applications, such as security.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.security",
              "short": "Information about security of implementation",
              "definition": "Information about security implementation from an interface perspective - what a client needs to know.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.cors",
              "short": "Adds CORS Headers (http://enable-cors.org/)",
              "definition": "Server adds CORS headers when responding to requests - this enables javascript applications to use the server.",
              "comments": "The easiest CORS headers to add are Access-Control-Allow-Origin: * & Access-Control-Request-Method: GET, POST, PUT, DELETE. All servers SHOULD support CORS.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.service",
              "short": "OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates",
              "definition": "Types of security services are supported/required by the system.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Types of security services used with FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/restful-security-service"
                }
              }
            },
            {
              "path": "Conformance.rest.security.description",
              "short": "General description of how security works",
              "definition": "General description of how security works.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.certificate",
              "short": "Certificates associated with security profiles",
              "definition": "Certificates associated with security profiles.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.rest.security.certificate.type",
              "short": "Mime type for certificate",
              "definition": "Mime type for certificate.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The mime type of an attachment. Any valid mime type is allowed.",
                "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt"
              }
            },
            {
              "path": "Conformance.rest.security.certificate.blob",
              "short": "Actual certificate",
              "definition": "Actual certificate.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "base64Binary"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource",
              "short": "Resource served on the REST interface",
              "definition": "A specification of the restful capabilities of the solution for a specific resource type.",
              "comments": "Max of one repetition per resource type.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "searchParam.distinct(name)"
                    }
                  ],
                  "key": "cnf-12",
                  "severity": "error",
                  "human": "Search parameter names must be unique in the context of a resource",
                  "xpath": "count(f:searchParam)=count(distinct-values(f:searchParam/f:name/@value))"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Conformance.rest.resource.type",
              "short": "A resource type that is supported",
              "definition": "A type of resource exposed via the restful interface.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.profile",
              "short": "Base System profile for all uses of resource",
              "definition": "A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses}.",
              "comments": "The profile applies to all  resources of this type - i.e. it is the superset of what is supported by the system.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ResourceInteraction"
                }
              ],
              "path": "Conformance.rest.resource.interaction",
              "short": "What operations are supported?",
              "definition": "Identifies a restful operation supported by the solution.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.interaction.code",
              "short": "read | vread | update | delete | history-instance | validate | history-type | create | search-type",
              "definition": "Coded identifier of the operation, supported by the system resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Operations supported by REST at the type or instance level.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/type-restful-interaction"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.interaction.documentation",
              "short": "Anything special about operation behavior",
              "definition": "Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'.",
              "requirements": "REST allows a degree of variability in the implementation of RESTful solutions that is useful for exchange partners to be aware of.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.versioning",
              "short": "no-version | versioned | versioned-update",
              "definition": "This field is set to no-version to specify that the system does not support (server) or use (client) versioning for this resource type. If this has some other value, the server must at least correctly track and populate the versionId meta-property on resources. If the value is 'versioned-update', then the server supports all the versioning features, including using e-tags for version integrity in the API.",
              "comments": "If a server supports versionIds correctly, it SHOULD support vread too, but is not required to do so.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "How the system supports versioning for a resource.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/versioning-policy"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.readHistory",
              "short": "Whether vRead can return past versions",
              "definition": "A flag for whether the server is able to return past versions as part of the vRead operation.",
              "comments": "It is useful to support the vRead operation for current operations, even if past versions aren't available.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.updateCreate",
              "short": "If update can commit to a new identity",
              "definition": "A flag to indicate that the server allows or needs to allow the client to create new identities on the server (e.g. that is, the client PUTs to a location where there is no existing resource). Allowing this operation means that the server allows the client to create new identities on the server.",
              "comments": "Allowing the clients to create new identities on the server means that the system administrator needs to have confidence that the clients do not create clashing identities between them. Obviously, if there is only one client, this won't happen. While creating identities on the client means that the clients need to be managed, it's much more convenient for many scenarios if such management can be put in place.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.conditionalCreate",
              "short": "If allows/uses conditional create",
              "definition": "A flag that indicates that the server supports conditional create.",
              "comments": "Conditional Create is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.conditionalUpdate",
              "short": "If allows/uses conditional update",
              "definition": "A flag that indicates that the server supports conditional update.",
              "comments": "Conditional Update is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.conditionalDelete",
              "short": "not-supported | single | multiple - how conditional delete is supported",
              "definition": "A code that indicates how the server supports conditional delete.",
              "comments": "Conditional Delete is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A code that indicates how the server supports conditional delete.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conditional-delete-status"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.searchInclude",
              "short": "_include values supported by the server",
              "definition": "A list of _include values supported by the server.",
              "comments": "If this list is empty, the server does not support includes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchRevInclude",
              "short": "_revinclude values supported by the server",
              "definition": "A list of _revinclude (reverse include) values supported by the server.",
              "comments": "If this list is empty, the server does not support includes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam",
              "name": "searchParam",
              "short": "Search params supported by implementation",
              "definition": "Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "chain.empty() or type = 'reference'"
                    }
                  ],
                  "key": "cnf-13",
                  "severity": "error",
                  "human": "Search parameters can only have chain names when the search parameter type is 'reference'",
                  "xpath": "not(exists(f:chain)) or (f:type/@value = 'reference')"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam.name",
              "short": "Name of search parameter",
              "definition": "The name of the search parameter used in the interface.",
              "comments": "Parameter names cannot overlap with standard parameter names, and standard parameters cannot be redefined.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam.definition",
              "short": "Source of definition for parameter",
              "definition": "An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]).",
              "comments": "This SHOULD be present, and matches SearchParameter.url.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam.type",
              "short": "number | date | string | token | reference | composite | quantity | uri",
              "definition": "The type of value a search parameter refers to, and how the content is interpreted.",
              "comments": "While this can be looked up from the definition, it is included here as a convenience for systems that autogenerate a query interface based on the server conformance statement.  It SHALL be the same as the type in the search parameter definition.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Data types allowed to be used for search parameters.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/search-param-type"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.searchParam.documentation",
              "short": "Server-specific usage",
              "definition": "This allows documentation of any distinct behaviors about how the search parameter is used.  For example, text matching algorithms.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.resource.searchParam.target",
              "short": "Types of resource (if a resource reference)",
              "definition": "Types of resource (if a resource is referenced).",
              "comments": "This SHALL be the same as or a proper subset of the resources listed in the search parameter definition.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.searchParam.modifier",
              "short": "missing | exact | contains | not | text | in | not-in | below | above | type",
              "definition": "A modifier supported for the search parameter.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A supported modifier for a search parameter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/search-modifier-code"
                }
              }
            },
            {
              "path": "Conformance.rest.resource.searchParam.chain",
              "short": "Chained names supported",
              "definition": "Contains the names of any search parameters which may be chained to the containing search parameter. Chained parameters may be added to search parameters of type reference, and specify that resources will only be returned if they contain a reference to a resource which matches the chained parameter value. Values for this field should be drawn from Conformance.rest.resource.searchParam.name on the target resource type.",
              "comments": "Systems are not required to list all the chain names they support, but if they don't list them, clients may not know to use them.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SystemInteraction"
                }
              ],
              "path": "Conformance.rest.interaction",
              "short": "What operations are supported?",
              "definition": "A specification of restful operations supported by the system.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.rest.interaction.code",
              "short": "transaction | search-system | history-system",
              "definition": "A coded identifier of the operation, supported by the system.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Operations supported by REST at the system level.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/system-restful-interaction"
                }
              }
            },
            {
              "path": "Conformance.rest.interaction.documentation",
              "short": "Anything special about operation behavior",
              "definition": "Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.transactionMode",
              "short": "not-supported | batch | transaction | both",
              "definition": "A code that indicates how transactions are supported.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "defaultValueCode": "not-supported",
              "binding": {
                "strength": "required",
                "description": "A code that indicates how transactions are supported.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/transaction-mode"
                }
              }
            },
            {
              "path": "Conformance.rest.searchParam",
              "short": "Search params for searching all resources",
              "definition": "Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.",
              "comments": "Typically, the only search parameters supported for all parameters are search parameters that apply to all resources - tags, profiles, text search etc.",
              "min": 0,
              "max": "*",
              "nameReference": "searchParam"
            },
            {
              "path": "Conformance.rest.operation",
              "short": "Definition of an operation or a custom query",
              "definition": "Definition of an operation or a named query and with its parameters and their meaning and type.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.rest.operation.name",
              "short": "Name by which the operation/query is invoked",
              "definition": "The name of a query, which is used in the _query parameter when the query is called.",
              "comments": "The name here SHOULD be the same as the name in the definition, unless there is a name clash and the name cannot be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.rest.operation.definition",
              "short": "The defined operation/query",
              "definition": "Where the formal definition can be found.",
              "comments": "This can be used to build an HTML form to invoke the operation, for instance.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                  ]
                }
              ]
            },
            {
              "path": "Conformance.rest.compartment",
              "short": "Compartments served/used by system",
              "definition": "An absolute URI which is a reference to the definition of a compartment hosted by the system.",
              "comments": "At present, the only defined compartments are at [[compartments.html]].",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "Conformance.messaging",
              "short": "If messaging is supported",
              "definition": "A description of the messaging capabilities of the solution.",
              "comments": "Multiple repetitions allow the documentation of multiple endpoints per solution.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "cnf-1"
              ]
            },
            {
              "path": "Conformance.messaging.endpoint",
              "short": "A messaging service end-point",
              "definition": "An endpoint (network accessible address) to which messages and/or replies are to be sent.",
              "alias": [
                "3"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.messaging.endpoint.protocol",
              "short": "http | ftp | mllp +",
              "definition": "A list of the messaging transport protocol(s) identifiers, supported by this endpoint.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The protocol used for message transport.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/message-transport"
                }
              }
            },
            {
              "path": "Conformance.messaging.endpoint.address",
              "short": "Address of end-point",
              "definition": "The network address of the end-point. For solutions that do not use network addresses for routing, it can be just an identifier.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "Conformance.messaging.reliableCache",
              "short": "Reliable Message Cache Length (min)",
              "definition": "Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender).",
              "comments": "If this value is missing then the application does not implement (receiver) or depend on (sender) reliable messaging.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ]
            },
            {
              "path": "Conformance.messaging.documentation",
              "short": "Messaging interface behavior details",
              "definition": "Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement.  For example, process for becoming an authorized messaging exchange partner.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.messaging.event",
              "short": "Declare support for this event",
              "definition": "A description of the solution's support for an event at this end-point.",
              "comments": "The same event may be listed up to two times - once as sender and once as receiver.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Conformance.messaging.event.code",
              "short": "Event type",
              "definition": "A coded identifier of a supported messaging event.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "One of the message events defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/message-events"
                }
              }
            },
            {
              "path": "Conformance.messaging.event.category",
              "short": "Consequence | Currency | Notification",
              "definition": "The impact of the content of the message.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The impact of the content of a message.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/message-significance-category"
                }
              }
            },
            {
              "path": "Conformance.messaging.event.mode",
              "short": "sender | receiver",
              "definition": "The mode of this event declaration - whether application is sender or receiver.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The mode of a message conformance statement.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/message-conformance-event-mode"
                }
              }
            },
            {
              "path": "Conformance.messaging.event.focus",
              "short": "Resource that's focus of message",
              "definition": "A resource associated with the event.  This is the resource that defines the event.",
              "comments": "This SHALL be provided if the event type supports multiple different resource types.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "Conformance.messaging.event.request",
              "short": "Profile that describes the request",
              "definition": "Information about the request for this event.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "Conformance.messaging.event.response",
              "short": "Profile that describes the response",
              "definition": "Information about the response for this event.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "Conformance.messaging.event.documentation",
              "short": "Endpoint-specific event documentation",
              "definition": "Guidance on how this event is handled, such as internal system trigger points, business rules, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.document",
              "short": "Document definition",
              "definition": "A document definition.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "cnf-1"
              ]
            },
            {
              "path": "Conformance.document.mode",
              "short": "producer | consumer",
              "definition": "Mode of this document declaration - whether application is producer or consumer.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Whether the application produces or consumes documents.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/document-mode"
                }
              }
            },
            {
              "path": "Conformance.document.documentation",
              "short": "Description of document support",
              "definition": "A description of how the application supports or uses the specified document profile.  For example, when are documents created, what action is taken with consumed documents, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Conformance.document.profile",
              "short": "Constraint on a resource used in the document",
              "definition": "A constraint on a resource used in the document.",
              "comments": "The first resource is the document resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Contract",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Contract",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Contract",
        "name": "Contract",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Contract Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Contract",
              "short": "Contract",
              "definition": "A formal agreement between parties regarding the conduct of business, exchange of information or other matters.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "FinancialContract"
                },
                {
                  "identity": "w5",
                  "map": "financial.other"
                }
              ]
            },
            {
              "path": "Contract.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Contract.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Contract.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Contract.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Contract.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Contract.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Contract.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Contract.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Contract.identifier",
              "short": "Contract identifier",
              "definition": "Unique identifier for this Contract.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "FinancialContract id"
                }
              ]
            },
            {
              "path": "Contract.issued",
              "short": "When this Contract was issued",
              "definition": "When this  Contract was issued.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "FinancialContract effectiveTime"
                }
              ]
            },
            {
              "path": "Contract.applies",
              "short": "Effective time",
              "definition": "Relevant time or time-period when this Contract is applicable.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "FinancialContract activityTime"
                }
              ]
            },
            {
              "path": "Contract.subject",
              "short": "Subject of this Contract",
              "definition": "Who and/or what this Contract is about: typically a Patient, Organization, or valued items such as goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Role"
                }
              ]
            },
            {
              "path": "Contract.authority",
              "short": "Authority under which this Contract has standing",
              "definition": "A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Role Scoper"
                }
              ]
            },
            {
              "path": "Contract.domain",
              "short": "Domain in which this Contract applies",
              "definition": "Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources.",
              "alias": [
                "scope of governance jurisdiction"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ]
            },
            {
              "path": "Contract.type",
              "short": "Contract Tyoe",
              "definition": "Type of Contract such as an insurance policy, real estate contract, a will, power of attorny, Privacy or Security policy , trust framework agreement, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "List of overall contract codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "CNTRCT"
                }
              ]
            },
            {
              "path": "Contract.subType",
              "short": "Contract Subtype",
              "definition": "More specific type or specialization of an overarching or more general contract such as auto insurance, home owner  insurance, prenupial agreement, Advanced-Directive, or privacy consent.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Detailed codes within the above.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-subtype"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "e.g. RECOV"
                }
              ]
            },
            {
              "path": "Contract.action",
              "short": "Contract Action",
              "definition": "Action stipulated by this Contract.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the contract action.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-action"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "e.g. JURISPOL"
                }
              ]
            },
            {
              "path": "Contract.actionReason",
              "short": "Contract Action Reason",
              "definition": "Reason for action stipulated by this Contract.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the contract action reason.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "e.g. QUALIMP"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Actor"
                }
              ],
              "path": "Contract.actor",
              "short": "Contract Actor",
              "definition": "List of Contract actors.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.actor.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.actor.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.actor.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Contract.actor.entity",
              "short": "Contract Actor Type",
              "definition": "Who or what actors are assigned roles in this Contract.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Contract"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ]
            },
            {
              "path": "Contract.actor.role",
              "short": "Contract  Actor Role",
              "definition": "Role type of actors assigned roles in this Contract.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the contract actor role.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-actorrole"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ValuedItem"
                }
              ],
              "path": "Contract.valuedItem",
              "short": "Contract Valued Item",
              "definition": "Contract Valued Item List.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem classCode INVE"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.entity[x]",
              "short": "Contract Valued Item Type",
              "definition": "Specific type of Contract Valued Item that may be priced.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem code"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.identifier",
              "short": "Contract Valued Item Identifier",
              "definition": "Identifies a Contract Valued Item instance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem id"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.effectiveTime",
              "short": "Contract Valued Item Effective Tiem",
              "definition": "Indicates the time during which this Contract ValuedItem information is effective.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem                effectiveTime"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.quantity",
              "short": "Count of Contract Valued Items",
              "definition": "Specifies the units by which the Contract Valued Item is measured or counted, and quantifies the countable or measurable Contract Valued Item instances.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem unitQuantity"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.unitPrice",
              "short": "Contract Valued Item fee, charge, or cost",
              "definition": "A Contract Valued Item unit valuation measure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem unitPriceAmt"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.factor",
              "short": "Contract Valued Item Price Scaling Factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of the Contract Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem factorNumber"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.points",
              "short": "Contract Valued Item Difficulty Scaling Factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Valued Item, such that a monetary amount can be assigned to each point.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem pointNumber"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.net",
              "short": "Total Contract Valued Item Value",
              "definition": "Expresses the product of the Contract Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem netAmt"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Signatory"
                }
              ],
              "path": "Contract.signer",
              "short": "Contract Signer",
              "definition": "Party signing this Contract.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.signer.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.signer.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.signer.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Contract.signer.type",
              "short": "Contract Signer Type",
              "definition": "Role of this Contract signer, e.g. notary, grantee.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "List of parties who may be signing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-signer-type"
                }
              }
            },
            {
              "path": "Contract.signer.party",
              "short": "Contract Signatory Party",
              "definition": "Party which is a signator to this Contract.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ]
            },
            {
              "path": "Contract.signer.signature",
              "short": "Contract Documentation Signature",
              "definition": "Legally binding Contract DSIG signature contents in Base64.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Term"
                }
              ],
              "path": "Contract.term",
              "name": "term",
              "short": "Contract Term List",
              "definition": "One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.term.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.term.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.term.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Contract.term.identifier",
              "short": "Contract Term identifier",
              "definition": "Unique identifier for this particular Contract Provision.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Contract.term.issued",
              "short": "Contract Term Issue Date Time",
              "definition": "When this Contract Provision was issued.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Contract.term.applies",
              "short": "Contract Term Effective Time",
              "definition": "Relevant time or time-period when this Contract Provision is applicable.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Contract.term.type",
              "short": "Contract Term Type",
              "definition": "Type of Contract Provision such as specific requirements, purposes for actions, obligations, prohibitions, e.g. life time maximum benefit.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the types of contract provisions.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-term-type"
                }
              }
            },
            {
              "path": "Contract.term.subType",
              "short": "Contract Term Subtype",
              "definition": "Subtype of this Contract Provision, e.g. life time maximum payment for a contract term for specific valued item, e.g. disability payment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the subtypes of contract provisions.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-term-subtype"
                }
              }
            },
            {
              "path": "Contract.term.subject",
              "short": "Subject of this Contract Term",
              "definition": "Who or what this Contract Provision is about.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "Contract.term.action",
              "short": "Contract Term Action",
              "definition": "Action stipulated by this Contract Provision.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the contract action.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-action"
                }
              }
            },
            {
              "path": "Contract.term.actionReason",
              "short": "Contract Term Action Reason",
              "definition": "Reason or purpose for the action stipulated by this Contract Provision.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the contract action reason.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "TermActor"
                }
              ],
              "path": "Contract.term.actor",
              "short": "Contract Term Actor List",
              "definition": "List of actors participating in this Contract Provision.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.term.actor.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.term.actor.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.term.actor.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Contract.term.actor.entity",
              "short": "Contract Term Actor",
              "definition": "The actor assigned a role in this Contract Provision.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Contract"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ]
            },
            {
              "path": "Contract.term.actor.role",
              "short": "Contract Term Actor Role",
              "definition": "Role played by the actor assigned this role in this Contract Provision.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the contract actor role.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-actorrole"
                }
              }
            },
            {
              "path": "Contract.term.text",
              "short": "Human readable Contract term text",
              "definition": "Human readable form of this Contract Provision.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "TermValuedItem"
                }
              ],
              "path": "Contract.term.valuedItem",
              "short": "Contract Term Valued Item",
              "definition": "Contract Provision Valued Item List.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem classCode INVE"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.entity[x]",
              "short": "Contract Term Valued Item Type",
              "definition": "Specific type of Contract Provision Valued Item that may be priced.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem code"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.identifier",
              "short": "Contract Term Valued Item Identifier",
              "definition": "Identifies a Contract Provision Valued Item instance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem id"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.effectiveTime",
              "short": "Contract Term Valued Item Effective Tiem",
              "definition": "Indicates the time during which this Contract Term ValuedItem information is effective.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem effectiveTime"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.quantity",
              "short": "Contract Term Valued Item Count",
              "definition": "Specifies the units by which the Contract Provision Valued Item is measured or counted, and quantifies the countable or measurable Contract Term Valued Item instances.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem unitQuantity"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.unitPrice",
              "short": "Contract Term Valued Item fee, charge, or cost",
              "definition": "A Contract Provision Valued Item unit valuation measure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem unitPriceAmt"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.factor",
              "short": "Contract Term Valued Item Price Scaling Factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of the Contract Provision Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem factorNumber"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.points",
              "short": "Contract Term Valued Item Difficulty Scaling Factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Provision Valued Item delivered. The concept of Points allows for assignment of point values for a Contract ProvisionValued Item, such that a monetary amount can be assigned to each point.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem pointNumber"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.net",
              "short": "Total Contract Term Valued Item Value",
              "definition": "Expresses the product of the Contract Provision Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ]
            },
            {
              "path": "Contract.term.group",
              "short": "Nested Contract Term Group",
              "definition": "Nested group of Contract Provisions.",
              "min": 0,
              "max": "*",
              "nameReference": "term"
            },
            {
              "path": "Contract.binding[x]",
              "short": "Binding Contract",
              "definition": "Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the \"source of truth\" and which would be the basis for legal action related to enforcement of this Contract.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Composition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                  ]
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "FriendlyLanguage"
                }
              ],
              "path": "Contract.friendly",
              "short": "Contract Friendly Language",
              "definition": "The \"patient friendly language\" versionof the Contract in whole or in parts. \"Patient friendly language\" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.friendly.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.friendly.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.friendly.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Contract.friendly.content[x]",
              "short": "Easily comprehended representation of this Contract",
              "definition": "Human readable rendering of this Contract in a format and representation intended to enhance comprehension and ensure understandability.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Composition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                  ]
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "LegalLanguage"
                }
              ],
              "path": "Contract.legal",
              "short": "Contract Legal Language",
              "definition": "List of Legal expressions or representations of this Contract.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.legal.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.legal.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.legal.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Contract.legal.content[x]",
              "short": "Contract Legal Text",
              "definition": "Contract legal text in human renderable form.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Composition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                  ]
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ComputableLanguage"
                }
              ],
              "path": "Contract.rule",
              "short": "Computable Contract Language",
              "definition": "List of Computable Policy Rule Language Representations of this Contract.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.rule.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.rule.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Contract.rule.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Contract.rule.content[x]",
              "short": "Computable Contract Rules",
              "definition": "Computable Contract conveyed using a policy rule language (e.g. XACML, DKAL, SecPal).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                  ]
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Contract",
              "short": "Contract",
              "definition": "A formal agreement between parties regarding the conduct of business, exchange of information or other matters.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "FinancialContract"
                },
                {
                  "identity": "w5",
                  "map": "financial.other"
                }
              ]
            },
            {
              "path": "Contract.identifier",
              "short": "Contract identifier",
              "definition": "Unique identifier for this Contract.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "FinancialContract id"
                }
              ]
            },
            {
              "path": "Contract.issued",
              "short": "When this Contract was issued",
              "definition": "When this  Contract was issued.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "FinancialContract effectiveTime"
                }
              ]
            },
            {
              "path": "Contract.applies",
              "short": "Effective time",
              "definition": "Relevant time or time-period when this Contract is applicable.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "FinancialContract activityTime"
                }
              ]
            },
            {
              "path": "Contract.subject",
              "short": "Subject of this Contract",
              "definition": "Who and/or what this Contract is about: typically a Patient, Organization, or valued items such as goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Role"
                }
              ]
            },
            {
              "path": "Contract.authority",
              "short": "Authority under which this Contract has standing",
              "definition": "A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Role Scoper"
                }
              ]
            },
            {
              "path": "Contract.domain",
              "short": "Domain in which this Contract applies",
              "definition": "Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources.",
              "alias": [
                "scope of governance jurisdiction"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ]
            },
            {
              "path": "Contract.type",
              "short": "Contract Tyoe",
              "definition": "Type of Contract such as an insurance policy, real estate contract, a will, power of attorny, Privacy or Security policy , trust framework agreement, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "List of overall contract codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "CNTRCT"
                }
              ]
            },
            {
              "path": "Contract.subType",
              "short": "Contract Subtype",
              "definition": "More specific type or specialization of an overarching or more general contract such as auto insurance, home owner  insurance, prenupial agreement, Advanced-Directive, or privacy consent.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Detailed codes within the above.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-subtype"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "e.g. RECOV"
                }
              ]
            },
            {
              "path": "Contract.action",
              "short": "Contract Action",
              "definition": "Action stipulated by this Contract.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the contract action.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-action"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "e.g. JURISPOL"
                }
              ]
            },
            {
              "path": "Contract.actionReason",
              "short": "Contract Action Reason",
              "definition": "Reason for action stipulated by this Contract.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the contract action reason.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "e.g. QUALIMP"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Actor"
                }
              ],
              "path": "Contract.actor",
              "short": "Contract Actor",
              "definition": "List of Contract actors.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.actor.entity",
              "short": "Contract Actor Type",
              "definition": "Who or what actors are assigned roles in this Contract.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Contract"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ]
            },
            {
              "path": "Contract.actor.role",
              "short": "Contract  Actor Role",
              "definition": "Role type of actors assigned roles in this Contract.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the contract actor role.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-actorrole"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ValuedItem"
                }
              ],
              "path": "Contract.valuedItem",
              "short": "Contract Valued Item",
              "definition": "Contract Valued Item List.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem classCode INVE"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.entity[x]",
              "short": "Contract Valued Item Type",
              "definition": "Specific type of Contract Valued Item that may be priced.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem code"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.identifier",
              "short": "Contract Valued Item Identifier",
              "definition": "Identifies a Contract Valued Item instance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem id"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.effectiveTime",
              "short": "Contract Valued Item Effective Tiem",
              "definition": "Indicates the time during which this Contract ValuedItem information is effective.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem                effectiveTime"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.quantity",
              "short": "Count of Contract Valued Items",
              "definition": "Specifies the units by which the Contract Valued Item is measured or counted, and quantifies the countable or measurable Contract Valued Item instances.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem unitQuantity"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.unitPrice",
              "short": "Contract Valued Item fee, charge, or cost",
              "definition": "A Contract Valued Item unit valuation measure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem unitPriceAmt"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.factor",
              "short": "Contract Valued Item Price Scaling Factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of the Contract Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem factorNumber"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.points",
              "short": "Contract Valued Item Difficulty Scaling Factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Valued Item, such that a monetary amount can be assigned to each point.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem pointNumber"
                }
              ]
            },
            {
              "path": "Contract.valuedItem.net",
              "short": "Total Contract Valued Item Value",
              "definition": "Expresses the product of the Contract Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedItem netAmt"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Signatory"
                }
              ],
              "path": "Contract.signer",
              "short": "Contract Signer",
              "definition": "Party signing this Contract.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.signer.type",
              "short": "Contract Signer Type",
              "definition": "Role of this Contract signer, e.g. notary, grantee.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "List of parties who may be signing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-signer-type"
                }
              }
            },
            {
              "path": "Contract.signer.party",
              "short": "Contract Signatory Party",
              "definition": "Party which is a signator to this Contract.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ]
            },
            {
              "path": "Contract.signer.signature",
              "short": "Contract Documentation Signature",
              "definition": "Legally binding Contract DSIG signature contents in Base64.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Term"
                }
              ],
              "path": "Contract.term",
              "name": "term",
              "short": "Contract Term List",
              "definition": "One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.term.identifier",
              "short": "Contract Term identifier",
              "definition": "Unique identifier for this particular Contract Provision.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Contract.term.issued",
              "short": "Contract Term Issue Date Time",
              "definition": "When this Contract Provision was issued.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Contract.term.applies",
              "short": "Contract Term Effective Time",
              "definition": "Relevant time or time-period when this Contract Provision is applicable.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Contract.term.type",
              "short": "Contract Term Type",
              "definition": "Type of Contract Provision such as specific requirements, purposes for actions, obligations, prohibitions, e.g. life time maximum benefit.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the types of contract provisions.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-term-type"
                }
              }
            },
            {
              "path": "Contract.term.subType",
              "short": "Contract Term Subtype",
              "definition": "Subtype of this Contract Provision, e.g. life time maximum payment for a contract term for specific valued item, e.g. disability payment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the subtypes of contract provisions.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-term-subtype"
                }
              }
            },
            {
              "path": "Contract.term.subject",
              "short": "Subject of this Contract Term",
              "definition": "Who or what this Contract Provision is about.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "Contract.term.action",
              "short": "Contract Term Action",
              "definition": "Action stipulated by this Contract Provision.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the contract action.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-action"
                }
              }
            },
            {
              "path": "Contract.term.actionReason",
              "short": "Contract Term Action Reason",
              "definition": "Reason or purpose for the action stipulated by this Contract Provision.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the contract action reason.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "TermActor"
                }
              ],
              "path": "Contract.term.actor",
              "short": "Contract Term Actor List",
              "definition": "List of actors participating in this Contract Provision.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.term.actor.entity",
              "short": "Contract Term Actor",
              "definition": "The actor assigned a role in this Contract Provision.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Contract"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ]
            },
            {
              "path": "Contract.term.actor.role",
              "short": "Contract Term Actor Role",
              "definition": "Role played by the actor assigned this role in this Contract Provision.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Detailed codes for the contract actor role.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contract-actorrole"
                }
              }
            },
            {
              "path": "Contract.term.text",
              "short": "Human readable Contract term text",
              "definition": "Human readable form of this Contract Provision.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "TermValuedItem"
                }
              ],
              "path": "Contract.term.valuedItem",
              "short": "Contract Term Valued Item",
              "definition": "Contract Provision Valued Item List.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem classCode INVE"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.entity[x]",
              "short": "Contract Term Valued Item Type",
              "definition": "Specific type of Contract Provision Valued Item that may be priced.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem code"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.identifier",
              "short": "Contract Term Valued Item Identifier",
              "definition": "Identifies a Contract Provision Valued Item instance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem id"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.effectiveTime",
              "short": "Contract Term Valued Item Effective Tiem",
              "definition": "Indicates the time during which this Contract Term ValuedItem information is effective.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem effectiveTime"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.quantity",
              "short": "Contract Term Valued Item Count",
              "definition": "Specifies the units by which the Contract Provision Valued Item is measured or counted, and quantifies the countable or measurable Contract Term Valued Item instances.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem unitQuantity"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.unitPrice",
              "short": "Contract Term Valued Item fee, charge, or cost",
              "definition": "A Contract Provision Valued Item unit valuation measure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem unitPriceAmt"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.factor",
              "short": "Contract Term Valued Item Price Scaling Factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of the Contract Provision Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem factorNumber"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.points",
              "short": "Contract Term Valued Item Difficulty Scaling Factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Provision Valued Item delivered. The concept of Points allows for assignment of point values for a Contract ProvisionValued Item, such that a monetary amount can be assigned to each point.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "COCT_RM440000UV09 ValuedUnitItem pointNumber"
                }
              ]
            },
            {
              "path": "Contract.term.valuedItem.net",
              "short": "Total Contract Term Valued Item Value",
              "definition": "Expresses the product of the Contract Provision Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ]
            },
            {
              "path": "Contract.term.group",
              "short": "Nested Contract Term Group",
              "definition": "Nested group of Contract Provisions.",
              "min": 0,
              "max": "*",
              "nameReference": "term"
            },
            {
              "path": "Contract.binding[x]",
              "short": "Binding Contract",
              "definition": "Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the \"source of truth\" and which would be the basis for legal action related to enforcement of this Contract.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Composition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                  ]
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "FriendlyLanguage"
                }
              ],
              "path": "Contract.friendly",
              "short": "Contract Friendly Language",
              "definition": "The \"patient friendly language\" versionof the Contract in whole or in parts. \"Patient friendly language\" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.friendly.content[x]",
              "short": "Easily comprehended representation of this Contract",
              "definition": "Human readable rendering of this Contract in a format and representation intended to enhance comprehension and ensure understandability.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Composition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                  ]
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "LegalLanguage"
                }
              ],
              "path": "Contract.legal",
              "short": "Contract Legal Language",
              "definition": "List of Legal expressions or representations of this Contract.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.legal.content[x]",
              "short": "Contract Legal Text",
              "definition": "Contract legal text in human renderable form.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Composition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                  ]
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ComputableLanguage"
                }
              ],
              "path": "Contract.rule",
              "short": "Computable Contract Language",
              "definition": "List of Computable Policy Rule Language Representations of this Contract.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Contract.rule.content[x]",
              "short": "Computable Contract Rules",
              "definition": "Computable Contract conveyed using a policy rule language (e.g. XACML, DKAL, SecPal).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                  ]
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Coverage",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Coverage",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Coverage",
        "name": "Coverage",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Coverage Resource",
        "requirements": "Health care programs and insurers are significant payors of health service costs.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "cpha3pharm",
            "uri": "http://www.pharmacists.ca/",
            "name": "Canadian Pharmacy Associaiton eclaims standard"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "cdanetv4",
            "uri": "http://www.cda-adc.ca/en/services/cdanet/",
            "name": "Canadian Dental Association eclaims standard"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Coverage",
              "short": "Insurance or medical plan",
              "definition": "Financial instrument which may be used to pay for or reimburse health care products and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Coverage"
                },
                {
                  "identity": "w5",
                  "map": "financial.support"
                }
              ]
            },
            {
              "path": "Coverage.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Coverage.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Coverage.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Coverage.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Coverage.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Coverage.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Coverage.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Coverage.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Coverage.issuer",
              "short": "An identifier for the plan issuer",
              "definition": "The program or plan underwriter or payor.",
              "requirements": "Need to identify the issuer to target for processing and for coordination of benefit processing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cpha3pharm",
                  "map": "C.30"
                },
                {
                  "identity": "v2",
                  "map": "IN1-3"
                },
                {
                  "identity": "cdanetv4",
                  "map": "A05"
                }
              ]
            },
            {
              "path": "Coverage.bin",
              "short": "BIN Number",
              "definition": "Business Identification Number (BIN number) used to identify the routing  of eclaims if the insurer themselves don't have a BIN number for all of their business.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ]
            },
            {
              "path": "Coverage.period",
              "short": "Coverage start and end dates",
              "definition": "Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IN1-12 / IN1-13"
                }
              ]
            },
            {
              "path": "Coverage.type",
              "short": "Type of coverage",
              "definition": "The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health.",
              "requirements": "The order of application of coverages is dependent on the types of coverage.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The type of insurance: public health, worker compensation; private accident, auto, private health, etc.).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActCoverageTypeCode"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IN1-15"
                }
              ]
            },
            {
              "path": "Coverage.subscriberId",
              "short": "Subscriber ID",
              "definition": "The id issued to the subscriber.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Coverage.identifier",
              "short": "The primary coverage ID",
              "definition": "The main (and possibly only) identifier for the coverage - often referred to as a Member Id, Subscriber Id, Certificate number or Personal Health Number or Case ID.",
              "requirements": "This value may uniquely identify the coverage or it may be used in conjunction with the additional identifiers below.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cpha3pharm",
                  "map": "C.32, C.33, C.39"
                },
                {
                  "identity": "v2",
                  "map": "IN1-2"
                },
                {
                  "identity": "cdanetv4",
                  "map": "C02"
                }
              ]
            },
            {
              "path": "Coverage.group",
              "short": "An identifier for the group",
              "definition": "Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cpha3pharm",
                  "map": "C.31"
                },
                {
                  "identity": "v2",
                  "map": "IN1-8"
                },
                {
                  "identity": "cdanetv4",
                  "map": "C11 (Division,Section)"
                }
              ]
            },
            {
              "path": "Coverage.plan",
              "short": "An identifier for the plan",
              "definition": "Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IN1-35"
                },
                {
                  "identity": "cdanetv4",
                  "map": "C01"
                }
              ]
            },
            {
              "path": "Coverage.subPlan",
              "short": "An identifier for the subsection of the plan",
              "definition": "Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IN1-10"
                }
              ]
            },
            {
              "path": "Coverage.dependent",
              "short": "The dependent number",
              "definition": "A unique identifier for a dependent under the coverage.",
              "requirements": "For some coverage a single identifier is issued to the PolicyHolder and dependent number issues to each to each of their dependents to track and manage the plan.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "- No exact HL7 v2 equivalent concept seems to exist; instance relationship can be inferred if ( ( PID-3 ??? IN1-49 ) & ( ?? IN2-72 ) )"
                },
                {
                  "identity": "cdanetv4",
                  "map": "C17"
                }
              ]
            },
            {
              "path": "Coverage.sequence",
              "short": "The plan instance or sequence counter",
              "definition": "An optional counter for a particular instance of the identified coverage which increments upon each renewal.",
              "requirements": "Some coverage, for example social plans, may be offered in short time increments, for example for a week or a month at a time, so while the rest of the plan details and identifiers may remain constant over time, the instance is incremented with each renewal and provided to the covered party on their 'card'.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "No HL7 v2 equivalent concept seems to exist"
                },
                {
                  "identity": "cdanetv4",
                  "map": "D11"
                }
              ]
            },
            {
              "path": "Coverage.subscriber",
              "short": "Plan holder information",
              "definition": "The party who 'owns' the insurance contractual relationship to the policy or to whom the benefit of the policy is due.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "cpha3pharm",
                  "map": "C.35"
                },
                {
                  "identity": "v2",
                  "map": "IN1-16, 18,  19-name of insured, address, date of birth"
                },
                {
                  "identity": "cdanetv4",
                  "map": "D01 through D09"
                }
              ]
            },
            {
              "path": "Coverage.network",
              "short": "Insurer network",
              "definition": "The identifier for a community of providers.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "D10"
                }
              ]
            },
            {
              "path": "Coverage.contract",
              "short": "Contract details",
              "definition": "The policy(s) which constitute this insurance coverage.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Contract"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "cpha3pharm",
                  "map": "C.35"
                },
                {
                  "identity": "v2",
                  "map": "IN1-16, 18,  19"
                },
                {
                  "identity": "cdanetv4",
                  "map": "D01 through D09"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Coverage",
              "short": "Insurance or medical plan",
              "definition": "Financial instrument which may be used to pay for or reimburse health care products and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Coverage"
                },
                {
                  "identity": "w5",
                  "map": "financial.support"
                }
              ]
            },
            {
              "path": "Coverage.issuer",
              "short": "An identifier for the plan issuer",
              "definition": "The program or plan underwriter or payor.",
              "requirements": "Need to identify the issuer to target for processing and for coordination of benefit processing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cpha3pharm",
                  "map": "C.30"
                },
                {
                  "identity": "v2",
                  "map": "IN1-3"
                },
                {
                  "identity": "cdanetv4",
                  "map": "A05"
                }
              ]
            },
            {
              "path": "Coverage.bin",
              "short": "BIN Number",
              "definition": "Business Identification Number (BIN number) used to identify the routing  of eclaims if the insurer themselves don't have a BIN number for all of their business.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ]
            },
            {
              "path": "Coverage.period",
              "short": "Coverage start and end dates",
              "definition": "Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IN1-12 / IN1-13"
                }
              ]
            },
            {
              "path": "Coverage.type",
              "short": "Type of coverage",
              "definition": "The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health.",
              "requirements": "The order of application of coverages is dependent on the types of coverage.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The type of insurance: public health, worker compensation; private accident, auto, private health, etc.).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActCoverageTypeCode"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IN1-15"
                }
              ]
            },
            {
              "path": "Coverage.subscriberId",
              "short": "Subscriber ID",
              "definition": "The id issued to the subscriber.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Coverage.identifier",
              "short": "The primary coverage ID",
              "definition": "The main (and possibly only) identifier for the coverage - often referred to as a Member Id, Subscriber Id, Certificate number or Personal Health Number or Case ID.",
              "requirements": "This value may uniquely identify the coverage or it may be used in conjunction with the additional identifiers below.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cpha3pharm",
                  "map": "C.32, C.33, C.39"
                },
                {
                  "identity": "v2",
                  "map": "IN1-2"
                },
                {
                  "identity": "cdanetv4",
                  "map": "C02"
                }
              ]
            },
            {
              "path": "Coverage.group",
              "short": "An identifier for the group",
              "definition": "Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cpha3pharm",
                  "map": "C.31"
                },
                {
                  "identity": "v2",
                  "map": "IN1-8"
                },
                {
                  "identity": "cdanetv4",
                  "map": "C11 (Division,Section)"
                }
              ]
            },
            {
              "path": "Coverage.plan",
              "short": "An identifier for the plan",
              "definition": "Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IN1-35"
                },
                {
                  "identity": "cdanetv4",
                  "map": "C01"
                }
              ]
            },
            {
              "path": "Coverage.subPlan",
              "short": "An identifier for the subsection of the plan",
              "definition": "Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IN1-10"
                }
              ]
            },
            {
              "path": "Coverage.dependent",
              "short": "The dependent number",
              "definition": "A unique identifier for a dependent under the coverage.",
              "requirements": "For some coverage a single identifier is issued to the PolicyHolder and dependent number issues to each to each of their dependents to track and manage the plan.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "- No exact HL7 v2 equivalent concept seems to exist; instance relationship can be inferred if ( ( PID-3 ??? IN1-49 ) & ( ?? IN2-72 ) )"
                },
                {
                  "identity": "cdanetv4",
                  "map": "C17"
                }
              ]
            },
            {
              "path": "Coverage.sequence",
              "short": "The plan instance or sequence counter",
              "definition": "An optional counter for a particular instance of the identified coverage which increments upon each renewal.",
              "requirements": "Some coverage, for example social plans, may be offered in short time increments, for example for a week or a month at a time, so while the rest of the plan details and identifiers may remain constant over time, the instance is incremented with each renewal and provided to the covered party on their 'card'.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "No HL7 v2 equivalent concept seems to exist"
                },
                {
                  "identity": "cdanetv4",
                  "map": "D11"
                }
              ]
            },
            {
              "path": "Coverage.subscriber",
              "short": "Plan holder information",
              "definition": "The party who 'owns' the insurance contractual relationship to the policy or to whom the benefit of the policy is due.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "cpha3pharm",
                  "map": "C.35"
                },
                {
                  "identity": "v2",
                  "map": "IN1-16, 18,  19-name of insured, address, date of birth"
                },
                {
                  "identity": "cdanetv4",
                  "map": "D01 through D09"
                }
              ]
            },
            {
              "path": "Coverage.network",
              "short": "Insurer network",
              "definition": "The identifier for a community of providers.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "D10"
                }
              ]
            },
            {
              "path": "Coverage.contract",
              "short": "Contract details",
              "definition": "The policy(s) which constitute this insurance coverage.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Contract"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "cpha3pharm",
                  "map": "C.35"
                },
                {
                  "identity": "v2",
                  "map": "IN1-16, 18,  19"
                },
                {
                  "identity": "cdanetv4",
                  "map": "D01 through D09"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DataElement",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DataElement",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DataElement",
        "name": "DataElement",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DataElement Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "dex",
            "uri": "http://wiki.ihe.net/index.php?title=Data_Element_Exchange",
            "name": "IHE Data Element Exchange (DEX)"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "iso11179",
            "uri": "http://metadata-standards.org/11179/",
            "name": "ISO 11179"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "loinc",
            "uri": "http://loinc.org",
            "name": "LOINC"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "DataElement",
              "short": "Resource data element",
              "definition": "The formal description of a single piece of information that can be gathered and reported.",
              "comments": "Often called a clinical template.",
              "alias": [
                "Master Observation",
                "Data Element",
                "CDE"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "dex",
                  "map": "RetrieveMetadata response"
                },
                {
                  "identity": "v2",
                  "map": "OM1"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=DEFN]"
                },
                {
                  "identity": "iso11179",
                  "map": "Data_Element"
                },
                {
                  "identity": "w5",
                  "map": "conformance.content"
                }
              ]
            },
            {
              "path": "DataElement.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DataElement.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DataElement.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DataElement.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "DataElement.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DataElement.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DataElement.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DataElement.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DataElement.url",
              "short": "Globally unique logical id for data element",
              "definition": "An absolute URL that is used to identify this data element when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this data element is (or will be) published.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./id[use=INSTANCE]"
                },
                {
                  "identity": "iso11179",
                  "map": "(Identified_Item).identifier  As assigned by registering authority"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DataElement.identifier",
              "short": "Logical id to reference this data element",
              "definition": "Formal identifier that is used to identify this data element when it is represented in other formats, or referenced in a specification, model, design or an instance.",
              "comments": "Typically, this is used for values that can go in a v3 II data type.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dex",
                  "map": "id"
                },
                {
                  "identity": "loinc",
                  "map": "LOINC_NUM (the code is the identifier)"
                },
                {
                  "identity": "v2",
                  "map": "OM1.2"
                },
                {
                  "identity": "rim",
                  "map": "./id[use=BUS]"
                },
                {
                  "identity": "iso11179",
                  "map": "(Identified_Item).identifier"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DataElement.version",
              "short": "Logical id for this version of the data element",
              "definition": "The identifier that is used to identify this version of the data element when it is referenced in a StructureDefinition, Questionnaire or instance. This is an arbitrary value managed by the definition author manually.",
              "comments": "N/A.",
              "requirements": "There may be multiple resource versions of the data element that have this same identifier. The resource version id will change for technical reasons, whereas the stated version number needs to be under the author's control.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dex",
                  "map": "version"
                },
                {
                  "identity": "loinc",
                  "map": "N/A"
                },
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "./id[use=VER]"
                },
                {
                  "identity": "iso11179",
                  "map": "(Identified_Item).identifier.version"
                },
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "DataElement.name",
              "short": "Descriptive label for this element definition",
              "definition": "The term used by humans to refer to the data element.  Should ideally be unique within the context in which the data element is expected to be used.",
              "comments": "This may be similar to the question used to prompt someone for a data element value, but the purpose is communicating about the data element, not asking the question.  (Refer to the 'question' element for the latter.).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dex",
                  "map": "displayName"
                },
                {
                  "identity": "loinc",
                  "map": "LONG_COMMON_NAME"
                },
                {
                  "identity": "v2",
                  "map": "OM1.11"
                },
                {
                  "identity": "rim",
                  "map": "./title"
                },
                {
                  "identity": "iso11179",
                  "map": "(Designatable_Item).designation.sign  acceptability=preferred in default context"
                }
              ]
            },
            {
              "path": "DataElement.status",
              "short": "draft | active | retired",
              "definition": "The status of the data element.",
              "requirements": "Allows filtering of data elements that are appropriate for use.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "loinc",
                  "map": "STATUS"
                },
                {
                  "identity": "v2",
                  "map": "MFE.1"
                },
                {
                  "identity": "rim",
                  "map": "./status (draft = new  active = active  retired = aborted)"
                },
                {
                  "identity": "iso11179",
                  "map": "(Administered_item).registration.state  new = Incomplete, Candidate, Recorded, Qualified  active = Standard, Preferred Standard, Application  retired = Retired, Superseded, Historical"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "DataElement.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "A flag to indicate that this search data element definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "comments": "Allows filtering of search data element definitions that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=\"experimental\"].value[type=BL]"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DataElement.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the data element.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the data element.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dex",
                  "map": "registrationAuthority"
                },
                {
                  "identity": "loinc",
                  "map": "Fixed to Regenstrief or SOURCE"
                },
                {
                  "identity": "v2",
                  "map": "OM1.16"
                },
                {
                  "identity": "rim",
                  "map": "./participation[typeCode=AUT]/role[classCode=ASSIGN]/scoper[classCode=ORG,determinerCode=INSTANCE]/name"
                },
                {
                  "identity": "iso11179",
                  "map": "(Administered_Item).stewardship_record.organization.name"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "DataElement.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "loinc",
                  "map": "N/A"
                },
                {
                  "identity": "v2",
                  "map": "OM1.17"
                },
                {
                  "identity": "rim",
                  "map": "./participation[typeCode=AUT]/role[classCode=ASSIGN]/scoper[classCode=ORG,determinerCode=INSTANCE]"
                },
                {
                  "identity": "iso11179",
                  "map": "(Administered_Item).stewardship_record.organization.[email_address, phone_number, uri]"
                }
              ]
            },
            {
              "path": "DataElement.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DataElement.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DataElement.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DataElement.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the data element.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./name"
                }
              ]
            },
            {
              "path": "DataElement.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./telecom"
                }
              ]
            },
            {
              "path": "DataElement.date",
              "short": "Date for this version of the data element",
              "definition": "The date this version of the data element was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the data element  changes.",
              "comments": "This refers to the \"business\" version, the DataElement.version which changes based on business processes.  It does not refer to the date of the RESTful version which is part of the resource metadata. Additional specific dates may be added as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dex",
                  "map": "revisionDate"
                },
                {
                  "identity": "loinc",
                  "map": "DATE_LAST_CHANGED"
                },
                {
                  "identity": "v2",
                  "map": "OM1.21"
                },
                {
                  "identity": "rim",
                  "map": "./participation[typeCode=AUT]/time"
                },
                {
                  "identity": "iso11179",
                  "map": "(Administered_item).last_change_date"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "DataElement.useContext",
              "short": "Content intends to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of data element definitions.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              },
              "mapping": [
                {
                  "identity": "loinc",
                  "map": "COMPONENT, PROPERTY, TIME_ASPCT, SYSTEM, SCALE_TYP, METHOD_TYP, CLASS, CLASSTYPE, ORDER_OBS, DOCUMENT_SECTION, HL7_ATTACHMENT_STRUCTURE"
                },
                {
                  "identity": "v2",
                  "map": "OM1.18, OM1.42, OM1.46, OM7.3"
                },
                {
                  "identity": "rim",
                  "map": "./inboundRelationship[typeCode=SUBJ]/source[classCode=LIST, moodCode=EVN]/code"
                },
                {
                  "identity": "iso11179",
                  "map": "(Classifiable_Item).classifier"
                }
              ]
            },
            {
              "path": "DataElement.copyright",
              "short": "Use and/or publishing restrictions",
              "definition": "A copyright statement relating to the definition of the data element. Copyright statements are generally legal restrictions on the use and publishing of the details of the definition of the data element.",
              "comments": "The copyright statement does not apply to values for the data element, only to its definition.",
              "alias": [
                "License",
                "Restrictions"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./inboundRelationship[typeCode=SUBJ]/source[classCode=CONTRACT,moodCode=EVN].text"
                }
              ]
            },
            {
              "path": "DataElement.stringency",
              "short": "comparable | fully-specified | equivalent | convertable | scaleable | flexible",
              "definition": "Identifies how precise the data element is in its definition.",
              "requirements": "Allows determining the degree of comparability of data element instances. Less granular data elements result in data that is less comparable (or at least requires more work to compare).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates the degree of precision of the data element definition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/dataelement-stringency"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "./target[typeCode=SUBJ]/source[classCode=OBS, moodCode=EVN, code=\"granularity\"]/value"
                }
              ]
            },
            {
              "path": "DataElement.mapping",
              "short": "External specification mapped to",
              "definition": "Identifies a specification (other than a terminology) that the elements which make up the DataElement have some correspondence with.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "dex",
                  "map": "100;0"
                },
                {
                  "identity": "rim",
                  "map": "N/A (MIF)"
                }
              ]
            },
            {
              "path": "DataElement.mapping.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DataElement.mapping.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DataElement.mapping.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DataElement.mapping.identity",
              "short": "Internal id when this mapping is used",
              "definition": "An internal id that is used to identify this mapping set when specific mappings are made on a per-element basis.",
              "comments": "The specification is described once, with general comments, and then specific mappings are made that reference this declaration.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A (MIF)"
                }
              ]
            },
            {
              "path": "DataElement.mapping.uri",
              "short": "Identifies what this mapping refers to",
              "definition": "An absolute URI that identifies the specification that this mapping is expressed to.",
              "comments": "A formal identity for the specification being mapped to helps with identifying maps consistently.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A (MIF)"
                }
              ]
            },
            {
              "path": "DataElement.mapping.name",
              "short": "Names what this mapping refers to",
              "definition": "A name for the specification that is being mapped to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A (MIF)"
                }
              ]
            },
            {
              "path": "DataElement.mapping.comments",
              "short": "Versions, Issues, Scope limitations etc.",
              "definition": "Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A (MIF)"
                }
              ]
            },
            {
              "path": "DataElement.element",
              "short": "Definition of element",
              "definition": "Defines the structure, type, allowed values and other constraining characteristics of the data element.",
              "comments": "For simple data types there will only be one repetition.  For complex data types, multiple repetitions will be present defining a nested structure using the \"path\" element.",
              "requirements": "1.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "ElementDefinition"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "base.empty()"
                    }
                  ],
                  "key": "dae-1",
                  "severity": "error",
                  "human": "No base allowed",
                  "xpath": "not(exists(f:base))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "slicing.empty()"
                    }
                  ],
                  "key": "dae-2",
                  "severity": "error",
                  "human": "No slicing allowed",
                  "xpath": "not(exists(f:slicing))"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A (MIF)"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "DataElement",
              "short": "Resource data element",
              "definition": "The formal description of a single piece of information that can be gathered and reported.",
              "comments": "Often called a clinical template.",
              "alias": [
                "Master Observation",
                "Data Element",
                "CDE"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "dex",
                  "map": "RetrieveMetadata response"
                },
                {
                  "identity": "v2",
                  "map": "OM1"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=DEFN]"
                },
                {
                  "identity": "iso11179",
                  "map": "Data_Element"
                },
                {
                  "identity": "w5",
                  "map": "conformance.content"
                }
              ]
            },
            {
              "path": "DataElement.url",
              "short": "Globally unique logical id for data element",
              "definition": "An absolute URL that is used to identify this data element when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this data element is (or will be) published.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./id[use=INSTANCE]"
                },
                {
                  "identity": "iso11179",
                  "map": "(Identified_Item).identifier  As assigned by registering authority"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DataElement.identifier",
              "short": "Logical id to reference this data element",
              "definition": "Formal identifier that is used to identify this data element when it is represented in other formats, or referenced in a specification, model, design or an instance.",
              "comments": "Typically, this is used for values that can go in a v3 II data type.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dex",
                  "map": "id"
                },
                {
                  "identity": "loinc",
                  "map": "LOINC_NUM (the code is the identifier)"
                },
                {
                  "identity": "v2",
                  "map": "OM1.2"
                },
                {
                  "identity": "rim",
                  "map": "./id[use=BUS]"
                },
                {
                  "identity": "iso11179",
                  "map": "(Identified_Item).identifier"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DataElement.version",
              "short": "Logical id for this version of the data element",
              "definition": "The identifier that is used to identify this version of the data element when it is referenced in a StructureDefinition, Questionnaire or instance. This is an arbitrary value managed by the definition author manually.",
              "comments": "N/A.",
              "requirements": "There may be multiple resource versions of the data element that have this same identifier. The resource version id will change for technical reasons, whereas the stated version number needs to be under the author's control.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dex",
                  "map": "version"
                },
                {
                  "identity": "loinc",
                  "map": "N/A"
                },
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "./id[use=VER]"
                },
                {
                  "identity": "iso11179",
                  "map": "(Identified_Item).identifier.version"
                },
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "DataElement.name",
              "short": "Descriptive label for this element definition",
              "definition": "The term used by humans to refer to the data element.  Should ideally be unique within the context in which the data element is expected to be used.",
              "comments": "This may be similar to the question used to prompt someone for a data element value, but the purpose is communicating about the data element, not asking the question.  (Refer to the 'question' element for the latter.).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dex",
                  "map": "displayName"
                },
                {
                  "identity": "loinc",
                  "map": "LONG_COMMON_NAME"
                },
                {
                  "identity": "v2",
                  "map": "OM1.11"
                },
                {
                  "identity": "rim",
                  "map": "./title"
                },
                {
                  "identity": "iso11179",
                  "map": "(Designatable_Item).designation.sign  acceptability=preferred in default context"
                }
              ]
            },
            {
              "path": "DataElement.status",
              "short": "draft | active | retired",
              "definition": "The status of the data element.",
              "requirements": "Allows filtering of data elements that are appropriate for use.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "loinc",
                  "map": "STATUS"
                },
                {
                  "identity": "v2",
                  "map": "MFE.1"
                },
                {
                  "identity": "rim",
                  "map": "./status (draft = new  active = active  retired = aborted)"
                },
                {
                  "identity": "iso11179",
                  "map": "(Administered_item).registration.state  new = Incomplete, Candidate, Recorded, Qualified  active = Standard, Preferred Standard, Application  retired = Retired, Superseded, Historical"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "DataElement.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "A flag to indicate that this search data element definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "comments": "Allows filtering of search data element definitions that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=\"experimental\"].value[type=BL]"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DataElement.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the data element.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the data element.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dex",
                  "map": "registrationAuthority"
                },
                {
                  "identity": "loinc",
                  "map": "Fixed to Regenstrief or SOURCE"
                },
                {
                  "identity": "v2",
                  "map": "OM1.16"
                },
                {
                  "identity": "rim",
                  "map": "./participation[typeCode=AUT]/role[classCode=ASSIGN]/scoper[classCode=ORG,determinerCode=INSTANCE]/name"
                },
                {
                  "identity": "iso11179",
                  "map": "(Administered_Item).stewardship_record.organization.name"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "DataElement.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "loinc",
                  "map": "N/A"
                },
                {
                  "identity": "v2",
                  "map": "OM1.17"
                },
                {
                  "identity": "rim",
                  "map": "./participation[typeCode=AUT]/role[classCode=ASSIGN]/scoper[classCode=ORG,determinerCode=INSTANCE]"
                },
                {
                  "identity": "iso11179",
                  "map": "(Administered_Item).stewardship_record.organization.[email_address, phone_number, uri]"
                }
              ]
            },
            {
              "path": "DataElement.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the data element.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./name"
                }
              ]
            },
            {
              "path": "DataElement.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./telecom"
                }
              ]
            },
            {
              "path": "DataElement.date",
              "short": "Date for this version of the data element",
              "definition": "The date this version of the data element was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the data element  changes.",
              "comments": "This refers to the \"business\" version, the DataElement.version which changes based on business processes.  It does not refer to the date of the RESTful version which is part of the resource metadata. Additional specific dates may be added as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dex",
                  "map": "revisionDate"
                },
                {
                  "identity": "loinc",
                  "map": "DATE_LAST_CHANGED"
                },
                {
                  "identity": "v2",
                  "map": "OM1.21"
                },
                {
                  "identity": "rim",
                  "map": "./participation[typeCode=AUT]/time"
                },
                {
                  "identity": "iso11179",
                  "map": "(Administered_item).last_change_date"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "DataElement.useContext",
              "short": "Content intends to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of data element definitions.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              },
              "mapping": [
                {
                  "identity": "loinc",
                  "map": "COMPONENT, PROPERTY, TIME_ASPCT, SYSTEM, SCALE_TYP, METHOD_TYP, CLASS, CLASSTYPE, ORDER_OBS, DOCUMENT_SECTION, HL7_ATTACHMENT_STRUCTURE"
                },
                {
                  "identity": "v2",
                  "map": "OM1.18, OM1.42, OM1.46, OM7.3"
                },
                {
                  "identity": "rim",
                  "map": "./inboundRelationship[typeCode=SUBJ]/source[classCode=LIST, moodCode=EVN]/code"
                },
                {
                  "identity": "iso11179",
                  "map": "(Classifiable_Item).classifier"
                }
              ]
            },
            {
              "path": "DataElement.copyright",
              "short": "Use and/or publishing restrictions",
              "definition": "A copyright statement relating to the definition of the data element. Copyright statements are generally legal restrictions on the use and publishing of the details of the definition of the data element.",
              "comments": "The copyright statement does not apply to values for the data element, only to its definition.",
              "alias": [
                "License",
                "Restrictions"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./inboundRelationship[typeCode=SUBJ]/source[classCode=CONTRACT,moodCode=EVN].text"
                }
              ]
            },
            {
              "path": "DataElement.stringency",
              "short": "comparable | fully-specified | equivalent | convertable | scaleable | flexible",
              "definition": "Identifies how precise the data element is in its definition.",
              "requirements": "Allows determining the degree of comparability of data element instances. Less granular data elements result in data that is less comparable (or at least requires more work to compare).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates the degree of precision of the data element definition.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/dataelement-stringency"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "./target[typeCode=SUBJ]/source[classCode=OBS, moodCode=EVN, code=\"granularity\"]/value"
                }
              ]
            },
            {
              "path": "DataElement.mapping",
              "short": "External specification mapped to",
              "definition": "Identifies a specification (other than a terminology) that the elements which make up the DataElement have some correspondence with.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "dex",
                  "map": "100;0"
                },
                {
                  "identity": "rim",
                  "map": "N/A (MIF)"
                }
              ]
            },
            {
              "path": "DataElement.mapping.identity",
              "short": "Internal id when this mapping is used",
              "definition": "An internal id that is used to identify this mapping set when specific mappings are made on a per-element basis.",
              "comments": "The specification is described once, with general comments, and then specific mappings are made that reference this declaration.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A (MIF)"
                }
              ]
            },
            {
              "path": "DataElement.mapping.uri",
              "short": "Identifies what this mapping refers to",
              "definition": "An absolute URI that identifies the specification that this mapping is expressed to.",
              "comments": "A formal identity for the specification being mapped to helps with identifying maps consistently.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A (MIF)"
                }
              ]
            },
            {
              "path": "DataElement.mapping.name",
              "short": "Names what this mapping refers to",
              "definition": "A name for the specification that is being mapped to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A (MIF)"
                }
              ]
            },
            {
              "path": "DataElement.mapping.comments",
              "short": "Versions, Issues, Scope limitations etc.",
              "definition": "Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A (MIF)"
                }
              ]
            },
            {
              "path": "DataElement.element",
              "short": "Definition of element",
              "definition": "Defines the structure, type, allowed values and other constraining characteristics of the data element.",
              "comments": "For simple data types there will only be one repetition.  For complex data types, multiple repetitions will be present defining a nested structure using the \"path\" element.",
              "requirements": "1.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "ElementDefinition"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "base.empty()"
                    }
                  ],
                  "key": "dae-1",
                  "severity": "error",
                  "human": "No base allowed",
                  "xpath": "not(exists(f:base))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "slicing.empty()"
                    }
                  ],
                  "key": "dae-2",
                  "severity": "error",
                  "human": "No slicing allowed",
                  "xpath": "not(exists(f:slicing))"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A (MIF)"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/DecisionSupportRule-evaluate",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "DecisionSupportRule-evaluate",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/DecisionSupportRule-evaluate",
        "name": "Evaluate",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "The evaluate operation requests clinical decision support guidance based on a specific decision support module",
        "code": "evaluate",
        "system": false,
        "instance": true,
        "parameter": [
          {
            "name": "requestId",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "An optional client-provided identifier to track the request",
            "type": "code"
          },
          {
            "name": "evaluateAtDateTime",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "An optional date and time specifying that the evaluation should be performed as thought it was the given date and time. The most direct implication of this is that references to \"Now\" within the evaluation logic of the module should result in this value. In addition, wherever possible, the data accessed by the module should appear as though it was accessed at this time. The evaluateAtDateTime value may be any time in the past or future, enabling both retrospective and prospective scenarios. If no value is provided, the date and time of the request is assumed",
            "type": "datetime"
          },
          {
            "name": "inputParameters",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The input parameters for a request, if any. These parameters are defined by the module that is the target of the evaluation, and supply the input information to the module.",
            "type": "Parameters"
          },
          {
            "name": "setting",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The current setting of the request (inpatient, outpatient, etc)",
            "type": "CodeableConcept"
          },
          {
            "name": "settingContext",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "Additional detail about the setting of the request, if any",
            "type": "CodeableConcept"
          },
          {
            "name": "return",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "The result of the request as a GuidanceResponse resource. Output parameters, if any, will be contained in the parameters element of the response",
            "type": "GuidanceResponse"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DecisionSupportRule",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DecisionSupportRule",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DecisionSupportRule",
        "name": "DecisionSupportRule",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Decision Support)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DecisionSupportRule Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "DecisionSupportRule",
              "short": "A decision support rule",
              "definition": "This resource defines a decision support rule of the form [on Event] if Condition then Action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DecisionSupportRule.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DecisionSupportRule.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DecisionSupportRule.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "DecisionSupportRule.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DecisionSupportRule.moduleMetadata",
              "short": "Module information for the rule",
              "definition": "A reference to a ModuleMetadata resource that provides metadata for the rule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleMetadata"
                  ]
                }
              ]
            },
            {
              "path": "DecisionSupportRule.library",
              "short": "A library containing logic used by the rule",
              "definition": "A reference to a Library containing the formal logic used by the rule.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Library"
                  ]
                }
              ]
            },
            {
              "path": "DecisionSupportRule.trigger",
              "definition": "A description of a triggering event.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.trigger.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.trigger.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.trigger.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.trigger.type",
              "short": "named-event | periodic | data-added | data-modified | data-removed | data-accessed | data-access-ended",
              "definition": "The type of triggering event.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of trigger",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/cds-rule-trigger-type"
                }
              }
            },
            {
              "path": "DecisionSupportRule.trigger.eventName",
              "definition": "The name of the event (if this is a named-event trigger).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.trigger.eventTiming[x]",
              "definition": "The timing of the event (if this is a period trigger).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Schedule"
                  ]
                },
                {
                  "code": "date"
                },
                {
                  "code": "dateTime"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.condition",
              "definition": "The condition for the artifact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action",
              "name": "action",
              "definition": "The definition of the actions that should be returned by evaluation of the artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.actionIdentifier",
              "definition": "A unique identifier for the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.number",
              "definition": "A user-visible number for the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.supportingEvidence",
              "definition": "Supporting evidence for the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.documentation",
              "definition": "Supporting documentation for the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.participantType",
              "short": "patient | person | practitioner | related-person",
              "definition": "The type of participant in the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of participant for an action in the module",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/cds-rule-participant"
                }
              }
            },
            {
              "path": "DecisionSupportRule.action.title",
              "definition": "The title of the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.description",
              "definition": "A short description of the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.textEquivalent",
              "definition": "A text equivalent of the action to be performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.concept",
              "definition": "Concepts associated with the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.type",
              "short": "create | update | remove | fire-event",
              "definition": "The type of action to perform (create, update, remove).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The type of action to be performed",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/cds-rule-action-type"
                }
              }
            },
            {
              "path": "DecisionSupportRule.action.resource",
              "definition": "The resource that is the target of the action (e.g. CommunicationRequest).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.customization",
              "definition": "Customizations that should be applied to the statically defined resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.customization.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.customization.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.customization.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.customization.path",
              "definition": "The path to the element to be customized.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.customization.expression",
              "definition": "An expression specifying the value of the customized element.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.actions",
              "definition": "Sub actions.",
              "min": 0,
              "max": "*",
              "nameReference": "action"
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "DecisionSupportRule",
              "short": "A decision support rule",
              "definition": "This resource defines a decision support rule of the form [on Event] if Condition then Action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DecisionSupportRule.moduleMetadata",
              "short": "Module information for the rule",
              "definition": "A reference to a ModuleMetadata resource that provides metadata for the rule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleMetadata"
                  ]
                }
              ]
            },
            {
              "path": "DecisionSupportRule.library",
              "short": "A library containing logic used by the rule",
              "definition": "A reference to a Library containing the formal logic used by the rule.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Library"
                  ]
                }
              ]
            },
            {
              "path": "DecisionSupportRule.trigger",
              "definition": "A description of a triggering event.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.trigger.type",
              "short": "named-event | periodic | data-added | data-modified | data-removed | data-accessed | data-access-ended",
              "definition": "The type of triggering event.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of trigger",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/cds-rule-trigger-type"
                }
              }
            },
            {
              "path": "DecisionSupportRule.trigger.eventName",
              "definition": "The name of the event (if this is a named-event trigger).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.trigger.eventTiming[x]",
              "definition": "The timing of the event (if this is a period trigger).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Schedule"
                  ]
                },
                {
                  "code": "date"
                },
                {
                  "code": "dateTime"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.condition",
              "definition": "The condition for the artifact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action",
              "name": "action",
              "definition": "The definition of the actions that should be returned by evaluation of the artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.actionIdentifier",
              "definition": "A unique identifier for the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.number",
              "definition": "A user-visible number for the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.supportingEvidence",
              "definition": "Supporting evidence for the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.documentation",
              "definition": "Supporting documentation for the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.participantType",
              "short": "patient | person | practitioner | related-person",
              "definition": "The type of participant in the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of participant for an action in the module",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/cds-rule-participant"
                }
              }
            },
            {
              "path": "DecisionSupportRule.action.title",
              "definition": "The title of the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.description",
              "definition": "A short description of the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.textEquivalent",
              "definition": "A text equivalent of the action to be performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.concept",
              "definition": "Concepts associated with the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.type",
              "short": "create | update | remove | fire-event",
              "definition": "The type of action to perform (create, update, remove).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The type of action to be performed",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/cds-rule-action-type"
                }
              }
            },
            {
              "path": "DecisionSupportRule.action.resource",
              "definition": "The resource that is the target of the action (e.g. CommunicationRequest).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.customization",
              "definition": "Customizations that should be applied to the statically defined resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.customization.path",
              "definition": "The path to the element to be customized.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.customization.expression",
              "definition": "An expression specifying the value of the customized element.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportRule.action.actions",
              "definition": "Sub actions.",
              "min": 0,
              "max": "*",
              "nameReference": "action"
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/DecisionSupportServiceModule-evaluate",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "DecisionSupportServiceModule-evaluate",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/DecisionSupportServiceModule-evaluate",
        "name": "Evaluate",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "The evaluate operation requests clinical decision support guidance based on a specific decision support module",
        "code": "evaluate",
        "system": false,
        "instance": true,
        "parameter": [
          {
            "name": "requestId",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "An optional client-provided identifier to track the request",
            "type": "code"
          },
          {
            "name": "evaluateAtDateTime",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "An optional date and time specifying that the evaluation should be performed as thought it was the given date and time. The most direct implication of this is that references to \"Now\" within the evaluation logic of the module should result in this value. In addition, wherever possible, the data accessed by the module should appear as though it was accessed at this time. The evaluateAtDateTime value may be any time in the past or future, enabling both retrospective and prospective scenarios. If no value is provided, the date and time of the request is assumed",
            "type": "datetime"
          },
          {
            "name": "inputParameters",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The input parameters for a request, if any. These parameters are defined by the module that is the target of the evaluation, and supply the input information to the module.",
            "type": "Parameters"
          },
          {
            "name": "setting",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The current setting of the request (inpatient, outpatient, etc)",
            "type": "CodeableConcept"
          },
          {
            "name": "settingContext",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "Additional detail about the setting of the request, if any",
            "type": "CodeableConcept"
          },
          {
            "name": "return",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "The result of the request as a GuidanceResponse resource. Output parameters, if any, will be contained in the parameters element of the response",
            "type": "GuidanceResponse"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DecisionSupportServiceModule",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DecisionSupportServiceModule",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DecisionSupportServiceModule",
        "name": "DecisionSupportServiceModule",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Decision Support)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DecisionSupportServiceModule Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "DecisionSupportServiceModule",
              "short": "A description of decision support service functionality",
              "definition": "The DecisionSupportServiceModule resource describes decision support functionality that is available as a service.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DecisionSupportServiceModule.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DecisionSupportServiceModule.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DecisionSupportServiceModule.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "DecisionSupportServiceModule.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DecisionSupportServiceModule.moduleMetadata",
              "short": "Metadata for the service module",
              "definition": "A reference to a ModuleMetadata resource describing the metadata for the decision support service module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleMetadata"
                  ]
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter",
              "short": "Parameters to the module",
              "definition": "The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.name",
              "short": "Parameter name",
              "definition": "The name of the parameter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.use",
              "definition": "Whether the parameter is input or output for the module.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Whether the parameter is input or output",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-use"
                }
              }
            },
            {
              "path": "DecisionSupportServiceModule.parameter.documentation",
              "short": "A brief description of the parameter",
              "definition": "A brief discussion of what the parameter is for and how it is used by the module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.type",
              "definition": "The type of the parameter.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of the parameter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-type"
                }
              }
            },
            {
              "path": "DecisionSupportServiceModule.parameter.profile",
              "short": "The profile of the parameter, any",
              "definition": "If specified, this indicates a profile that the input data must conform to, or that the output data will conform to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.mustSupport",
              "short": "Indicates that specific structure elements are referenced by the knowledge module",
              "definition": "Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.codeFilter",
              "short": "Code filters for the required data, if any",
              "definition": "Indicates that incoming data for this parameter is expected to match the given code filter. In other words, every instance should have a value for the path element that comes from the specified value set (or list of concepts).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.codeFilter.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.codeFilter.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.codeFilter.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.codeFilter.path",
              "short": "The code-valued attribute of the filter",
              "definition": "The code-valued attribute of the filter. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant. The path must resolve to an element of type code, Coding, or CodeableConcept.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.codeFilter.valueSet[x]",
              "short": "The valueset for the code filter",
              "definition": "The valueset for the code filter. The valueSet or codeableConcept elements are exclusive. If valueSet is specified, the filter will return only those data items for which the value of the code-valued element specified in the path is a member of the specified valueset.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ValueSet"
                  ]
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.codeFilter.codeableConcept",
              "short": "The codeableConcepts for the filter",
              "definition": "The codeable concept for the code filter. Only one of valueSet or codeableConcept may be specified. If codeableConcepts are given, the filter will return only those data items for which the code-valued attribute specified by the path has a value that is one of the specified codeable concepts.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.dateFilter",
              "short": "Date filters for the required data, if any",
              "definition": "Indicates that incoming data for this parameter is expected to match the given date filter. In other words, every instance should have a value for the path element that is equal to the given datetime (or within the given Period).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.dateFilter.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.dateFilter.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.dateFilter.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.dateFilter.path",
              "short": "The date-valued attribute of the filter",
              "definition": "The date-valued attribute of the filter. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant. The path must resolve to an element of type dateTime, Period, Schedule, or Timing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.dateFilter.value[x]",
              "short": "The value of the filter, as a Period or dateTime value",
              "definition": "The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "DecisionSupportServiceModule",
              "short": "A description of decision support service functionality",
              "definition": "The DecisionSupportServiceModule resource describes decision support functionality that is available as a service.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DecisionSupportServiceModule.moduleMetadata",
              "short": "Metadata for the service module",
              "definition": "A reference to a ModuleMetadata resource describing the metadata for the decision support service module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleMetadata"
                  ]
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter",
              "short": "Parameters to the module",
              "definition": "The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.name",
              "short": "Parameter name",
              "definition": "The name of the parameter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.use",
              "definition": "Whether the parameter is input or output for the module.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Whether the parameter is input or output",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-use"
                }
              }
            },
            {
              "path": "DecisionSupportServiceModule.parameter.documentation",
              "short": "A brief description of the parameter",
              "definition": "A brief discussion of what the parameter is for and how it is used by the module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.type",
              "definition": "The type of the parameter.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of the parameter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-type"
                }
              }
            },
            {
              "path": "DecisionSupportServiceModule.parameter.profile",
              "short": "The profile of the parameter, any",
              "definition": "If specified, this indicates a profile that the input data must conform to, or that the output data will conform to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.mustSupport",
              "short": "Indicates that specific structure elements are referenced by the knowledge module",
              "definition": "Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.codeFilter",
              "short": "Code filters for the required data, if any",
              "definition": "Indicates that incoming data for this parameter is expected to match the given code filter. In other words, every instance should have a value for the path element that comes from the specified value set (or list of concepts).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.codeFilter.path",
              "short": "The code-valued attribute of the filter",
              "definition": "The code-valued attribute of the filter. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant. The path must resolve to an element of type code, Coding, or CodeableConcept.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.codeFilter.valueSet[x]",
              "short": "The valueset for the code filter",
              "definition": "The valueset for the code filter. The valueSet or codeableConcept elements are exclusive. If valueSet is specified, the filter will return only those data items for which the value of the code-valued element specified in the path is a member of the specified valueset.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ValueSet"
                  ]
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.codeFilter.codeableConcept",
              "short": "The codeableConcepts for the filter",
              "definition": "The codeable concept for the code filter. Only one of valueSet or codeableConcept may be specified. If codeableConcepts are given, the filter will return only those data items for which the code-valued attribute specified by the path has a value that is one of the specified codeable concepts.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.dateFilter",
              "short": "Date filters for the required data, if any",
              "definition": "Indicates that incoming data for this parameter is expected to match the given date filter. In other words, every instance should have a value for the path element that is equal to the given datetime (or within the given Period).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.dateFilter.path",
              "short": "The date-valued attribute of the filter",
              "definition": "The date-valued attribute of the filter. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant. The path must resolve to an element of type dateTime, Period, Schedule, or Timing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "DecisionSupportServiceModule.parameter.dateFilter.value[x]",
              "short": "The value of the filter, as a Period or dateTime value",
              "definition": "The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DetectedIssue",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DetectedIssue",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DetectedIssue",
        "name": "DetectedIssue",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Decision Support)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DetectedIssue Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "DetectedIssue",
              "short": "Clinical issue with action",
              "definition": "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc.",
              "alias": [
                "DDI",
                "drug-drug interaction",
                "Contraindication",
                "Alert"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Partial mapping from messages containing the AL1 or IAM segment, such as the ADT^A01, ADT^A08, and ADT^A60."
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=ALRT, moodCode=EVN)"
                },
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "DetectedIssue.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DetectedIssue.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DetectedIssue.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DetectedIssue.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "DetectedIssue.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DetectedIssue.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DetectedIssue.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DetectedIssue.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DetectedIssue.patient",
              "short": "Associated patient",
              "definition": "Indicates the patient whose record the detected issue is associated with.",
              "requirements": "While the subject could be inferred by tracing the subject of the implicated resources, it's useful to have a direct link for query purposes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DetectedIssue.category",
              "short": "Issue Category, e.g. drug-drug, duplicate therapy, etc.",
              "definition": "Identifies the general type of issue identified.",
              "alias": [
                "type"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Codes identifying the general type of detected issue; e.g. Drug-drug interaction, Timing issue, Duplicate therapy, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/detectedissue-category"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "AL1-2 / IAM-9"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DetectedIssue.severity",
              "short": "high | moderate | low",
              "definition": "Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.",
              "alias": [
                "severity"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates the potential degree of impact of the identified issue on the patient.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/detectedissue-severity"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "AL1-4/ IAR-2"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV].value"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            },
            {
              "path": "DetectedIssue.implicated",
              "short": "Problem resource",
              "definition": "Indicates the resource representing the current activity or proposed activity that is potentially problematic.",
              "comments": "There's an implicit constraint on the number of implicated resources based on DetectedIssue.type; e.g. For drug-drug, there would be more than one.  For timing, there would typically only be one.",
              "alias": [
                "cause"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SUBJ].target[moodCode=EVN, INT]"
                }
              ]
            },
            {
              "path": "DetectedIssue.detail",
              "short": "Description and context",
              "definition": "A textual explanation of the detected issue.",
              "comments": "Should focus on information not covered elsewhere as discrete data - no need to duplicate the narrative.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "AL1-5 / IAM-8"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "DetectedIssue.date",
              "short": "When identified",
              "definition": "The date or date-time when the detected issue was initially identified.",
              "requirements": "No-one can be responsible for mitigation prior to the issue being identified.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ALI-6 / IAM-11"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "DetectedIssue.author",
              "short": "The provider or device that identified the issue",
              "definition": "Individual or device responsible for the issue being raised.  For example, a decision support application or a pharmacist conducting a medication review.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-14 / IAM-16"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role[classCode=ASSIGNED]"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "DetectedIssue.identifier",
              "short": "Unique id for the detected issue",
              "definition": "Business identifier associated with the detected issue record.",
              "requirements": "Allows linking instances of the same detected issue found on different servers.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-7"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DetectedIssue.reference",
              "short": "Authority for issue",
              "definition": "The literature, knowledge-base or similar reference that describes the propensity for the detected issue identified.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=INST].target[classCode=ALRT, moodCode=DEFN].text.uri"
                }
              ]
            },
            {
              "path": "DetectedIssue.mitigation",
              "short": "Step taken to address",
              "definition": "Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.  Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=MITG].target[classCode=ACT, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "DetectedIssue.mitigation.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DetectedIssue.mitigation.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DetectedIssue.mitigation.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DetectedIssue.mitigation.action",
              "short": "What mitigation?",
              "definition": "Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue.",
              "comments": "The \"text\" component can be used for detail or when no appropriate code exists.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Codes describing steps taken to resolve the issue or other circumstances that mitigate the risk associated with the issue; e.g. 'added concurrent therapy', 'prior therapy documented', etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/detectedissue-mitigation-action"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "DetectedIssue.mitigation.date",
              "short": "Date committed",
              "definition": "Indicates when the mitigating action was documented.",
              "comments": "This may not be the same as when the mitigating step was actually taken.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "DetectedIssue.mitigation.author",
              "short": "Who is committing?",
              "definition": "Identifies the practitioner who determined the mitigation and takes responsibility for the mitigation step occurring.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role[classCode=ASSIGNED]"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "DetectedIssue",
              "short": "Clinical issue with action",
              "definition": "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc.",
              "alias": [
                "DDI",
                "drug-drug interaction",
                "Contraindication",
                "Alert"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Partial mapping from messages containing the AL1 or IAM segment, such as the ADT^A01, ADT^A08, and ADT^A60."
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=ALRT, moodCode=EVN)"
                },
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "DetectedIssue.patient",
              "short": "Associated patient",
              "definition": "Indicates the patient whose record the detected issue is associated with.",
              "requirements": "While the subject could be inferred by tracing the subject of the implicated resources, it's useful to have a direct link for query purposes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DetectedIssue.category",
              "short": "Issue Category, e.g. drug-drug, duplicate therapy, etc.",
              "definition": "Identifies the general type of issue identified.",
              "alias": [
                "type"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Codes identifying the general type of detected issue; e.g. Drug-drug interaction, Timing issue, Duplicate therapy, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/detectedissue-category"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "AL1-2 / IAM-9"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DetectedIssue.severity",
              "short": "high | moderate | low",
              "definition": "Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.",
              "alias": [
                "severity"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates the potential degree of impact of the identified issue on the patient.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/detectedissue-severity"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "AL1-4/ IAR-2"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV].value"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            },
            {
              "path": "DetectedIssue.implicated",
              "short": "Problem resource",
              "definition": "Indicates the resource representing the current activity or proposed activity that is potentially problematic.",
              "comments": "There's an implicit constraint on the number of implicated resources based on DetectedIssue.type; e.g. For drug-drug, there would be more than one.  For timing, there would typically only be one.",
              "alias": [
                "cause"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SUBJ].target[moodCode=EVN, INT]"
                }
              ]
            },
            {
              "path": "DetectedIssue.detail",
              "short": "Description and context",
              "definition": "A textual explanation of the detected issue.",
              "comments": "Should focus on information not covered elsewhere as discrete data - no need to duplicate the narrative.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "AL1-5 / IAM-8"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "DetectedIssue.date",
              "short": "When identified",
              "definition": "The date or date-time when the detected issue was initially identified.",
              "requirements": "No-one can be responsible for mitigation prior to the issue being identified.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ALI-6 / IAM-11"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "DetectedIssue.author",
              "short": "The provider or device that identified the issue",
              "definition": "Individual or device responsible for the issue being raised.  For example, a decision support application or a pharmacist conducting a medication review.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-14 / IAM-16"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role[classCode=ASSIGNED]"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "DetectedIssue.identifier",
              "short": "Unique id for the detected issue",
              "definition": "Business identifier associated with the detected issue record.",
              "requirements": "Allows linking instances of the same detected issue found on different servers.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "IAM-7"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DetectedIssue.reference",
              "short": "Authority for issue",
              "definition": "The literature, knowledge-base or similar reference that describes the propensity for the detected issue identified.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=INST].target[classCode=ALRT, moodCode=DEFN].text.uri"
                }
              ]
            },
            {
              "path": "DetectedIssue.mitigation",
              "short": "Step taken to address",
              "definition": "Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.  Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=MITG].target[classCode=ACT, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "DetectedIssue.mitigation.action",
              "short": "What mitigation?",
              "definition": "Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue.",
              "comments": "The \"text\" component can be used for detail or when no appropriate code exists.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Codes describing steps taken to resolve the issue or other circumstances that mitigate the risk associated with the issue; e.g. 'added concurrent therapy', 'prior therapy documented', etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/detectedissue-mitigation-action"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "DetectedIssue.mitigation.date",
              "short": "Date committed",
              "definition": "Indicates when the mitigating action was documented.",
              "comments": "This may not be the same as when the mitigating step was actually taken.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "DetectedIssue.mitigation.author",
              "short": "Who is committing?",
              "definition": "Identifies the practitioner who determined the mitigation and takes responsibility for the mitigation step occurring.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role[classCode=ASSIGNED]"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Device",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Device",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Device",
        "name": "Device",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Device Resource",
        "requirements": "Allows institutions to track their devices.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Device",
              "short": "An instance of a manufactured te that is used in the provision of healthcare",
              "definition": "This resource identifies an instance of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device.  Medical devices includes durable (reusable) medical equipment, implantable devices, as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health.  Non-medical devices may include items such as a machine, cellphone, computer, application, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Device"
                },
                {
                  "identity": "w5",
                  "map": "administrative.device"
                }
              ]
            },
            {
              "path": "Device.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Device.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Device.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Device.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Device.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Device.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Device.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Device.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Device.identifier",
              "short": "Instance id from manufacturer, owner, and others",
              "definition": "Unique instance identifiers assigned to a device by organizations like manufacturers or owners. If the identifier identifies the type of device, Device.type should be used.",
              "comments": "Often fixed to the device as a barcode and may include names given to the device in local usage.  Note that some of the barcodes affixed to the device identify its type, not its instance.  For the FDA mandated Unique Device Identifier (UDI) use  the Device.udi element.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Device.type",
              "short": "What kind of device this is",
              "definition": "Code or identifier to identify a kind of device.",
              "comments": "For the FDA mandated Unique Device Identifier (UDI) use  the Device.udi element.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Defines the nature of the device and the kind of functionality/services/behavior that may be expected from it.",
                "valueSetUri": "https://www.gmdnagency.org/Info.aspx?pageid=1091"
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Device.note",
              "short": "Device notes and comments",
              "definition": "Descriptive information, usage information or implantation information that is not captured in an existing element.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "Device.status",
              "short": "available | not-available | entered-in-error",
              "definition": "Status of the Device availability.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The availability status of the device.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/devicestatus"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Device.manufacturer",
              "short": "Name of device manufacturer",
              "definition": "A name of the manufacturer.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playedRole[typeCode=MANU].scoper.name"
                }
              ]
            },
            {
              "path": "Device.model",
              "short": "Model id assigned by the manufacturer",
              "definition": "The \"model\" is an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playedRole[typeCode=MANU].code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Device.version",
              "short": "Version number (i.e. software)",
              "definition": "The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".softwareName (included as part)"
                }
              ]
            },
            {
              "path": "Device.manufactureDate",
              "short": "Manufacture date",
              "definition": "The date and time when the device was manufactured.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".existenceTime.low"
                }
              ]
            },
            {
              "path": "Device.expiry",
              "short": "Date and time of expiry of this device (if applicable)",
              "definition": "The date and time beyond which this device is no longer valid or should not be used (if applicable).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".expirationTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Device.udi",
              "short": "FDA mandated Unique Device Identifier",
              "definition": "United States Food and Drug Administration mandated Unique Device Identifier (UDI). Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode)  - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm.",
              "comments": "The unique identifier may identify an instance of a device uniquely, or it may only identify the type of the device. A portion of the UDI - the DI part - can be extracted from the UDI when required, and used to look up information about the device through the GUDID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id[where root is root for UDI]"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Device.lotNumber",
              "short": "Lot number of manufacture",
              "definition": "Lot number assigned by the manufacturer.",
              "comments": "Alphanumeric Maximum 20.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".lotNumberText"
                }
              ]
            },
            {
              "path": "Device.owner",
              "short": "Organization responsible for device",
              "definition": "An organization that is responsible for the provision and ongoing maintenance of the device.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playedRole[typeCode=OWN].scoper"
                }
              ]
            },
            {
              "path": "Device.location",
              "short": "Where the resource is found",
              "definition": "The place where the device can be found.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playedRole[typeCode=LOCE].scoper"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "Device.patient",
              "short": "If the resource is affixed to a person",
              "definition": "Patient information, if the resource is affixed to a person.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playedRole[typeCode=USED].scoper.playedRole[typeCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Device.contact",
              "short": "Details for human/organization for support",
              "definition": "Contact details for an organization or a particular human that is responsible for the device.",
              "comments": "used for troubleshooting etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".scopedRole[typeCode=CON].player"
                }
              ]
            },
            {
              "path": "Device.url",
              "short": "Network address to contact device",
              "definition": "A network address on which the device may be contacted directly.",
              "comments": "If the device is running a FHIR server, the network address should  be the root URL from which a conformance statement may be retrieved.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".telecom"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Device",
              "short": "An instance of a manufactured te that is used in the provision of healthcare",
              "definition": "This resource identifies an instance of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device.  Medical devices includes durable (reusable) medical equipment, implantable devices, as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health.  Non-medical devices may include items such as a machine, cellphone, computer, application, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Device"
                },
                {
                  "identity": "w5",
                  "map": "administrative.device"
                }
              ]
            },
            {
              "path": "Device.identifier",
              "short": "Instance id from manufacturer, owner, and others",
              "definition": "Unique instance identifiers assigned to a device by organizations like manufacturers or owners. If the identifier identifies the type of device, Device.type should be used.",
              "comments": "Often fixed to the device as a barcode and may include names given to the device in local usage.  Note that some of the barcodes affixed to the device identify its type, not its instance.  For the FDA mandated Unique Device Identifier (UDI) use  the Device.udi element.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Device.type",
              "short": "What kind of device this is",
              "definition": "Code or identifier to identify a kind of device.",
              "comments": "For the FDA mandated Unique Device Identifier (UDI) use  the Device.udi element.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Defines the nature of the device and the kind of functionality/services/behavior that may be expected from it.",
                "valueSetUri": "https://www.gmdnagency.org/Info.aspx?pageid=1091"
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Device.note",
              "short": "Device notes and comments",
              "definition": "Descriptive information, usage information or implantation information that is not captured in an existing element.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "Device.status",
              "short": "available | not-available | entered-in-error",
              "definition": "Status of the Device availability.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The availability status of the device.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/devicestatus"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Device.manufacturer",
              "short": "Name of device manufacturer",
              "definition": "A name of the manufacturer.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playedRole[typeCode=MANU].scoper.name"
                }
              ]
            },
            {
              "path": "Device.model",
              "short": "Model id assigned by the manufacturer",
              "definition": "The \"model\" is an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playedRole[typeCode=MANU].code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Device.version",
              "short": "Version number (i.e. software)",
              "definition": "The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".softwareName (included as part)"
                }
              ]
            },
            {
              "path": "Device.manufactureDate",
              "short": "Manufacture date",
              "definition": "The date and time when the device was manufactured.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".existenceTime.low"
                }
              ]
            },
            {
              "path": "Device.expiry",
              "short": "Date and time of expiry of this device (if applicable)",
              "definition": "The date and time beyond which this device is no longer valid or should not be used (if applicable).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".expirationTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Device.udi",
              "short": "FDA mandated Unique Device Identifier",
              "definition": "United States Food and Drug Administration mandated Unique Device Identifier (UDI). Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode)  - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm.",
              "comments": "The unique identifier may identify an instance of a device uniquely, or it may only identify the type of the device. A portion of the UDI - the DI part - can be extracted from the UDI when required, and used to look up information about the device through the GUDID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id[where root is root for UDI]"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Device.lotNumber",
              "short": "Lot number of manufacture",
              "definition": "Lot number assigned by the manufacturer.",
              "comments": "Alphanumeric Maximum 20.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".lotNumberText"
                }
              ]
            },
            {
              "path": "Device.owner",
              "short": "Organization responsible for device",
              "definition": "An organization that is responsible for the provision and ongoing maintenance of the device.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playedRole[typeCode=OWN].scoper"
                }
              ]
            },
            {
              "path": "Device.location",
              "short": "Where the resource is found",
              "definition": "The place where the device can be found.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playedRole[typeCode=LOCE].scoper"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "Device.patient",
              "short": "If the resource is affixed to a person",
              "definition": "Patient information, if the resource is affixed to a person.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playedRole[typeCode=USED].scoper.playedRole[typeCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Device.contact",
              "short": "Details for human/organization for support",
              "definition": "Contact details for an organization or a particular human that is responsible for the device.",
              "comments": "used for troubleshooting etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".scopedRole[typeCode=CON].player"
                }
              ]
            },
            {
              "path": "Device.url",
              "short": "Network address to contact device",
              "definition": "A network address on which the device may be contacted directly.",
              "comments": "If the device is running a FHIR server, the network address should  be the root URL from which a conformance statement may be retrieved.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".telecom"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DeviceComponent",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DeviceComponent",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DeviceComponent",
        "name": "DeviceComponent",
        "status": "draft",
        "publisher": "Health Level Seven International (Health Care Devices)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/healthcaredevices/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DeviceComponent Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "DeviceComponent",
              "short": "An instance of a medical-related component of a medical device",
              "definition": "Describes the characteristics, operational status and capabilities of a medical-related component of a medical device.",
              "comments": "For the initial scope, this DeviceComponent resource is only applicable to describe a single node in the containment tree that is produced by the context scanner in any medical device that implements or derives from the ISO/IEEE 11073 standard and that does not represent a metric. Examples for such a node are MDS, VMD, or Channel.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "administrative.device"
                }
              ]
            },
            {
              "path": "DeviceComponent.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceComponent.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceComponent.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DeviceComponent.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "DeviceComponent.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DeviceComponent.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceComponent.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceComponent.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceComponent.type",
              "short": "What kind of component it is",
              "definition": "Describes the specific component type as defined in the object-oriented or metric nomenclature partition.",
              "comments": "DeviceComponent.type can be referred to either GDMN (nomenclature system supported by FDA Global UDI Database) or preferable RTMMS coding system.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Describes the type of the component.",
                "valueSetUri": "https://rtmms.nist.gov/rtmms/index.htm#!hrosetta"
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DeviceComponent.identifier",
              "short": "Instance id assigned by the software stack",
              "definition": "Describes the local assigned unique identification by the software. For example: handle ID.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DeviceComponent.lastSystemChange",
              "short": "Recent system change timestamp",
              "definition": "Describes the timestamp for the most recent system change which includes device configuration or setting change.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "DeviceComponent.source",
              "short": "A source device of this component",
              "definition": "Describes the link to the source Device that contains administrative device information such as manufacture, serial number, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceComponent.parent",
              "short": "Parent resource link",
              "definition": "Describes the link to the parent resource. For example: Channel is linked to its VMD parent.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DeviceComponent"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceComponent.operationalStatus",
              "short": "Component operational status",
              "definition": "Indicates current operational status of the device. For example: On, Off, Standby, etc.",
              "comments": "OperationalStatus for the MDS, VMD, or Channel will be bound to a specific ValueSet that is defined in its profile.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes representing the current status of the device - on, off, suspended, etc."
              }
            },
            {
              "path": "DeviceComponent.parameterGroup",
              "short": "Current supported parameter group",
              "definition": "Describes the parameter group supported by the current device component that is based on some nomenclature, e.g. cardiovascular.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes identifying groupings of parameters; e.g. Cardiovascular."
              }
            },
            {
              "path": "DeviceComponent.measurementPrinciple",
              "short": "other | chemical | electrical | impedance | nuclear | optical | thermal | biological | mechanical | acoustical | manual+",
              "definition": "Describes the physical principle of the measurement. For example: thermal, chemical, acoustical, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Different measurement principle supported by the device.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/measurement-principle"
                }
              }
            },
            {
              "path": "DeviceComponent.productionSpecification",
              "short": "Production specification of the component",
              "definition": "Describes the production specification such as component revision, serial number, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceComponent.productionSpecification.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DeviceComponent.productionSpecification.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DeviceComponent.productionSpecification.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceComponent.productionSpecification.specType",
              "short": "Specification type",
              "definition": "Describes the specification type, such as, serial number, part number, hardware revision, software revision, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for device specification types such as serial number, part number, hardware revision, software revision, etc."
              }
            },
            {
              "path": "DeviceComponent.productionSpecification.componentId",
              "short": "Internal component unique identification",
              "definition": "Describes the internal component unique identification. This is a provision for manufacture specific standard components using a private OID. 11073-10101 has a partition for private OID semantic that the manufacture can make use of.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceComponent.productionSpecification.productionSpec",
              "short": "A printable string defining the component",
              "definition": "Describes the printable string defining the component.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceComponent.languageCode",
              "short": "Language code for the human-readable text strings produced by the device",
              "definition": "Describes the language code for the human-readable text string produced by the device. This language code will follow the IETF language tag. Example: en-US.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "DeviceComponent",
              "short": "An instance of a medical-related component of a medical device",
              "definition": "Describes the characteristics, operational status and capabilities of a medical-related component of a medical device.",
              "comments": "For the initial scope, this DeviceComponent resource is only applicable to describe a single node in the containment tree that is produced by the context scanner in any medical device that implements or derives from the ISO/IEEE 11073 standard and that does not represent a metric. Examples for such a node are MDS, VMD, or Channel.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "administrative.device"
                }
              ]
            },
            {
              "path": "DeviceComponent.type",
              "short": "What kind of component it is",
              "definition": "Describes the specific component type as defined in the object-oriented or metric nomenclature partition.",
              "comments": "DeviceComponent.type can be referred to either GDMN (nomenclature system supported by FDA Global UDI Database) or preferable RTMMS coding system.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Describes the type of the component.",
                "valueSetUri": "https://rtmms.nist.gov/rtmms/index.htm#!hrosetta"
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DeviceComponent.identifier",
              "short": "Instance id assigned by the software stack",
              "definition": "Describes the local assigned unique identification by the software. For example: handle ID.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DeviceComponent.lastSystemChange",
              "short": "Recent system change timestamp",
              "definition": "Describes the timestamp for the most recent system change which includes device configuration or setting change.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "DeviceComponent.source",
              "short": "A source device of this component",
              "definition": "Describes the link to the source Device that contains administrative device information such as manufacture, serial number, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceComponent.parent",
              "short": "Parent resource link",
              "definition": "Describes the link to the parent resource. For example: Channel is linked to its VMD parent.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DeviceComponent"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceComponent.operationalStatus",
              "short": "Component operational status",
              "definition": "Indicates current operational status of the device. For example: On, Off, Standby, etc.",
              "comments": "OperationalStatus for the MDS, VMD, or Channel will be bound to a specific ValueSet that is defined in its profile.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes representing the current status of the device - on, off, suspended, etc."
              }
            },
            {
              "path": "DeviceComponent.parameterGroup",
              "short": "Current supported parameter group",
              "definition": "Describes the parameter group supported by the current device component that is based on some nomenclature, e.g. cardiovascular.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes identifying groupings of parameters; e.g. Cardiovascular."
              }
            },
            {
              "path": "DeviceComponent.measurementPrinciple",
              "short": "other | chemical | electrical | impedance | nuclear | optical | thermal | biological | mechanical | acoustical | manual+",
              "definition": "Describes the physical principle of the measurement. For example: thermal, chemical, acoustical, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Different measurement principle supported by the device.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/measurement-principle"
                }
              }
            },
            {
              "path": "DeviceComponent.productionSpecification",
              "short": "Production specification of the component",
              "definition": "Describes the production specification such as component revision, serial number, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceComponent.productionSpecification.specType",
              "short": "Specification type",
              "definition": "Describes the specification type, such as, serial number, part number, hardware revision, software revision, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for device specification types such as serial number, part number, hardware revision, software revision, etc."
              }
            },
            {
              "path": "DeviceComponent.productionSpecification.componentId",
              "short": "Internal component unique identification",
              "definition": "Describes the internal component unique identification. This is a provision for manufacture specific standard components using a private OID. 11073-10101 has a partition for private OID semantic that the manufacture can make use of.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceComponent.productionSpecification.productionSpec",
              "short": "A printable string defining the component",
              "definition": "Describes the printable string defining the component.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceComponent.languageCode",
              "short": "Language code for the human-readable text strings produced by the device",
              "definition": "Describes the language code for the human-readable text string produced by the device. This language code will follow the IETF language tag. Example: en-US.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DeviceMetric",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DeviceMetric",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DeviceMetric",
        "name": "DeviceMetric",
        "status": "draft",
        "publisher": "Health Level Seven International (Health Care Devices)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/healthcaredevices/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DeviceMetric Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "DeviceMetric",
              "short": "Measurement, calculation or setting capability of a medical device",
              "definition": "Describes a measurement, calculation or setting capability of a medical device.",
              "comments": "For the initial scope, this DeviceMetric resource is only applicable to describe a single metric node in the containment tree that is produced by the context scanner in any medical device that implements or derives from the ISO/IEEE 11073 standard.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "administrative.device"
                }
              ]
            },
            {
              "path": "DeviceMetric.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceMetric.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceMetric.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DeviceMetric.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "DeviceMetric.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DeviceMetric.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceMetric.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceMetric.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceMetric.type",
              "short": "Type of metric",
              "definition": "Describes the type of the metric. For example: Heart Rate, PEEP Setting, etc.",
              "comments": "DeviceMetric.type can be referred to either GDMN (nomenclature system supported by FDA Global UDI Database) or preferable RTMMS coding system.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Describes the metric type.",
                "valueSetUri": "https://rtmms.nist.gov/rtmms/index.htm#!hrosetta"
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DeviceMetric.identifier",
              "short": "Unique identifier of this DeviceMetric",
              "definition": "Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID.  It should be noted that in order to make the identifier unique, the system element of the identifier should be set to the unique identifier of the device.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DeviceMetric.unit",
              "short": "Unit of metric",
              "definition": "Describes the unit that an observed value determined for this metric will have. For example: Percent, Seconds, etc.",
              "comments": "DeviceMetric.unit can be referred to either UCUM or preferable RTMMS coding system.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Describes the unit of the metric.",
                "valueSetUri": "https://rtmms.nist.gov/rtmms/index.htm#!units"
              }
            },
            {
              "path": "DeviceMetric.source",
              "short": "Describes the link to the source Device",
              "definition": "Describes the link to the  Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceMetric.parent",
              "short": "Describes the link to the parent DeviceComponent",
              "definition": "Describes the link to the  DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DeviceComponent"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceMetric.operationalStatus",
              "short": "on | off | standby",
              "definition": "Indicates current operational state of the device. For example: On, Off, Standby, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Describes the operational status of the DeviceMetric.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/metric-operational-status"
                }
              }
            },
            {
              "path": "DeviceMetric.color",
              "short": "black | red | green | yellow | blue | magenta | cyan | white",
              "definition": "Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Describes the typical color of representation.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/metric-color"
                }
              }
            },
            {
              "path": "DeviceMetric.category",
              "short": "measurement | setting | calculation | unspecified",
              "definition": "Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Describes the category of the metric.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/metric-category"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DeviceMetric.measurementPeriod",
              "short": "Describes the measurement repetition time",
              "definition": "Describes the measurement repetition time. This is not necessarily the same as the update period. The measurement repetition time can range from milliseconds up to hours. An example for a measurement repetition time in the range of milliseconds is the sampling rate of an ECG. An example for a measurement repetition time in the range of hours is a NIBP that is triggered automatically every hour. The update period may be different than the measurement repetition time, if the device does not update the published observed value with the same frequency as it was measured.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceMetric.calibration",
              "short": "Describes the calibrations that have been performed or that are required to be performed",
              "definition": "Describes the calibrations that have been performed or that are required to be performed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceMetric.calibration.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DeviceMetric.calibration.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DeviceMetric.calibration.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceMetric.calibration.type",
              "short": "unspecified | offset | gain | two-point",
              "definition": "Describes the type of the calibration method.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Describes the type of a metric calibration.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/metric-calibration-type"
                }
              }
            },
            {
              "path": "DeviceMetric.calibration.state",
              "short": "not-calibrated | calibration-required | calibrated | unspecified",
              "definition": "Describes the state of the calibration.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Describes the state of a metric calibration.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/metric-calibration-state"
                }
              }
            },
            {
              "path": "DeviceMetric.calibration.time",
              "short": "Describes the time last calibration has been performed",
              "definition": "Describes the time last calibration has been performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "DeviceMetric",
              "short": "Measurement, calculation or setting capability of a medical device",
              "definition": "Describes a measurement, calculation or setting capability of a medical device.",
              "comments": "For the initial scope, this DeviceMetric resource is only applicable to describe a single metric node in the containment tree that is produced by the context scanner in any medical device that implements or derives from the ISO/IEEE 11073 standard.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "administrative.device"
                }
              ]
            },
            {
              "path": "DeviceMetric.type",
              "short": "Type of metric",
              "definition": "Describes the type of the metric. For example: Heart Rate, PEEP Setting, etc.",
              "comments": "DeviceMetric.type can be referred to either GDMN (nomenclature system supported by FDA Global UDI Database) or preferable RTMMS coding system.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Describes the metric type.",
                "valueSetUri": "https://rtmms.nist.gov/rtmms/index.htm#!hrosetta"
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DeviceMetric.identifier",
              "short": "Unique identifier of this DeviceMetric",
              "definition": "Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID.  It should be noted that in order to make the identifier unique, the system element of the identifier should be set to the unique identifier of the device.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DeviceMetric.unit",
              "short": "Unit of metric",
              "definition": "Describes the unit that an observed value determined for this metric will have. For example: Percent, Seconds, etc.",
              "comments": "DeviceMetric.unit can be referred to either UCUM or preferable RTMMS coding system.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Describes the unit of the metric.",
                "valueSetUri": "https://rtmms.nist.gov/rtmms/index.htm#!units"
              }
            },
            {
              "path": "DeviceMetric.source",
              "short": "Describes the link to the source Device",
              "definition": "Describes the link to the  Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceMetric.parent",
              "short": "Describes the link to the parent DeviceComponent",
              "definition": "Describes the link to the  DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DeviceComponent"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceMetric.operationalStatus",
              "short": "on | off | standby",
              "definition": "Indicates current operational state of the device. For example: On, Off, Standby, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Describes the operational status of the DeviceMetric.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/metric-operational-status"
                }
              }
            },
            {
              "path": "DeviceMetric.color",
              "short": "black | red | green | yellow | blue | magenta | cyan | white",
              "definition": "Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Describes the typical color of representation.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/metric-color"
                }
              }
            },
            {
              "path": "DeviceMetric.category",
              "short": "measurement | setting | calculation | unspecified",
              "definition": "Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Describes the category of the metric.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/metric-category"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DeviceMetric.measurementPeriod",
              "short": "Describes the measurement repetition time",
              "definition": "Describes the measurement repetition time. This is not necessarily the same as the update period. The measurement repetition time can range from milliseconds up to hours. An example for a measurement repetition time in the range of milliseconds is the sampling rate of an ECG. An example for a measurement repetition time in the range of hours is a NIBP that is triggered automatically every hour. The update period may be different than the measurement repetition time, if the device does not update the published observed value with the same frequency as it was measured.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceMetric.calibration",
              "short": "Describes the calibrations that have been performed or that are required to be performed",
              "definition": "Describes the calibrations that have been performed or that are required to be performed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceMetric.calibration.type",
              "short": "unspecified | offset | gain | two-point",
              "definition": "Describes the type of the calibration method.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Describes the type of a metric calibration.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/metric-calibration-type"
                }
              }
            },
            {
              "path": "DeviceMetric.calibration.state",
              "short": "not-calibrated | calibration-required | calibrated | unspecified",
              "definition": "Describes the state of the calibration.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Describes the state of a metric calibration.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/metric-calibration-state"
                }
              }
            },
            {
              "path": "DeviceMetric.calibration.time",
              "short": "Describes the time last calibration has been performed",
              "definition": "Describes the time last calibration has been performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DeviceUseRequest",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DeviceUseRequest",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DeviceUseRequest",
        "name": "DeviceUseRequest",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Decision Support)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DeviceUseRequest Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "quick",
            "uri": "http://wiki.siframework.org/CQF",
            "name": "Quality Improvement and Clinical Knowledge (QUICK)"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "DeviceUseRequest",
              "short": "A request for a patient to use or be given a medical device",
              "definition": "Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceUseRequest.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceUseRequest.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DeviceUseRequest.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "DeviceUseRequest.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.bodySite[x]",
              "short": "Target body site",
              "definition": "Indicates the site on the subject's body where the device should be used ( i.e. the target site).",
              "requirements": "Knowing where the device is targeted is important for tracking if multiple sites are possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/BodySite"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "targetSiteCode"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.status",
              "short": "proposed | planned | requested | received | accepted | in-progress | completed | suspended | rejected | aborted",
              "definition": "The status of the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Codes representing the status of the request.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/device-use-request-status"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Action.currentStatus"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.device",
              "short": "Device requested",
              "definition": "The details of the device  to be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "DeviceUse.device"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.encounter",
              "short": "Encounter motivating request",
              "definition": "An encounter that provides additional context in which this request is made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.encounter"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.identifier",
              "short": "Request identifier",
              "definition": "Identifiers assigned to this order by the orderer or by the receiver.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.identifier"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.indication",
              "short": "Reason for request",
              "definition": "Reason or justification for the use of this device.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Action.indication.reason"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.notes",
              "short": "Notes or comments",
              "definition": "Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.additionalText"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.prnReason",
              "short": "PRN",
              "definition": "The proposed act must be performed if the indicated conditions occur, e.g.., shortness of breath, SpO2 less than x%.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Proposal.prnReason.reason"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.orderedOn",
              "short": "When ordered",
              "definition": "The time when the request was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Proposal.proposedAtTime"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.recordedOn",
              "short": "When recorded",
              "definition": "The time at which the request was made/recorded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.statementDateTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.subject",
              "short": "Focus of request",
              "definition": "The patient who will use the device.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.subject"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.timing[x]",
              "short": "Schedule for use",
              "definition": "The timing schedule for the use of the device The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "DeviceUse.applicationSchedule"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.priority",
              "short": "routine | urgent | stat | asap",
              "definition": "Characterizes how quickly the  use of device must be initiated. Includes concepts such as stat, urgent, routine.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Codes representing the priority of the request.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/device-use-request-priority"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Proposal.urgency"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "DeviceUseRequest",
              "short": "A request for a patient to use or be given a medical device",
              "definition": "Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.bodySite[x]",
              "short": "Target body site",
              "definition": "Indicates the site on the subject's body where the device should be used ( i.e. the target site).",
              "requirements": "Knowing where the device is targeted is important for tracking if multiple sites are possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/BodySite"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "targetSiteCode"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.status",
              "short": "proposed | planned | requested | received | accepted | in-progress | completed | suspended | rejected | aborted",
              "definition": "The status of the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Codes representing the status of the request.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/device-use-request-status"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Action.currentStatus"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.device",
              "short": "Device requested",
              "definition": "The details of the device  to be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "DeviceUse.device"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.encounter",
              "short": "Encounter motivating request",
              "definition": "An encounter that provides additional context in which this request is made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.encounter"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.identifier",
              "short": "Request identifier",
              "definition": "Identifiers assigned to this order by the orderer or by the receiver.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.identifier"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.indication",
              "short": "Reason for request",
              "definition": "Reason or justification for the use of this device.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Action.indication.reason"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.notes",
              "short": "Notes or comments",
              "definition": "Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.additionalText"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.prnReason",
              "short": "PRN",
              "definition": "The proposed act must be performed if the indicated conditions occur, e.g.., shortness of breath, SpO2 less than x%.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Proposal.prnReason.reason"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.orderedOn",
              "short": "When ordered",
              "definition": "The time when the request was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Proposal.proposedAtTime"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.recordedOn",
              "short": "When recorded",
              "definition": "The time at which the request was made/recorded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.statementDateTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.subject",
              "short": "Focus of request",
              "definition": "The patient who will use the device.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.subject"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.timing[x]",
              "short": "Schedule for use",
              "definition": "The timing schedule for the use of the device The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "DeviceUse.applicationSchedule"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "DeviceUseRequest.priority",
              "short": "routine | urgent | stat | asap",
              "definition": "Characterizes how quickly the  use of device must be initiated. Includes concepts such as stat, urgent, routine.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Codes representing the priority of the request.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/device-use-request-priority"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Proposal.urgency"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DeviceUseStatement",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DeviceUseStatement",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DeviceUseStatement",
        "name": "DeviceUseStatement",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Decision Support)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DeviceUseStatement Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "quick",
            "uri": "http://wiki.siframework.org/CQF",
            "name": "Quality Improvement and Clinical Knowledge (QUICK)"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "DeviceUseStatement",
              "definition": "A record of a device being used by a patient where the record is the result of a report from the patient or another clinician.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "DeviceUsePerformanceOccurrence"
                },
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceUseStatement.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DeviceUseStatement.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DeviceUseStatement.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "DeviceUseStatement.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.bodySite[x]",
              "short": "Target body site",
              "definition": "Indicates the site on the subject's body where the device was used ( i.e. the target site).",
              "requirements": "Knowing where the device is targeted is important for tracking if multiple sites are possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/BodySite"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "targetSiteCode"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.whenUsed",
              "definition": "The time period over which the device was used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Performance.performanceTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.device",
              "definition": "The details of the device used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "DeviceUse.device"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.identifier",
              "definition": "An external identifier for this statement such as an IRI.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.identifier"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.indication",
              "definition": "Reason or justification for the use of the device.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Action.indication.reason"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.notes",
              "definition": "Details about the device statement that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.additionalText"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.recordedOn",
              "definition": "The time at which the statement was made/recorded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.statementDateTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.subject",
              "definition": "The patient who used the device.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.subject"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.timing[x]",
              "definition": "How often the device was used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "DeviceUse.applicationSchedule"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "DeviceUseStatement",
              "definition": "A record of a device being used by a patient where the record is the result of a report from the patient or another clinician.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "DeviceUsePerformanceOccurrence"
                },
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.bodySite[x]",
              "short": "Target body site",
              "definition": "Indicates the site on the subject's body where the device was used ( i.e. the target site).",
              "requirements": "Knowing where the device is targeted is important for tracking if multiple sites are possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/BodySite"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "targetSiteCode"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.whenUsed",
              "definition": "The time period over which the device was used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Performance.performanceTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.device",
              "definition": "The details of the device used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "DeviceUse.device"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.identifier",
              "definition": "An external identifier for this statement such as an IRI.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.identifier"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.indication",
              "definition": "Reason or justification for the use of the device.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Action.indication.reason"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.notes",
              "definition": "Details about the device statement that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.additionalText"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.recordedOn",
              "definition": "The time at which the statement was made/recorded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.statementDateTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.subject",
              "definition": "The patient who used the device.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.subject"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DeviceUseStatement.timing[x]",
              "definition": "How often the device was used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "DeviceUse.applicationSchedule"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DiagnosticOrder",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder",
        "name": "DiagnosticOrder",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DiagnosticOrder Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "DiagnosticOrder",
              "short": "A request for a diagnostic service",
              "definition": "A record of a request for a diagnostic investigation service to be performed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=RQO, code<\"diagnostic order\"]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DiagnosticOrder.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DiagnosticOrder.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DiagnosticOrder.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "DiagnosticOrder.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.subject",
              "short": "Who and/or what test is about",
              "definition": "Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests 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",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.orderer",
              "short": "Who ordered the test",
              "definition": "The practitioner that holds legal responsibility for ordering the investigation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.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.",
              "comments": "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 [notes section](diagnosticorder.html#4.22.4) below.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.encounter",
              "short": "The encounter that this diagnostic order is associated with",
              "definition": "An encounter that provides additional information about the healthcare context in which this request is made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.reason",
              "short": "Explanation/Justification for test",
              "definition": "An explanation or justification for why this diagnostic investigation is being requested.   This is often for billing purposes.  May relate to the resources referred to in supportingInformation.",
              "comments": "This may be used to decide how the diagnostic investigation 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](diagnosticorder-example-di.html).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Diagnosis or problem codes justifying the reason for requesting the diagnostic investigation.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".reasonCode"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.supportingInformation",
              "short": "Additional clinical information",
              "definition": "Additional clinical information about the patient or specimen that may influence test interpretations.  This includes observations explicitly requested by the producer(filler) to provide context or supporting information needed to complete the order.",
              "comments": "This information includes diagnosis, clinical findings and other observations.  In laboratory ordering these are typically referred to as \"ask at order entry questions (AOEs)\". Examples include reporting the amount of inspired oxygen for blood gasses, the point in the menstrual cycle for cervical pap tests, and other conditions that influence test interpretations.",
              "alias": [
                "Ask at order entry question",
                "AOE"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-13"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=SPRT]/target[classCode=ACT, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.specimen",
              "short": "If the whole order relates to specific specimens",
              "definition": "One or more specimens that the diagnostic investigation is about.",
              "comments": "Many investigation requests will create a need for specimens, but the request itself is not actually about the specimens. This is provided for when the diagnostic investigation is requested on already existing specimens.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Specimen"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SPC].role"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.status",
              "short": "proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed",
              "definition": "The status of the order.",
              "comments": "Typically the system placing the order sets the status to \"requested\". Thereafter, the order is maintained by the receiver that updates the status as the request is handled.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of a diagnostic order.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode also influenced by whether a ControlAct fulfillment requeste exists, whether a promise exists, status of the review component, whether a fulfilling observation exists, whether a refusal exists"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.priority",
              "short": "routine | urgent | stat | asap",
              "definition": "The clinical priority associated with this order.",
              "comments": "The Order resource also has a priority. Generally, these should be the same, but they can be different. For instance, where the clinician indicates the order is urgent, but the subsequent workflow process overrules the priority for some reason. The effective default value is \"normal\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The clinical priority of a diagnostic order.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-priority"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".priorityCode"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.event",
              "name": "event",
              "short": "A list of events of interest in the lifecycle",
              "definition": "A summary of the events of interest that have occurred as the request is processed; e.g. when the order was made, various processing steps (specimens received), when it was completed.",
              "comments": "This is not the same as an audit trail. It is a view of the important things that happened in the past. Typically, there would only be one entry for any given status, and systems may not record all the status events.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=FLFS].source"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.event.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.event.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.event.status",
              "short": "proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed",
              "definition": "The status for the event.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of a diagnostic order.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode also influenced by whether a ControlAct fulfillment requeste exists, whether a promise exists, status of the review component, whether a fulfilling observation exists, whether a refusal exists"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.event.description",
              "short": "More information about the event and its context",
              "definition": "Additional information about the event that occurred - e.g. if the status remained unchanged.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Additional information about an event that occurred to a diagnostic order - e.g. if the status remained unchanged.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-event"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.event.dateTime",
              "short": "The date at which the event happened",
              "definition": "The date/time at which the event occurred.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.event.actor",
              "short": "Who recorded or did this",
              "definition": "The person responsible for performing or recording the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[AUT or PFM]"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.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.",
              "comments": "There would always be at least one item in normal usage, but this is optional so that a workflow can quote order details without having to list the items.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=OBS]"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.item.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.item.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.item.code",
              "short": "Code to indicate the item (test or panel) being ordered",
              "definition": "A code that identifies a particular diagnostic investigation, or panel of investigations, that have been requested.",
              "comments": "Many laboratory tests and radiology tests embed the specimen/organ system in the test name, for example,  serum or serum/plasma glucose, or a chest xray. The specimen may not be recorded separately from the test code.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Codes for tests/services that can be performed by diagnostic services.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-requests"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-4"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.item.specimen",
              "short": "If this item relates to specific specimens",
              "definition": "If the item is related to a specific specimen.",
              "comments": "A single specimen should not appear in both DiagnosticOrder.specimen and DiagnosticOrder.item.specimen.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Specimen"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SPC].role"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.item.bodySite",
              "short": "Location of requested test (if applicable)",
              "definition": "Anatomical location where the request test should be performed.  This is the target site.",
              "comments": "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 [body-site-instance](extension-body-site-instance.html).",
              "alias": [
                "location"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "targetSiteCode"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.item.status",
              "short": "proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed",
              "definition": "The status of this individual item within the order.",
              "comments": "If the request has multiple items that have their own life cycles, then the items will have their own status while the overall diagnostic order is (usually) \"in-progress\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of a diagnostic order.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode also influenced by whether a ControlAct fulfillment requeste exists, whether a promise exists, status of the review component, whether a fulfilling observation exists, whether a refusal exists"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.item.event",
              "short": "Events specific to this item",
              "definition": "A summary of the events of interest that have occurred as this item of the request is processed.",
              "min": 0,
              "max": "*",
              "nameReference": "event",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=FLFS].source"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.note",
              "short": "Other notes and comments",
              "definition": "Any other notes associated with this patient, specimen or order (e.g. \"patient hates needles\").",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "DiagnosticOrder",
              "short": "A request for a diagnostic service",
              "definition": "A record of a request for a diagnostic investigation service to be performed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=RQO, code<\"diagnostic order\"]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.subject",
              "short": "Who and/or what test is about",
              "definition": "Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests 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",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.orderer",
              "short": "Who ordered the test",
              "definition": "The practitioner that holds legal responsibility for ordering the investigation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.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.",
              "comments": "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 [notes section](diagnosticorder.html#4.22.4) below.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.encounter",
              "short": "The encounter that this diagnostic order is associated with",
              "definition": "An encounter that provides additional information about the healthcare context in which this request is made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.reason",
              "short": "Explanation/Justification for test",
              "definition": "An explanation or justification for why this diagnostic investigation is being requested.   This is often for billing purposes.  May relate to the resources referred to in supportingInformation.",
              "comments": "This may be used to decide how the diagnostic investigation 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](diagnosticorder-example-di.html).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Diagnosis or problem codes justifying the reason for requesting the diagnostic investigation.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".reasonCode"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.supportingInformation",
              "short": "Additional clinical information",
              "definition": "Additional clinical information about the patient or specimen that may influence test interpretations.  This includes observations explicitly requested by the producer(filler) to provide context or supporting information needed to complete the order.",
              "comments": "This information includes diagnosis, clinical findings and other observations.  In laboratory ordering these are typically referred to as \"ask at order entry questions (AOEs)\". Examples include reporting the amount of inspired oxygen for blood gasses, the point in the menstrual cycle for cervical pap tests, and other conditions that influence test interpretations.",
              "alias": [
                "Ask at order entry question",
                "AOE"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-13"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=SPRT]/target[classCode=ACT, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.specimen",
              "short": "If the whole order relates to specific specimens",
              "definition": "One or more specimens that the diagnostic investigation is about.",
              "comments": "Many investigation requests will create a need for specimens, but the request itself is not actually about the specimens. This is provided for when the diagnostic investigation is requested on already existing specimens.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Specimen"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SPC].role"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.status",
              "short": "proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed",
              "definition": "The status of the order.",
              "comments": "Typically the system placing the order sets the status to \"requested\". Thereafter, the order is maintained by the receiver that updates the status as the request is handled.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of a diagnostic order.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode also influenced by whether a ControlAct fulfillment requeste exists, whether a promise exists, status of the review component, whether a fulfilling observation exists, whether a refusal exists"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.priority",
              "short": "routine | urgent | stat | asap",
              "definition": "The clinical priority associated with this order.",
              "comments": "The Order resource also has a priority. Generally, these should be the same, but they can be different. For instance, where the clinician indicates the order is urgent, but the subsequent workflow process overrules the priority for some reason. The effective default value is \"normal\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The clinical priority of a diagnostic order.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-priority"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".priorityCode"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.event",
              "name": "event",
              "short": "A list of events of interest in the lifecycle",
              "definition": "A summary of the events of interest that have occurred as the request is processed; e.g. when the order was made, various processing steps (specimens received), when it was completed.",
              "comments": "This is not the same as an audit trail. It is a view of the important things that happened in the past. Typically, there would only be one entry for any given status, and systems may not record all the status events.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=FLFS].source"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.event.status",
              "short": "proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed",
              "definition": "The status for the event.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of a diagnostic order.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode also influenced by whether a ControlAct fulfillment requeste exists, whether a promise exists, status of the review component, whether a fulfilling observation exists, whether a refusal exists"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.event.description",
              "short": "More information about the event and its context",
              "definition": "Additional information about the event that occurred - e.g. if the status remained unchanged.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Additional information about an event that occurred to a diagnostic order - e.g. if the status remained unchanged.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-event"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.event.dateTime",
              "short": "The date at which the event happened",
              "definition": "The date/time at which the event occurred.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.event.actor",
              "short": "Who recorded or did this",
              "definition": "The person responsible for performing or recording the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[AUT or PFM]"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.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.",
              "comments": "There would always be at least one item in normal usage, but this is optional so that a workflow can quote order details without having to list the items.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=OBS]"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.item.code",
              "short": "Code to indicate the item (test or panel) being ordered",
              "definition": "A code that identifies a particular diagnostic investigation, or panel of investigations, that have been requested.",
              "comments": "Many laboratory tests and radiology tests embed the specimen/organ system in the test name, for example,  serum or serum/plasma glucose, or a chest xray. The specimen may not be recorded separately from the test code.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Codes for tests/services that can be performed by diagnostic services.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-requests"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-4"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.item.specimen",
              "short": "If this item relates to specific specimens",
              "definition": "If the item is related to a specific specimen.",
              "comments": "A single specimen should not appear in both DiagnosticOrder.specimen and DiagnosticOrder.item.specimen.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Specimen"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SPC].role"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.item.bodySite",
              "short": "Location of requested test (if applicable)",
              "definition": "Anatomical location where the request test should be performed.  This is the target site.",
              "comments": "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 [body-site-instance](extension-body-site-instance.html).",
              "alias": [
                "location"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "targetSiteCode"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.item.status",
              "short": "proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed",
              "definition": "The status of this individual item within the order.",
              "comments": "If the request has multiple items that have their own life cycles, then the items will have their own status while the overall diagnostic order is (usually) \"in-progress\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of a diagnostic order.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode also influenced by whether a ControlAct fulfillment requeste exists, whether a promise exists, status of the review component, whether a fulfilling observation exists, whether a refusal exists"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.item.event",
              "short": "Events specific to this item",
              "definition": "A summary of the events of interest that have occurred as this item of the request is processed.",
              "min": 0,
              "max": "*",
              "nameReference": "event",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=FLFS].source"
                }
              ]
            },
            {
              "path": "DiagnosticOrder.note",
              "short": "Other notes and comments",
              "definition": "Any other notes associated with this patient, specimen or order (e.g. \"patient hates needles\").",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DiagnosticReport",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 3
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
        "name": "DiagnosticReport",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DiagnosticReport Resource",
        "requirements": "To support reporting for any diagnostic report into a clinical data repository.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "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.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORU -> OBR"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DiagnosticReport.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "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 may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DiagnosticReport.identifier",
              "short": "Id for external references to this report",
              "definition": "The local ID assigned to the report by the order filler, usually by the Information System of the diagnostic service provider.",
              "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"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-51"
                },
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DiagnosticReport.status",
              "short": "registered | partial | final | corrected | appended | cancelled | entered-in-error",
              "definition": "The status of the diagnostic report as a whole.",
              "comments": "This is labeled as \"Is Modifier\" because applications need to take appropriate action if a report is withdrawn.",
              "requirements": "Diagnostic services routinely issue provisional/incomplete reports, and sometimes withdraw previously released reports.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the diagnostic report as a whole.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-report-status"
                }
              },
              "mapping": [
                {
                  "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\""
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "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.",
              "comments": "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": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for diagnostic service sections.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-service-sections"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-24"
                },
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=COMP].source[classCode=LIST, moodCode=EVN, code < LabService].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DiagnosticReport.code",
              "short": "Name/Code for this diagnostic report",
              "definition": "A code or name that describes this diagnostic report.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Codes that describe Diagnostic Reports.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/report-codes"
                }
              },
              "mapping": [
                {
                  "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"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "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": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3 (no HL7 v2 mapping for Group or Device)"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=SBJ]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DiagnosticReport.encounter",
              "short": "Health care event when test ordered",
              "definition": "The link to the health care event (encounter) when the order was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19"
                },
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "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.",
              "comments": "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"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-7"
                },
                {
                  "identity": "rim",
                  "map": "effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "DiagnosticReport.issued",
              "short": "DateTime this version was released",
              "definition": "The date and time that this version of the report was released from the source diagnostic service.",
              "comments": "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 Created",
                "Date published",
                "Date Issued"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-22"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=VRF or AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "DiagnosticReport.performer",
              "short": "Responsible Diagnostic Service",
              "definition": "The diagnostic service that is responsible for issuing the report.",
              "comments": "This is not necessarily the source of the atomic data items. 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"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRT-8 (where this PRT-4-Participation = \"PO\")"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=AUT].role[classCode=ASSIGN].scoper"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "DiagnosticReport.request",
              "short": "What was requested",
              "definition": "Details concerning a test or procedure requested.",
              "comments": "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": "Need to be able to track completion of requests based on reports issued and also to report what diagnostic tests were requested (not always the same as what is delivered).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC? OBR-2/3?"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=FLFS].target"
                }
              ]
            },
            {
              "path": "DiagnosticReport.specimen",
              "short": "Specimens this report is based on",
              "definition": "Details about the specimens on which this diagnostic report is based.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Specimen"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=SBJ]"
                }
              ]
            },
            {
              "path": "DiagnosticReport.result",
              "short": "Observations - simple, or complex nested groups",
              "definition": "Observations that are part of this diagnostic report. Observations can be simple name/value pairs (e.g. \"atomic\" results), or they can be grouping observations that include references to other members of the group (e.g. \"panels\").",
              "requirements": "Need to support individual results, or report groups of results, where the result grouping is arbitrary, but meaningful. This structure is recursive - observations can contain observations.",
              "alias": [
                "Data",
                "Atomic Value",
                "Result",
                "Atomic result",
                "Data",
                "Test",
                "Analyte",
                "Battery",
                "Organizer"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBXs"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=COMP].target"
                }
              ]
            },
            {
              "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.",
              "comments": "ImagingStudy and ImageObjectStudy 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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ImagingObjectSelection"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=COMP].target[classsCode=DGIMG, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "DiagnosticReport.image",
              "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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX?"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=COMP].target"
                }
              ]
            },
            {
              "path": "DiagnosticReport.image.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DiagnosticReport.image.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DiagnosticReport.image.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DiagnosticReport.image.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.",
              "comments": "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            },
            {
              "path": "DiagnosticReport.image.link",
              "short": "Reference to the image source",
              "definition": "Reference to the image source.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Media"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".value.reference"
                }
              ]
            },
            {
              "path": "DiagnosticReport.conclusion",
              "short": "Clinical Interpretation of test results",
              "definition": "Concise and clinically contextualized narrative interpretation of the diagnostic report.",
              "comments": "Typically, a report is either [all data, no narrative (e.g. Core lab)] or [a mix of data with some concluding narrative (e.g. Structured Pathology Report, Bone Density)], or [all narrative (e.g. typical imaging report, histopathology)]. In all of these cases, the narrative goes in \"text\".",
              "requirements": "Need to be able to provide a conclusion that is not lost among the basic result data.",
              "alias": [
                "Report"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX"
                },
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=\"SPRT\"].source[classCode=OBS, moodCode=EVN, code=LOINC:48767-8].value (type=ST)"
                }
              ]
            },
            {
              "path": "DiagnosticReport.codedDiagnosis",
              "short": "Codes for the conclusion",
              "definition": "Codes for the conclusion.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Diagnoses codes provided as adjuncts to the report.",
                "valueSetReference": {
                  "reference": "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)"
                }
              ]
            },
            {
              "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.",
              "comments": "\"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": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX"
                },
                {
                  "identity": "rim",
                  "map": "text (type=ED)"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "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.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORU -> OBR"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "DiagnosticReport.identifier",
              "short": "Id for external references to this report",
              "definition": "The local ID assigned to the report by the order filler, usually by the Information System of the diagnostic service provider.",
              "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"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-51"
                },
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DiagnosticReport.status",
              "short": "registered | partial | final | corrected | appended | cancelled | entered-in-error",
              "definition": "The status of the diagnostic report as a whole.",
              "comments": "This is labeled as \"Is Modifier\" because applications need to take appropriate action if a report is withdrawn.",
              "requirements": "Diagnostic services routinely issue provisional/incomplete reports, and sometimes withdraw previously released reports.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the diagnostic report as a whole.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-report-status"
                }
              },
              "mapping": [
                {
                  "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\""
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "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.",
              "comments": "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": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for diagnostic service sections.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-service-sections"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-24"
                },
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=COMP].source[classCode=LIST, moodCode=EVN, code < LabService].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DiagnosticReport.code",
              "short": "Name/Code for this diagnostic report",
              "definition": "A code or name that describes this diagnostic report.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Codes that describe Diagnostic Reports.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/report-codes"
                }
              },
              "mapping": [
                {
                  "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"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "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": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3 (no HL7 v2 mapping for Group or Device)"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=SBJ]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DiagnosticReport.encounter",
              "short": "Health care event when test ordered",
              "definition": "The link to the health care event (encounter) when the order was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19"
                },
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "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.",
              "comments": "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"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-7"
                },
                {
                  "identity": "rim",
                  "map": "effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "DiagnosticReport.issued",
              "short": "DateTime this version was released",
              "definition": "The date and time that this version of the report was released from the source diagnostic service.",
              "comments": "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 Created",
                "Date published",
                "Date Issued"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-22"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=VRF or AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "DiagnosticReport.performer",
              "short": "Responsible Diagnostic Service",
              "definition": "The diagnostic service that is responsible for issuing the report.",
              "comments": "This is not necessarily the source of the atomic data items. 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"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRT-8 (where this PRT-4-Participation = \"PO\")"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=AUT].role[classCode=ASSIGN].scoper"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "DiagnosticReport.request",
              "short": "What was requested",
              "definition": "Details concerning a test or procedure requested.",
              "comments": "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": "Need to be able to track completion of requests based on reports issued and also to report what diagnostic tests were requested (not always the same as what is delivered).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC? OBR-2/3?"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=FLFS].target"
                }
              ]
            },
            {
              "path": "DiagnosticReport.specimen",
              "short": "Specimens this report is based on",
              "definition": "Details about the specimens on which this diagnostic report is based.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Specimen"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=SBJ]"
                }
              ]
            },
            {
              "path": "DiagnosticReport.result",
              "short": "Observations - simple, or complex nested groups",
              "definition": "Observations that are part of this diagnostic report. Observations can be simple name/value pairs (e.g. \"atomic\" results), or they can be grouping observations that include references to other members of the group (e.g. \"panels\").",
              "requirements": "Need to support individual results, or report groups of results, where the result grouping is arbitrary, but meaningful. This structure is recursive - observations can contain observations.",
              "alias": [
                "Data",
                "Atomic Value",
                "Result",
                "Atomic result",
                "Data",
                "Test",
                "Analyte",
                "Battery",
                "Organizer"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBXs"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=COMP].target"
                }
              ]
            },
            {
              "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.",
              "comments": "ImagingStudy and ImageObjectStudy 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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ImagingObjectSelection"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=COMP].target[classsCode=DGIMG, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "DiagnosticReport.image",
              "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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX?"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=COMP].target"
                }
              ]
            },
            {
              "path": "DiagnosticReport.image.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.",
              "comments": "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            },
            {
              "path": "DiagnosticReport.image.link",
              "short": "Reference to the image source",
              "definition": "Reference to the image source.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Media"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".value.reference"
                }
              ]
            },
            {
              "path": "DiagnosticReport.conclusion",
              "short": "Clinical Interpretation of test results",
              "definition": "Concise and clinically contextualized narrative interpretation of the diagnostic report.",
              "comments": "Typically, a report is either [all data, no narrative (e.g. Core lab)] or [a mix of data with some concluding narrative (e.g. Structured Pathology Report, Bone Density)], or [all narrative (e.g. typical imaging report, histopathology)]. In all of these cases, the narrative goes in \"text\".",
              "requirements": "Need to be able to provide a conclusion that is not lost among the basic result data.",
              "alias": [
                "Report"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX"
                },
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=\"SPRT\"].source[classCode=OBS, moodCode=EVN, code=LOINC:48767-8].value (type=ST)"
                }
              ]
            },
            {
              "path": "DiagnosticReport.codedDiagnosis",
              "short": "Codes for the conclusion",
              "definition": "Codes for the conclusion.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Diagnoses codes provided as adjuncts to the report.",
                "valueSetReference": {
                  "reference": "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)"
                }
              ]
            },
            {
              "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.",
              "comments": "\"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": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX"
                },
                {
                  "identity": "rim",
                  "map": "text (type=ED)"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DocumentManifest",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DocumentManifest",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DocumentManifest",
        "name": "DocumentManifest",
        "status": "draft",
        "publisher": "Health Level Seven International (Structured Documents)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/structure/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DocumentManifest Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "xds",
            "uri": "http://ihe.net/xds",
            "name": "XDS"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "DocumentManifest",
              "short": "A manifest that defines a set of documents",
              "definition": "A manifest that defines a set of documents.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act[classCode=FOLDER, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.documents"
                }
              ]
            },
            {
              "path": "DocumentManifest.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DocumentManifest.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DocumentManifest.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DocumentManifest.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "DocumentManifest.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DocumentManifest.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DocumentManifest.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DocumentManifest.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DocumentManifest.masterIdentifier",
              "short": "Unique Identifier for the set of documents",
              "definition": "A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.uniqueId"
                },
                {
                  "identity": "rim",
                  "map": "id [need a list semantic to indicate order matters]"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DocumentManifest.identifier",
              "short": "Other identifiers for the manifest",
              "definition": "Other identifiers associated with the document manifest, including version independent  identifiers.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.entryUUID"
                },
                {
                  "identity": "v2",
                  "map": "TXA-16-Unique Document File Name?"
                },
                {
                  "identity": "rim",
                  "map": ".id / .setId"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DocumentManifest.subject",
              "short": "The subject of the set of documents",
              "definition": "Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.patientId"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DocumentManifest.recipient",
              "short": "Intended to get notified about this set of documents",
              "definition": "A patient, practitioner, or organization for which this set of documents is intended.",
              "comments": "How the recipient receives the document set or is notified of it is up to the implementation. This element is just a statement of intent. If the recipient is a person, and it is not known whether the person is a patient or a practitioner, RelatedPerson would be the default choice.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.intendedRecipient"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=IRCP].role"
                },
                {
                  "identity": "w5",
                  "map": "who.cause"
                }
              ]
            },
            {
              "path": "DocumentManifest.type",
              "short": "Kind of document set",
              "definition": "Specifies the kind of this set of documents (e.g. Patient Summary, Discharge Summary, Prescription, etc.). The type of a set of documents may be the same as one of the documents in it - especially if there is only one - but it may be wider.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Precise type of clinical document.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-doc-typecodes"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.contentTypeCode"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DocumentManifest.author",
              "short": "Who and/or what authored the manifest",
              "definition": "Identifies who is responsible for creating the manifest, and adding  documents to it.",
              "comments": "Not necessarily who did the actual data entry (i.e. typist) or who was the source (informant).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.author"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "DocumentManifest.created",
              "short": "When this document manifest created",
              "definition": "When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated, etc.).",
              "comments": "Creation time is used for tracking, organizing versions and searching. This is the creation time of the document set, not the documents on which it is based.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.submissionTime"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "DocumentManifest.source",
              "short": "The source system/application/software",
              "definition": "Identifies the source system, application, or software that produced the document manifest.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.sourceId"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].time"
                }
              ]
            },
            {
              "path": "DocumentManifest.status",
              "short": "current | superseded | entered-in-error",
              "definition": "The status of this document manifest.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the document reference.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/document-reference-status"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet status"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "DocumentManifest.description",
              "short": "Human-readable description (title)",
              "definition": "Human-readable description of the source document. This is sometimes known as the \"title\".",
              "comments": "What the document is about, rather than a terse summary of the document. It is commonly the case that records do not have a title and are collectively referred to by the display name of Record code (e.g. a \"consultation\" or \"progress note\").",
              "requirements": "Helps humans to assess whether the document is of interest.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.title"
                },
                {
                  "identity": "rim",
                  "map": ".title"
                }
              ]
            },
            {
              "path": "DocumentManifest.content",
              "short": "The items included",
              "definition": "The list of Documents included in the manifest.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentManifest.content.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentManifest.content.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentManifest.content.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DocumentManifest.content.p[x]",
              "short": "Contents of this set of documents",
              "definition": "The list of references to document content, or Attachment that consist of the parts of this document manifest. Usually, these would be document references, but direct references to Media or Attachments are also allowed.",
              "comments": "The intended focus of the DocumentManifest is for the reference to target either DocumentReference or Media Resources, and most implementation guides will restrict to these resources. The reference is to \"Any\" to support EN 13606 usage, where an extract is DocumentManifest that references  List and Composition resources.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet DocumentEntry(s)"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target"
                }
              ]
            },
            {
              "path": "DocumentManifest.related",
              "short": "Related things",
              "definition": "Related identifiers or resources associated with the DocumentManifest.",
              "comments": "May be identifiers or resources that caused the DocumentManifest to be created.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentManifest.related.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentManifest.related.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentManifest.related.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DocumentManifest.related.identifier",
              "short": "Identifiers of things that are related",
              "definition": "Related identifier to this DocumentManifest.  For example, Order numbers, accession numbers, XDW workflow numbers.",
              "comments": "If both identifier and ref elements are present they shall refer to the same thing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DocumentManifest.related.ref",
              "short": "Related Resource",
              "definition": "Related Resource to this DocumentManifest. For example, Order, DiagnosticOrder,  Procedure, EligibilityRequest, etc.",
              "comments": "If both identifier and ref elements are present they shall refer to the same thing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "DocumentManifest",
              "short": "A manifest that defines a set of documents",
              "definition": "A manifest that defines a set of documents.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act[classCode=FOLDER, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.documents"
                }
              ]
            },
            {
              "path": "DocumentManifest.masterIdentifier",
              "short": "Unique Identifier for the set of documents",
              "definition": "A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.uniqueId"
                },
                {
                  "identity": "rim",
                  "map": "id [need a list semantic to indicate order matters]"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DocumentManifest.identifier",
              "short": "Other identifiers for the manifest",
              "definition": "Other identifiers associated with the document manifest, including version independent  identifiers.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.entryUUID"
                },
                {
                  "identity": "v2",
                  "map": "TXA-16-Unique Document File Name?"
                },
                {
                  "identity": "rim",
                  "map": ".id / .setId"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DocumentManifest.subject",
              "short": "The subject of the set of documents",
              "definition": "Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.patientId"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DocumentManifest.recipient",
              "short": "Intended to get notified about this set of documents",
              "definition": "A patient, practitioner, or organization for which this set of documents is intended.",
              "comments": "How the recipient receives the document set or is notified of it is up to the implementation. This element is just a statement of intent. If the recipient is a person, and it is not known whether the person is a patient or a practitioner, RelatedPerson would be the default choice.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.intendedRecipient"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=IRCP].role"
                },
                {
                  "identity": "w5",
                  "map": "who.cause"
                }
              ]
            },
            {
              "path": "DocumentManifest.type",
              "short": "Kind of document set",
              "definition": "Specifies the kind of this set of documents (e.g. Patient Summary, Discharge Summary, Prescription, etc.). The type of a set of documents may be the same as one of the documents in it - especially if there is only one - but it may be wider.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Precise type of clinical document.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-doc-typecodes"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.contentTypeCode"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DocumentManifest.author",
              "short": "Who and/or what authored the manifest",
              "definition": "Identifies who is responsible for creating the manifest, and adding  documents to it.",
              "comments": "Not necessarily who did the actual data entry (i.e. typist) or who was the source (informant).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.author"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "DocumentManifest.created",
              "short": "When this document manifest created",
              "definition": "When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated, etc.).",
              "comments": "Creation time is used for tracking, organizing versions and searching. This is the creation time of the document set, not the documents on which it is based.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.submissionTime"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "DocumentManifest.source",
              "short": "The source system/application/software",
              "definition": "Identifies the source system, application, or software that produced the document manifest.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.sourceId"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].time"
                }
              ]
            },
            {
              "path": "DocumentManifest.status",
              "short": "current | superseded | entered-in-error",
              "definition": "The status of this document manifest.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the document reference.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/document-reference-status"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet status"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "DocumentManifest.description",
              "short": "Human-readable description (title)",
              "definition": "Human-readable description of the source document. This is sometimes known as the \"title\".",
              "comments": "What the document is about, rather than a terse summary of the document. It is commonly the case that records do not have a title and are collectively referred to by the display name of Record code (e.g. a \"consultation\" or \"progress note\").",
              "requirements": "Helps humans to assess whether the document is of interest.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet.title"
                },
                {
                  "identity": "rim",
                  "map": ".title"
                }
              ]
            },
            {
              "path": "DocumentManifest.content",
              "short": "The items included",
              "definition": "The list of Documents included in the manifest.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentManifest.content.p[x]",
              "short": "Contents of this set of documents",
              "definition": "The list of references to document content, or Attachment that consist of the parts of this document manifest. Usually, these would be document references, but direct references to Media or Attachments are also allowed.",
              "comments": "The intended focus of the DocumentManifest is for the reference to target either DocumentReference or Media Resources, and most implementation guides will restrict to these resources. The reference is to \"Any\" to support EN 13606 usage, where an extract is DocumentManifest that references  List and Composition resources.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "SubmissionSet DocumentEntry(s)"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target"
                }
              ]
            },
            {
              "path": "DocumentManifest.related",
              "short": "Related things",
              "definition": "Related identifiers or resources associated with the DocumentManifest.",
              "comments": "May be identifiers or resources that caused the DocumentManifest to be created.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentManifest.related.identifier",
              "short": "Identifiers of things that are related",
              "definition": "Related identifier to this DocumentManifest.  For example, Order numbers, accession numbers, XDW workflow numbers.",
              "comments": "If both identifier and ref elements are present they shall refer to the same thing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DocumentManifest.related.ref",
              "short": "Related Resource",
              "definition": "Related Resource to this DocumentManifest. For example, Order, DiagnosticOrder,  Procedure, EligibilityRequest, etc.",
              "comments": "If both identifier and ref elements are present they shall refer to the same thing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "DocumentReference",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
        "name": "DocumentReference",
        "status": "draft",
        "publisher": "Health Level Seven International (Structured Documents)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/structure/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for DocumentReference Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "xds",
            "uri": "http://ihe.net/xds",
            "name": "XDS"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "DocumentReference",
              "short": "A reference to a document",
              "definition": "A reference to a document .",
              "comments": "Usually, this is used for documents other than those defined by FHIR.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Document[classCode=\"DOC\" and moodCode=\"EVN\"]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.documents"
                }
              ]
            },
            {
              "path": "DocumentReference.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DocumentReference.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "DocumentReference.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "DocumentReference.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "DocumentReference.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "DocumentReference.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DocumentReference.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DocumentReference.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DocumentReference.masterIdentifier",
              "short": "Master Version Specific Identifier",
              "definition": "Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document.",
              "comments": "CDA Document Id extension and root.",
              "requirements": "The structure and format of this Id shall be consistent with the specification corresponding to the formatCode attribute. (e.g. for a DICOM standard document a 64 character numeric UID, for an HL7 CDA format a serialization of the CDA Document Id extension and root in the form \"oid^extension\", where OID is a 64 digits max, and the Id is a 16 UTF-8 char max. If the OID is coded without the extension then the '^' character shall not be included.).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.uniqueId"
                },
                {
                  "identity": "v2",
                  "map": "TXA-12"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DocumentReference.identifier",
              "short": "Other identifiers for the document",
              "definition": "Other identifiers associated with the document, including version independent identifiers.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.entryUUID"
                },
                {
                  "identity": "v2",
                  "map": "TXA-16?"
                },
                {
                  "identity": "rim",
                  "map": ".id / .setId"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DocumentReference.subject",
              "short": "Who/what is the subject of the document",
              "definition": "Who or what the document is about. The document 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 farm animals, or a set of patients that share a common exposure).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.patientId"
                },
                {
                  "identity": "v2",
                  "map": "PID-3 (No standard way to define a Practitioner or Group subject in HL7 v2 MDM message)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DocumentReference.type",
              "short": "Kind of document (LOINC if possible)",
              "definition": "Specifies the particular kind of document referenced  (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced.",
              "comments": "Key metadata element describing the document, used in searching/filtering.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Precise type of clinical document.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-doc-typecodes"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.type"
                },
                {
                  "identity": "v2",
                  "map": "TXA-2"
                },
                {
                  "identity": "rim",
                  "map": "./code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DocumentReference.class",
              "short": "Categorization of document",
              "definition": "A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type.",
              "comments": "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 document is of interest when viewing a list of documents.",
              "alias": [
                "kind"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "High-level kind of a clinical document at a macro level.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-doc-classcodes"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.class"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DocumentReference.author",
              "short": "Who and/or what authored the document",
              "definition": "Identifies who is responsible for adding the information to the document.",
              "comments": "Not necessarily who did the actual data entry (i.e. typist) it in or who was the source (informant).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.author"
                },
                {
                  "identity": "v2",
                  "map": "TXA-9 (No standard way to indicate a Device in HL7 v2 MDM message)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "DocumentReference.custodian",
              "short": "Organization which maintains the document",
              "definition": "Identifies the organization or group who is responsible for ongoing maintenance of and access to the document.",
              "comments": "Identifies the logical organization to go to find the current version, where to report issues, etc. This is different from the physical location of the document, which is the technical location of the document, which host may be delegated to the management of some other organization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"RCV\"].role[classCode=\"CUST\"].scoper[classCode=\"ORG\" and determinerCode=\"INST\"]"
                }
              ]
            },
            {
              "path": "DocumentReference.authenticator",
              "short": "Who/what authenticated the document",
              "definition": "Which person or organization authenticates that this document is valid.",
              "comments": "Represents a participant within the author institution who has legally authenticated or attested the document. Legal authentication implies that a document has been signed manually or electronically by the legal Authenticator.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.legalAuthenticator"
                },
                {
                  "identity": "v2",
                  "map": "TXA-10"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"AUTHEN\"].role[classCode=\"ASSIGNED\"]"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "DocumentReference.created",
              "short": "Document creation time",
              "definition": "When the document was created.",
              "comments": "Creation time is used for tracking, organizing versions and searching. This is the creation time of the document, not the source material on which it is based.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.submissionTime"
                },
                {
                  "identity": "v2",
                  "map": "TXA-6"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime[type=\"TS\"]"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "DocumentReference.indexed",
              "short": "When this document reference created",
              "definition": "When the document reference was created.",
              "comments": "Referencing/indexing time is used for tracking, organizing versions and searching.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.submissionTime"
                },
                {
                  "identity": "rim",
                  "map": ".availabilityTime[type=\"TS\"]"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "DocumentReference.status",
              "short": "current | superseded | entered-in-error",
              "definition": "The status of this document reference.",
              "comments": "This is the status of the DocumentReference object, which might be independent from the docStatus element.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the document reference.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/document-reference-status"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry status"
                },
                {
                  "identity": "v2",
                  "map": "TXA-19"
                },
                {
                  "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(\"ReviseDocument\", code) and isNormalAct()]);  amended: .completionCode=\"AU\" &&  ./statusCode[isNormalDatatype()]=\"complete\" and ./inboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()]/source[subsumesCode(\"ActClass#CACT\") and moodCode=\"EVN\" and domainMember(\"ReviseDocument\", code) and isNormalAct() and statusCode=\"completed\"];  withdrawn : .completionCode=NI &&  ./statusCode[isNormalDatatype()]=\"obsolete\""
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "DocumentReference.docStatus",
              "short": "preliminary | final | appended | amended | entered-in-error",
              "definition": "The status of the underlying document.",
              "comments": "The document that is pointed to might be in various lifecycle states.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Status of the underlying document.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/composition-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "TXA-17"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "DocumentReference.relatesTo",
              "short": "Relationships to other documents",
              "definition": "Relationships that this document has with other document references that already exist.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship"
                }
              ]
            },
            {
              "path": "DocumentReference.relatesTo.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentReference.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentReference.relatesTo.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DocumentReference.relatesTo.code",
              "short": "replaces | transforms | signs | appends",
              "definition": "The type of relationship that this document has with anther document.",
              "comments": "If this document appends another document, then the document cannot be fully understood without also accessing the referenced document.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The type of relationship between documents.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/document-relationship-type"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry Associations type"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship.typeCode"
                }
              ]
            },
            {
              "path": "DocumentReference.relatesTo.target",
              "short": "Target of the relationship",
              "definition": "The target document of this relationship.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry Associations reference"
                },
                {
                  "identity": "rim",
                  "map": ".target[classCode=\"DOC\", moodCode=\"EVN\"].id"
                }
              ]
            },
            {
              "path": "DocumentReference.description",
              "short": "Human-readable description (title)",
              "definition": "Human-readable description of the source document. This is sometimes known as the \"title\".",
              "comments": "What the document is about, rather than a terse summary of the document. It is commonly the case that records do not have a title and are collectively referred to by the display name of Record code (e.g. a \"consultation\" or \"progress note\").",
              "requirements": "Helps humans to assess whether the document is of interest.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.description"
                },
                {
                  "identity": "v2",
                  "map": "TXA-25"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"SUBJ\"].target.text"
                }
              ]
            },
            {
              "path": "DocumentReference.securityLabel",
              "short": "Document security-tags",
              "definition": "A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the \"reference\" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to.",
              "comments": "The confidentiality codes can carry multiple vocabulary items. HL7 has developed an understanding of security and privacy tags that might be desirable in a Document Sharing environment, called HL7 Healthcare Privacy and Security Classification System (HCS). The following specification is recommended but not mandated, as the vocabulary bindings are an administrative domain responsibility. The use of this method is up to the policy domain such as the XDS Affinity Domain or other Trust Domain where all parties including sender and recipients are trusted to appropriately tag and enforce.   In the HL7 Healthcare Privacy and Security Classification (HCS) there are code systems specific to Confidentiality, Sensitivity, Integrity, and Handling Caveats. Some values would come from a local vocabulary as they are related to workflow roles and special projects.",
              "requirements": "Use of the Health Care Privacy/Security Classification (HCS) system of security-tag use is recommended.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/security-labels"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.confidentialityCode"
                },
                {
                  "identity": "v2",
                  "map": "TXA-18"
                },
                {
                  "identity": "rim",
                  "map": ".confidentialityCode"
                }
              ]
            },
            {
              "path": "DocumentReference.content",
              "short": "Document referenced",
              "definition": "The document and format referenced. There may be multiple content element repetitions, each with a different format.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "document.text"
                }
              ]
            },
            {
              "path": "DocumentReference.content.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentReference.content.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentReference.content.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DocumentReference.content.attachment",
              "short": "Where to access the document",
              "definition": "The document or url of the document along with critical metadata to prove content has integrity.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.mimeType DocumentEntry.languageCode DocumentEntry.URI DocumentEntry.size DocumentEntry.hash DocumentEntry.title"
                },
                {
                  "identity": "v2",
                  "map": "TXA-3 for mime type"
                },
                {
                  "identity": "rim",
                  "map": "document.text"
                }
              ]
            },
            {
              "path": "DocumentReference.content.format",
              "short": "Format/content rules for the document",
              "definition": "An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType.",
              "comments": "Note that while IHE mostly issues URNs for format types, not all documents can be identified by a URI.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Document Format Codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/formatcodes"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.formatCode"
                },
                {
                  "identity": "rim",
                  "map": "document.text"
                }
              ]
            },
            {
              "path": "DocumentReference.context",
              "short": "Clinical context of document",
              "definition": "The clinical context in which the document was prepared.",
              "comments": "These values are primarily added to help with searching for interesting/relevant documents.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=\"SUBJ\"].target[classCode<'ACT']"
                }
              ]
            },
            {
              "path": "DocumentReference.context.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentReference.context.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentReference.context.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DocumentReference.context.encounter",
              "short": "Context of the document  content",
              "definition": "Describes the clinical encounter or type of care that the document content is associated with.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "unique(highest(./outboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()], priorityNumber)/target[moodCode=\"EVN\" and classCode=(\"ENC\", \"PCPR\") and isNormalAct])"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "DocumentReference.context.event",
              "short": "Main Clinical Acts 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.",
              "comments": "An event can further specialize the act inherent in the type, such as  where it is simply \"Procedure Report\" and the procedure was a \"colonoscopy\". If one or more event codes are included, they shall not conflict with the values inherent in the class or type elements as such a conflict would create an ambiguous situation.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "This list of codes represents the main clinical acts being documented.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActCode"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.eventCodeList"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "DocumentReference.context.period",
              "short": "Time of service that is being documented",
              "definition": "The time period over which the service that is described by the document was provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.serviceStartTime DocumentEntry.serviceStopTime"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "DocumentReference.context.facilityType",
              "short": "Kind of facility where patient was seen",
              "definition": "The kind of facility where the patient was seen.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "XDS Facility Type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-facilitycodes"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.healthcareFacilityTypeCode"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"LOC\"].role[classCode=\"DSDLOC\"].code"
                }
              ]
            },
            {
              "path": "DocumentReference.context.practiceSetting",
              "short": "Additional details about where the content was created (e.g. clinical specialty)",
              "definition": "This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty.",
              "comments": "The value set for this content has an example binding because it is a value set decided by community policy. Other examples exist for consideration: * HITSP created the table HITSP/C80 Table 2-148 Clinical Specialty Value Set (a value set based upon SNOMED CT which is referenced by Direct (XDR and XDM for Direct Messaging Specification, Version 1), as well as Nationwide Health Information Network (NHIN).  Query for Documents, Web Service Interface Specification, V 3.0, 07/27/2011 * ELGA (Austria) (ELGA CDA Implementie-rungsleitfäden Registrierung von CDA Dokumenten für ELGA mit IHE Cross-Enterprise Document Sharing: XDS Metadaten (XDSDocumentEntry), [1.2.40.0.34.7.6.3] * XDS Connect-a-thon practiceSettingCode.",
              "requirements": "This is an important piece of metadata that providers often rely upon to quickly sort and/or filter out to find specific content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Additional details about where the content was created (e.g. clinical specialty).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.practiceSettingCode"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"LOC\"].role[classCode=\"DSDLOC\"].code"
                }
              ]
            },
            {
              "path": "DocumentReference.context.sourcePatientInfo",
              "short": "Patient demographics from source",
              "definition": "The Patient Information as known when the document was published. May be a reference to a version specific, or contained.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.sourcePatientInfo DocumentEntry.sourcePatientId"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]"
                }
              ]
            },
            {
              "path": "DocumentReference.context.related",
              "short": "Related identifiers or resources",
              "definition": "Related identifiers or resources associated with the DocumentReference.",
              "comments": "May be identifiers or resources that caused the DocumentReference or referenced Document to be created.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.referenceIdList"
                },
                {
                  "identity": "rim",
                  "map": "./outboundRelationship[typeCode=\"PERT\" and isNormalActRelationship()] / target[isNormalAct]"
                }
              ]
            },
            {
              "path": "DocumentReference.context.related.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentReference.context.related.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "DocumentReference.context.related.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "DocumentReference.context.related.identifier",
              "short": "Identifier of related objects or events",
              "definition": "Related identifier to this DocumentReference. If both id and ref are present they shall refer to the same thing.",
              "comments": "Order numbers, accession numbers, XDW workflow numbers.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./outboundRelationship[typeCode=\"PERT\" and isNormalActRelationship()] / target[isNormalAct] .id"
                }
              ]
            },
            {
              "path": "DocumentReference.context.related.ref",
              "short": "Related Resource",
              "definition": "Related Resource to this DocumentReference. If both id and ref are present they shall refer to the same thing.",
              "comments": "Order, DiagnosticOrder,  Procedure, EligibilityRequest, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./outboundRelationship[typeCode=\"PERT\" and isNormalActRelationship()] / target[isNormalAct].text.reference"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "DocumentReference",
              "short": "A reference to a document",
              "definition": "A reference to a document .",
              "comments": "Usually, this is used for documents other than those defined by FHIR.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Document[classCode=\"DOC\" and moodCode=\"EVN\"]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.documents"
                }
              ]
            },
            {
              "path": "DocumentReference.masterIdentifier",
              "short": "Master Version Specific Identifier",
              "definition": "Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document.",
              "comments": "CDA Document Id extension and root.",
              "requirements": "The structure and format of this Id shall be consistent with the specification corresponding to the formatCode attribute. (e.g. for a DICOM standard document a 64 character numeric UID, for an HL7 CDA format a serialization of the CDA Document Id extension and root in the form \"oid^extension\", where OID is a 64 digits max, and the Id is a 16 UTF-8 char max. If the OID is coded without the extension then the '^' character shall not be included.).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.uniqueId"
                },
                {
                  "identity": "v2",
                  "map": "TXA-12"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DocumentReference.identifier",
              "short": "Other identifiers for the document",
              "definition": "Other identifiers associated with the document, including version independent identifiers.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.entryUUID"
                },
                {
                  "identity": "v2",
                  "map": "TXA-16?"
                },
                {
                  "identity": "rim",
                  "map": ".id / .setId"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "DocumentReference.subject",
              "short": "Who/what is the subject of the document",
              "definition": "Who or what the document is about. The document 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 farm animals, or a set of patients that share a common exposure).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.patientId"
                },
                {
                  "identity": "v2",
                  "map": "PID-3 (No standard way to define a Practitioner or Group subject in HL7 v2 MDM message)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "DocumentReference.type",
              "short": "Kind of document (LOINC if possible)",
              "definition": "Specifies the particular kind of document referenced  (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced.",
              "comments": "Key metadata element describing the document, used in searching/filtering.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Precise type of clinical document.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-doc-typecodes"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.type"
                },
                {
                  "identity": "v2",
                  "map": "TXA-2"
                },
                {
                  "identity": "rim",
                  "map": "./code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DocumentReference.class",
              "short": "Categorization of document",
              "definition": "A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type.",
              "comments": "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 document is of interest when viewing a list of documents.",
              "alias": [
                "kind"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "High-level kind of a clinical document at a macro level.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-doc-classcodes"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.class"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "DocumentReference.author",
              "short": "Who and/or what authored the document",
              "definition": "Identifies who is responsible for adding the information to the document.",
              "comments": "Not necessarily who did the actual data entry (i.e. typist) it in or who was the source (informant).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.author"
                },
                {
                  "identity": "v2",
                  "map": "TXA-9 (No standard way to indicate a Device in HL7 v2 MDM message)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "DocumentReference.custodian",
              "short": "Organization which maintains the document",
              "definition": "Identifies the organization or group who is responsible for ongoing maintenance of and access to the document.",
              "comments": "Identifies the logical organization to go to find the current version, where to report issues, etc. This is different from the physical location of the document, which is the technical location of the document, which host may be delegated to the management of some other organization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"RCV\"].role[classCode=\"CUST\"].scoper[classCode=\"ORG\" and determinerCode=\"INST\"]"
                }
              ]
            },
            {
              "path": "DocumentReference.authenticator",
              "short": "Who/what authenticated the document",
              "definition": "Which person or organization authenticates that this document is valid.",
              "comments": "Represents a participant within the author institution who has legally authenticated or attested the document. Legal authentication implies that a document has been signed manually or electronically by the legal Authenticator.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.legalAuthenticator"
                },
                {
                  "identity": "v2",
                  "map": "TXA-10"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"AUTHEN\"].role[classCode=\"ASSIGNED\"]"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "DocumentReference.created",
              "short": "Document creation time",
              "definition": "When the document was created.",
              "comments": "Creation time is used for tracking, organizing versions and searching. This is the creation time of the document, not the source material on which it is based.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.submissionTime"
                },
                {
                  "identity": "v2",
                  "map": "TXA-6"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime[type=\"TS\"]"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "DocumentReference.indexed",
              "short": "When this document reference created",
              "definition": "When the document reference was created.",
              "comments": "Referencing/indexing time is used for tracking, organizing versions and searching.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.submissionTime"
                },
                {
                  "identity": "rim",
                  "map": ".availabilityTime[type=\"TS\"]"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "DocumentReference.status",
              "short": "current | superseded | entered-in-error",
              "definition": "The status of this document reference.",
              "comments": "This is the status of the DocumentReference object, which might be independent from the docStatus element.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the document reference.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/document-reference-status"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry status"
                },
                {
                  "identity": "v2",
                  "map": "TXA-19"
                },
                {
                  "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(\"ReviseDocument\", code) and isNormalAct()]);  amended: .completionCode=\"AU\" &&  ./statusCode[isNormalDatatype()]=\"complete\" and ./inboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()]/source[subsumesCode(\"ActClass#CACT\") and moodCode=\"EVN\" and domainMember(\"ReviseDocument\", code) and isNormalAct() and statusCode=\"completed\"];  withdrawn : .completionCode=NI &&  ./statusCode[isNormalDatatype()]=\"obsolete\""
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "DocumentReference.docStatus",
              "short": "preliminary | final | appended | amended | entered-in-error",
              "definition": "The status of the underlying document.",
              "comments": "The document that is pointed to might be in various lifecycle states.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Status of the underlying document.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/composition-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "TXA-17"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "DocumentReference.relatesTo",
              "short": "Relationships to other documents",
              "definition": "Relationships that this document has with other document references that already exist.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship"
                }
              ]
            },
            {
              "path": "DocumentReference.relatesTo.code",
              "short": "replaces | transforms | signs | appends",
              "definition": "The type of relationship that this document has with anther document.",
              "comments": "If this document appends another document, then the document cannot be fully understood without also accessing the referenced document.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The type of relationship between documents.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/document-relationship-type"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry Associations type"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship.typeCode"
                }
              ]
            },
            {
              "path": "DocumentReference.relatesTo.target",
              "short": "Target of the relationship",
              "definition": "The target document of this relationship.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry Associations reference"
                },
                {
                  "identity": "rim",
                  "map": ".target[classCode=\"DOC\", moodCode=\"EVN\"].id"
                }
              ]
            },
            {
              "path": "DocumentReference.description",
              "short": "Human-readable description (title)",
              "definition": "Human-readable description of the source document. This is sometimes known as the \"title\".",
              "comments": "What the document is about, rather than a terse summary of the document. It is commonly the case that records do not have a title and are collectively referred to by the display name of Record code (e.g. a \"consultation\" or \"progress note\").",
              "requirements": "Helps humans to assess whether the document is of interest.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.description"
                },
                {
                  "identity": "v2",
                  "map": "TXA-25"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"SUBJ\"].target.text"
                }
              ]
            },
            {
              "path": "DocumentReference.securityLabel",
              "short": "Document security-tags",
              "definition": "A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the \"reference\" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to.",
              "comments": "The confidentiality codes can carry multiple vocabulary items. HL7 has developed an understanding of security and privacy tags that might be desirable in a Document Sharing environment, called HL7 Healthcare Privacy and Security Classification System (HCS). The following specification is recommended but not mandated, as the vocabulary bindings are an administrative domain responsibility. The use of this method is up to the policy domain such as the XDS Affinity Domain or other Trust Domain where all parties including sender and recipients are trusted to appropriately tag and enforce.   In the HL7 Healthcare Privacy and Security Classification (HCS) there are code systems specific to Confidentiality, Sensitivity, Integrity, and Handling Caveats. Some values would come from a local vocabulary as they are related to workflow roles and special projects.",
              "requirements": "Use of the Health Care Privacy/Security Classification (HCS) system of security-tag use is recommended.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/security-labels"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.confidentialityCode"
                },
                {
                  "identity": "v2",
                  "map": "TXA-18"
                },
                {
                  "identity": "rim",
                  "map": ".confidentialityCode"
                }
              ]
            },
            {
              "path": "DocumentReference.content",
              "short": "Document referenced",
              "definition": "The document and format referenced. There may be multiple content element repetitions, each with a different format.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "document.text"
                }
              ]
            },
            {
              "path": "DocumentReference.content.attachment",
              "short": "Where to access the document",
              "definition": "The document or url of the document along with critical metadata to prove content has integrity.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.mimeType DocumentEntry.languageCode DocumentEntry.URI DocumentEntry.size DocumentEntry.hash DocumentEntry.title"
                },
                {
                  "identity": "v2",
                  "map": "TXA-3 for mime type"
                },
                {
                  "identity": "rim",
                  "map": "document.text"
                }
              ]
            },
            {
              "path": "DocumentReference.content.format",
              "short": "Format/content rules for the document",
              "definition": "An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType.",
              "comments": "Note that while IHE mostly issues URNs for format types, not all documents can be identified by a URI.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Document Format Codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/formatcodes"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.formatCode"
                },
                {
                  "identity": "rim",
                  "map": "document.text"
                }
              ]
            },
            {
              "path": "DocumentReference.context",
              "short": "Clinical context of document",
              "definition": "The clinical context in which the document was prepared.",
              "comments": "These values are primarily added to help with searching for interesting/relevant documents.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=\"SUBJ\"].target[classCode<'ACT']"
                }
              ]
            },
            {
              "path": "DocumentReference.context.encounter",
              "short": "Context of the document  content",
              "definition": "Describes the clinical encounter or type of care that the document content is associated with.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "unique(highest(./outboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()], priorityNumber)/target[moodCode=\"EVN\" and classCode=(\"ENC\", \"PCPR\") and isNormalAct])"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "DocumentReference.context.event",
              "short": "Main Clinical Acts 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.",
              "comments": "An event can further specialize the act inherent in the type, such as  where it is simply \"Procedure Report\" and the procedure was a \"colonoscopy\". If one or more event codes are included, they shall not conflict with the values inherent in the class or type elements as such a conflict would create an ambiguous situation.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "This list of codes represents the main clinical acts being documented.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActCode"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.eventCodeList"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "DocumentReference.context.period",
              "short": "Time of service that is being documented",
              "definition": "The time period over which the service that is described by the document was provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.serviceStartTime DocumentEntry.serviceStopTime"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "DocumentReference.context.facilityType",
              "short": "Kind of facility where patient was seen",
              "definition": "The kind of facility where the patient was seen.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "XDS Facility Type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-facilitycodes"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.healthcareFacilityTypeCode"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"LOC\"].role[classCode=\"DSDLOC\"].code"
                }
              ]
            },
            {
              "path": "DocumentReference.context.practiceSetting",
              "short": "Additional details about where the content was created (e.g. clinical specialty)",
              "definition": "This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty.",
              "comments": "The value set for this content has an example binding because it is a value set decided by community policy. Other examples exist for consideration: * HITSP created the table HITSP/C80 Table 2-148 Clinical Specialty Value Set (a value set based upon SNOMED CT which is referenced by Direct (XDR and XDM for Direct Messaging Specification, Version 1), as well as Nationwide Health Information Network (NHIN).  Query for Documents, Web Service Interface Specification, V 3.0, 07/27/2011 * ELGA (Austria) (ELGA CDA Implementie-rungsleitfäden Registrierung von CDA Dokumenten für ELGA mit IHE Cross-Enterprise Document Sharing: XDS Metadaten (XDSDocumentEntry), [1.2.40.0.34.7.6.3] * XDS Connect-a-thon practiceSettingCode.",
              "requirements": "This is an important piece of metadata that providers often rely upon to quickly sort and/or filter out to find specific content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Additional details about where the content was created (e.g. clinical specialty).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
                }
              },
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.practiceSettingCode"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"LOC\"].role[classCode=\"DSDLOC\"].code"
                }
              ]
            },
            {
              "path": "DocumentReference.context.sourcePatientInfo",
              "short": "Patient demographics from source",
              "definition": "The Patient Information as known when the document was published. May be a reference to a version specific, or contained.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.sourcePatientInfo DocumentEntry.sourcePatientId"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]"
                }
              ]
            },
            {
              "path": "DocumentReference.context.related",
              "short": "Related identifiers or resources",
              "definition": "Related identifiers or resources associated with the DocumentReference.",
              "comments": "May be identifiers or resources that caused the DocumentReference or referenced Document to be created.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "xds",
                  "map": "DocumentEntry.referenceIdList"
                },
                {
                  "identity": "rim",
                  "map": "./outboundRelationship[typeCode=\"PERT\" and isNormalActRelationship()] / target[isNormalAct]"
                }
              ]
            },
            {
              "path": "DocumentReference.context.related.identifier",
              "short": "Identifier of related objects or events",
              "definition": "Related identifier to this DocumentReference. If both id and ref are present they shall refer to the same thing.",
              "comments": "Order numbers, accession numbers, XDW workflow numbers.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./outboundRelationship[typeCode=\"PERT\" and isNormalActRelationship()] / target[isNormalAct] .id"
                }
              ]
            },
            {
              "path": "DocumentReference.context.related.ref",
              "short": "Related Resource",
              "definition": "Related Resource to this DocumentReference. If both id and ref are present they shall refer to the same thing.",
              "comments": "Order, DiagnosticOrder,  Procedure, EligibilityRequest, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./outboundRelationship[typeCode=\"PERT\" and isNormalActRelationship()] / target[isNormalAct].text.reference"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/EligibilityRequest",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "EligibilityRequest",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/EligibilityRequest",
        "name": "EligibilityRequest",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for EligibilityRequest Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "cdanetv4",
            "uri": "http://www.cda-adc.ca/en/services/cdanet/",
            "name": "Canadian Dental Association eclaims standard"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "EligibilityRequest",
              "short": "Eligibility request",
              "definition": "This resource provides the insurance eligibility details from the insurer regarding a specified coverage and optionally some class of service.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.support"
                }
              ]
            },
            {
              "path": "EligibilityRequest.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "EligibilityRequest.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "EligibilityRequest.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EligibilityRequest.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EligibilityRequest.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EligibilityRequest.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EligibilityRequest.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EligibilityRequest.created",
              "short": "Creation date",
              "definition": "The date when this resource was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.target",
              "short": "Insurer",
              "definition": "The Insurer who is target  of the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.provider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "EligibilityRequest.organization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.priority",
              "short": "Desired processing priority",
              "definition": "Immediate (STAT), best effort (NORMAL), deferred (DEFER).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The timeliness with which processing is required: STAT, normal, Deferred",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/process-priority"
                }
              }
            },
            {
              "path": "EligibilityRequest.enterer",
              "short": "Author",
              "definition": "Person who created the invoice/claim/pre-determination or pre-authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.facility",
              "short": "Servicing Facility",
              "definition": "Facility where the services were provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.patient",
              "short": "The subject of the Products and Services",
              "definition": "Patient Resource.",
              "comments": "1..1.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C06,C07,C08, C05, C04"
                }
              ]
            },
            {
              "path": "EligibilityRequest.coverage",
              "short": "Insurance or medical plan",
              "definition": "Financial instrument by which payment information for health care.",
              "comments": "1..1.",
              "requirements": "Need to identify the issuer to target for processing and for coordination of benefit processing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Coverage"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.businessArrangement",
              "short": "Business agreement",
              "definition": "The contract number of a business agreement which describes the terms and conditions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.relationship",
              "short": "Patient relationship to subscriber",
              "definition": "The relationship of the patient to the subscriber.",
              "comments": "1..1.",
              "requirements": "To determine relationship between the patient and the subscriber.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the relationship of the patient to the subscriber.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/relationship"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C03"
                }
              ]
            },
            {
              "path": "EligibilityRequest.serviced[x]",
              "short": "Estimated date or dates of Service",
              "definition": "The date or dates when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F09"
                }
              ]
            },
            {
              "path": "EligibilityRequest.benefitCategory",
              "short": "Benefit Category",
              "definition": "Dental, Vision, Medical, Pharmacy, Rehab etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Benefit categories such as: oral, medical, vision etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-category"
                }
              }
            },
            {
              "path": "EligibilityRequest.benefitSubCategory",
              "short": "Benefit SubCategory",
              "definition": "Dental: basic, major, ortho; Vision exam, glasses, contacts; etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Benefit subcategories such as: oral-basic, major, glasses",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-subcategory"
                }
              }
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "EligibilityRequest",
              "short": "Eligibility request",
              "definition": "This resource provides the insurance eligibility details from the insurer regarding a specified coverage and optionally some class of service.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.support"
                }
              ]
            },
            {
              "path": "EligibilityRequest.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EligibilityRequest.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EligibilityRequest.created",
              "short": "Creation date",
              "definition": "The date when this resource was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.target",
              "short": "Insurer",
              "definition": "The Insurer who is target  of the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.provider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "EligibilityRequest.organization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.priority",
              "short": "Desired processing priority",
              "definition": "Immediate (STAT), best effort (NORMAL), deferred (DEFER).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The timeliness with which processing is required: STAT, normal, Deferred",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/process-priority"
                }
              }
            },
            {
              "path": "EligibilityRequest.enterer",
              "short": "Author",
              "definition": "Person who created the invoice/claim/pre-determination or pre-authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.facility",
              "short": "Servicing Facility",
              "definition": "Facility where the services were provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.patient",
              "short": "The subject of the Products and Services",
              "definition": "Patient Resource.",
              "comments": "1..1.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C06,C07,C08, C05, C04"
                }
              ]
            },
            {
              "path": "EligibilityRequest.coverage",
              "short": "Insurance or medical plan",
              "definition": "Financial instrument by which payment information for health care.",
              "comments": "1..1.",
              "requirements": "Need to identify the issuer to target for processing and for coordination of benefit processing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Coverage"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.businessArrangement",
              "short": "Business agreement",
              "definition": "The contract number of a business agreement which describes the terms and conditions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityRequest.relationship",
              "short": "Patient relationship to subscriber",
              "definition": "The relationship of the patient to the subscriber.",
              "comments": "1..1.",
              "requirements": "To determine relationship between the patient and the subscriber.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the relationship of the patient to the subscriber.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/relationship"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C03"
                }
              ]
            },
            {
              "path": "EligibilityRequest.serviced[x]",
              "short": "Estimated date or dates of Service",
              "definition": "The date or dates when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F09"
                }
              ]
            },
            {
              "path": "EligibilityRequest.benefitCategory",
              "short": "Benefit Category",
              "definition": "Dental, Vision, Medical, Pharmacy, Rehab etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Benefit categories such as: oral, medical, vision etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-category"
                }
              }
            },
            {
              "path": "EligibilityRequest.benefitSubCategory",
              "short": "Benefit SubCategory",
              "definition": "Dental: basic, major, ortho; Vision exam, glasses, contacts; etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Benefit subcategories such as: oral-basic, major, glasses",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-subcategory"
                }
              }
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/EligibilityResponse",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "EligibilityResponse",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/EligibilityResponse",
        "name": "EligibilityResponse",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for EligibilityResponse Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "cdanetv4",
            "uri": "http://www.cda-adc.ca/en/services/cdanet/",
            "name": "Canadian Dental Association eclaims standard"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "EligibilityResponse",
              "short": "EligibilityResponse resource",
              "definition": "This resource provides eligibility and plan details from the processing of an Eligibility resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.support"
                }
              ]
            },
            {
              "path": "EligibilityResponse.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "EligibilityResponse.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "EligibilityResponse.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EligibilityResponse.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EligibilityResponse.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EligibilityResponse.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.request",
              "short": "Claim reference",
              "definition": "Original request resource reference.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/EligibilityRequest"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "EligibilityResponse.outcome",
              "short": "complete | error",
              "definition": "Transaction status: error, complete.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The outcome of the processing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/remittance-outcome"
                }
              }
            },
            {
              "path": "EligibilityResponse.disposition",
              "short": "Disposition Message",
              "definition": "A description of the status of the adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EligibilityResponse.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EligibilityResponse.created",
              "short": "Creation date",
              "definition": "The date when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.organization",
              "short": "Insurer",
              "definition": "The Insurer who produced this adjudicated response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.requestProvider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "EligibilityResponse.requestOrganization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.inforce",
              "short": "Coverage inforce",
              "definition": "Flag indicating if the coverage provided is inforce currently  if no service date(s) specified or for the whole duration of the service dates.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.contract",
              "short": "Contract details",
              "definition": "The contract resource which may provide more detailed information.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Contract"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.form",
              "short": "Printed Form Identifier",
              "definition": "The form to be used for printing the content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The forms codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/forms"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Benefits"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                  "valueString": "600;600"
                }
              ],
              "path": "EligibilityResponse.benefitBalance",
              "short": "Benefits by Category",
              "definition": "Benefits and optionally current balances by Category.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.benefitBalance.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "EligibilityResponse.benefitBalance.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "EligibilityResponse.benefitBalance.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EligibilityResponse.benefitBalance.category",
              "short": "Benefit Category",
              "definition": "Dental, Vision, Medical, Pharmacy, Rehab etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Benefit categories such as: oral, medical, vision etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-category"
                }
              }
            },
            {
              "path": "EligibilityResponse.benefitBalance.subCategory",
              "short": "Benefit SubCategory",
              "definition": "Dental: basic, major, ortho; Vision exam, glasses, contacts; etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Benefit subcategories such as: oral-basic, major, glasses",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-subcategory"
                }
              }
            },
            {
              "path": "EligibilityResponse.benefitBalance.network",
              "short": "In or out of network",
              "definition": "Network designation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Code to classify in or out of network services",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-network"
                }
              }
            },
            {
              "path": "EligibilityResponse.benefitBalance.unit",
              "short": "Individual or family",
              "definition": "Unit designation: individual or family.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Unit covered/serviced - individual or family",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-unit"
                }
              }
            },
            {
              "path": "EligibilityResponse.benefitBalance.term",
              "short": "Annual or lifetime",
              "definition": "The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual vistis'.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Coverage unit - annual, lifetime",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-term"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Benefit"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                  "valueString": "600;750"
                }
              ],
              "path": "EligibilityResponse.benefitBalance.financial",
              "short": "Benefit Summary",
              "definition": "Benefits Used to date.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.benefitBalance.financial.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "EligibilityResponse.benefitBalance.financial.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "EligibilityResponse.benefitBalance.financial.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EligibilityResponse.benefitBalance.financial.type",
              "short": "Deductable, visits, benefit amount",
              "definition": "Deductable, visits, benefit amount.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Deductable, visits, co-pay, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-type"
                }
              }
            },
            {
              "path": "EligibilityResponse.benefitBalance.financial.benefit[x]",
              "short": "Benefits allowed",
              "definition": "Benefits allowed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.benefitBalance.financial.benefitUsed[x]",
              "short": "Benefits used",
              "definition": "Benefits used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Errors"
                }
              ],
              "path": "EligibilityResponse.error",
              "short": "Processing errors",
              "definition": "Mutually exclusive with Services Provided (Item).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.error.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "EligibilityResponse.error.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "EligibilityResponse.error.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EligibilityResponse.error.code",
              "short": "Error code detailing processing issues",
              "definition": "An error code,from a specified code system, which details why the eligibility check could not be performed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The error codes for adjudication processing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication-error"
                }
              }
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "EligibilityResponse",
              "short": "EligibilityResponse resource",
              "definition": "This resource provides eligibility and plan details from the processing of an Eligibility resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.support"
                }
              ]
            },
            {
              "path": "EligibilityResponse.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.request",
              "short": "Claim reference",
              "definition": "Original request resource reference.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/EligibilityRequest"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "EligibilityResponse.outcome",
              "short": "complete | error",
              "definition": "Transaction status: error, complete.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The outcome of the processing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/remittance-outcome"
                }
              }
            },
            {
              "path": "EligibilityResponse.disposition",
              "short": "Disposition Message",
              "definition": "A description of the status of the adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EligibilityResponse.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EligibilityResponse.created",
              "short": "Creation date",
              "definition": "The date when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.organization",
              "short": "Insurer",
              "definition": "The Insurer who produced this adjudicated response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.requestProvider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "EligibilityResponse.requestOrganization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.inforce",
              "short": "Coverage inforce",
              "definition": "Flag indicating if the coverage provided is inforce currently  if no service date(s) specified or for the whole duration of the service dates.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.contract",
              "short": "Contract details",
              "definition": "The contract resource which may provide more detailed information.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Contract"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.form",
              "short": "Printed Form Identifier",
              "definition": "The form to be used for printing the content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The forms codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/forms"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Benefits"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                  "valueString": "600;600"
                }
              ],
              "path": "EligibilityResponse.benefitBalance",
              "short": "Benefits by Category",
              "definition": "Benefits and optionally current balances by Category.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.benefitBalance.category",
              "short": "Benefit Category",
              "definition": "Dental, Vision, Medical, Pharmacy, Rehab etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Benefit categories such as: oral, medical, vision etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-category"
                }
              }
            },
            {
              "path": "EligibilityResponse.benefitBalance.subCategory",
              "short": "Benefit SubCategory",
              "definition": "Dental: basic, major, ortho; Vision exam, glasses, contacts; etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Benefit subcategories such as: oral-basic, major, glasses",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-subcategory"
                }
              }
            },
            {
              "path": "EligibilityResponse.benefitBalance.network",
              "short": "In or out of network",
              "definition": "Network designation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Code to classify in or out of network services",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-network"
                }
              }
            },
            {
              "path": "EligibilityResponse.benefitBalance.unit",
              "short": "Individual or family",
              "definition": "Unit designation: individual or family.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Unit covered/serviced - individual or family",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-unit"
                }
              }
            },
            {
              "path": "EligibilityResponse.benefitBalance.term",
              "short": "Annual or lifetime",
              "definition": "The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual vistis'.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Coverage unit - annual, lifetime",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-term"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Benefit"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                  "valueString": "600;750"
                }
              ],
              "path": "EligibilityResponse.benefitBalance.financial",
              "short": "Benefit Summary",
              "definition": "Benefits Used to date.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.benefitBalance.financial.type",
              "short": "Deductable, visits, benefit amount",
              "definition": "Deductable, visits, benefit amount.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Deductable, visits, co-pay, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-type"
                }
              }
            },
            {
              "path": "EligibilityResponse.benefitBalance.financial.benefit[x]",
              "short": "Benefits allowed",
              "definition": "Benefits allowed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.benefitBalance.financial.benefitUsed[x]",
              "short": "Benefits used",
              "definition": "Benefits used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Errors"
                }
              ],
              "path": "EligibilityResponse.error",
              "short": "Processing errors",
              "definition": "Mutually exclusive with Services Provided (Item).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EligibilityResponse.error.code",
              "short": "Error code detailing processing issues",
              "definition": "An error code,from a specified code system, which details why the eligibility check could not be performed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The error codes for adjudication processing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication-error"
                }
              }
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/Encounter-everything",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "Encounter-everything",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/Encounter-everything",
        "name": "Fetch Encounter Record",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "This operation is used to return all the information related to an encounter described in the resource on which this operation is invoked. The response is a bundle of type \"searchset\". At a minimum, the encounter resource itself is returned, along with any other resources that the server has available for the given encounter for the user. The server also returns whatever resources are needed to support the records - e.g. linked practitioners, locations, organizations etc. The principle intended use for this operation is to provide a patient with access to their record, or to allow a client to retrieve everything for an encounter for efficient display).  The server SHOULD return all resources that it has that are in the encounter compartment for the identified encounter, and any resource referenced from those, including binaries and attachments. In the US Realm, at a mimimum, the resources returned SHALL include all the data covered by the meaningful use common data elements (see [DAF](daf/daf.html) for further guidance). Other applicable implementation guides may make additional rules about the information that is returned.   Note that for many resources, the exact nature of the link to encounter can be ambiguous (e.g. for a DiagnosticReport, is it the encounter when it was initiated, or when it was reported?)",
        "code": "everything",
        "notes": "The key differences between this operation and simply searching the encounter compartment are:  * unless the client requests otherwise, the server returns the entire result set in a single bundle (rather than using paging) * the server is responsible for determining what resources to return as included resources (rather than the client specifying which ones)",
        "system": false,
        "instance": true,
        "parameter": [
          {
            "name": "return",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "The bundle type is \"searchset\"",
            "type": "Bundle"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Encounter",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Encounter",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Encounter",
        "name": "Encounter",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Encounter Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Encounter",
              "short": "An interaction during which services are provided to the patient",
              "definition": "An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.",
              "alias": [
                "Visit"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Encounter[moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "workflow.encounter"
                }
              ]
            },
            {
              "path": "Encounter.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Encounter.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Encounter.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Encounter.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Encounter.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Encounter.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Encounter.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Encounter.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Encounter.identifier",
              "short": "Identifier(s) by which this encounter is known",
              "definition": "Identifier(s) by which this encounter is known.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Encounter.status",
              "short": "planned | arrived | in-progress | onleave | finished | cancelled",
              "definition": "planned | arrived | in-progress | onleave | finished | cancelled.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Current state of the encounter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-state"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "No clear equivalent in HL7 v2; active/finished could be inferred from PV1-44, PV1-45, PV2-24; inactive could be inferred from PV2-16"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Encounter.statusHistory",
              "short": "List of past encounter statuses",
              "definition": "The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them.",
              "comments": "The current status is always found in the current version of the resource, not the status history.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Encounter.statusHistory.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Encounter.statusHistory.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Encounter.statusHistory.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Encounter.statusHistory.status",
              "short": "planned | arrived | in-progress | onleave | finished | cancelled",
              "definition": "planned | arrived | in-progress | onleave | finished | cancelled.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Current state of the encounter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-state"
                }
              }
            },
            {
              "path": "Encounter.statusHistory.period",
              "short": "The time that the episode was in the specified status",
              "definition": "The time that the episode was in the specified status.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "path": "Encounter.class",
              "short": "inpatient | outpatient | ambulatory | emergency +",
              "definition": "inpatient | outpatient | ambulatory | emergency +.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Classification of the encounter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-class"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-2"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Encounter.type",
              "short": "Specific type of encounter",
              "definition": "Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation).",
              "comments": "Since there are many ways to further classify encounters, this element is 0..*.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The type of encounter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-type"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-4 / PV1-18"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Encounter.priority",
              "short": "Indicates the urgency of the encounter",
              "definition": "Indicates the urgency of the encounter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Indicates the urgency of the encounter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-priority"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV2-25"
                },
                {
                  "identity": "rim",
                  "map": ".priorityCode"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            },
            {
              "path": "Encounter.patient",
              "short": "The patient present at the encounter",
              "definition": "The patient present at the encounter.",
              "comments": "While the encounter is always about the patient, the patient may not actually be known in all contexts of use.",
              "alias": [
                "patient"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ]/role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Encounter.episodeOfCare",
              "short": "Episode(s) of care that this encounter should be recorded against",
              "definition": "Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem.  The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-54, PV1-53"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Encounter.incomingReferral",
              "short": "The ReferralRequest that initiated this encounter",
              "definition": "The referral request this encounter satisfies (incoming referral).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                }
              ]
            },
            {
              "path": "Encounter.participant",
              "short": "List of participants involved in the encounter",
              "definition": "The list of people responsible for providing the service.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ROL"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM]"
                }
              ]
            },
            {
              "path": "Encounter.participant.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Encounter.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Encounter.participant.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Encounter.participant.type",
              "short": "Role of participant in encounter",
              "definition": "Role of participant in encounter.",
              "comments": "The participant type indicates how an individual partitipates in an encounter. It includes non-practitioner participants, and for practitioners this is to describe the action type in the context of this encounter (e.g. Admitting Dr, Attending Dr, Translator, Consulting Dr). This is different to the practitioner roles which are functional roles, derived from terms of employment, education, licensing, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Role of participant in encounter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ROL-3 (or maybe PRT-4)"
                },
                {
                  "identity": "rim",
                  "map": ".functionCode"
                }
              ]
            },
            {
              "path": "Encounter.participant.period",
              "short": "Period of time during the encounter participant was present",
              "definition": "The period of time that the specified participant was present during the encounter. These can overlap or be sub-sets of the overall encounters period.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ROL-5, ROL-6 (or maybe PRT-5)"
                }
              ]
            },
            {
              "path": "Encounter.participant.individual",
              "short": "Persons involved in the encounter other than the patient",
              "definition": "Persons involved in the encounter other than the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ROL-4"
                },
                {
                  "identity": "rim",
                  "map": ".role"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "Encounter.appointment",
              "short": "The appointment that scheduled this encounter",
              "definition": "The appointment that scheduled this encounter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Appointment"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SCH-1 / SCH-2"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=FLFS].target[classCode=ENC, moodCode=APT]"
                }
              ]
            },
            {
              "path": "Encounter.period",
              "short": "The start and end time of the encounter",
              "definition": "The start and end time of the encounter.",
              "comments": "If not (yet) known, the end of the Period may be omitted.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-44, PV1-45"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime (low & high)"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Encounter.length",
              "short": "Quantity of time the encounter lasted (less time absent)",
              "definition": "Quantity of time the encounter lasted. This excludes the time during leaves of absence.",
              "comments": "May differ from the time the Encounter.period lasted because of leave of absence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Duration"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "(PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes"
                },
                {
                  "identity": "rim",
                  "map": ".lengthOfStayQuantity"
                }
              ]
            },
            {
              "path": "Encounter.reason",
              "short": "Reason the encounter takes place (code)",
              "definition": "Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.",
              "comments": "For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis).",
              "alias": [
                "Indication",
                "Admission diagnosis"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Reason why the encounter takes place.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-reason"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )"
                },
                {
                  "identity": "rim",
                  "map": ".reasonCode"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "Encounter.indication",
              "short": "Reason the encounter takes place (resource)",
              "definition": "Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.",
              "comments": "For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis).",
              "alias": [
                "Admission diagnosis"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Procedure"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Resources that would commonly referenced at Encounter.indication would be Condition and/or Procedure. These most closely align with DG1/PRB and PR1 respectively."
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=RSON].target"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization",
              "short": "Details about the admission to a healthcare service",
              "definition": "Details about the admission to a healthcare service.",
              "comments": "An Encounter may cover more than just the inpatient stay. Contexts such as outpatients, community clinics, and aged care facilities are also included.\n\nThe duration recorded in the period of this encounter covers the entire scope of this hospitalization record.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=ENC, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.preAdmissionIdentifier",
              "short": "Pre-admission identifier",
              "definition": "Pre-admission identifier.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-5"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.origin",
              "short": "The location from which the patient came before admission",
              "definition": "The location from which the patient came before admission.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=ORG].role"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.admitSource",
              "short": "From where patient was admitted (physician referral, transfer)",
              "definition": "From where patient was admitted (physician referral, transfer).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "From where the patient was admitted.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-admit-source"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-14"
                },
                {
                  "identity": "rim",
                  "map": ".admissionReferralSourceCode"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.admittingDiagnosis",
              "short": "The admitting diagnosis as reported by admitting practitioner",
              "definition": "The admitting diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.reAdmission",
              "short": "The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission",
              "definition": "Whether this hospitalization is a readmission and why if known.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The reason for re-admission of this hospitalization encounter."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-13"
                },
                {
                  "identity": "rim",
                  "map": "Propose at harmonization"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.dietPreference",
              "short": "Diet preferences reported by the patient",
              "definition": "Diet preferences reported by the patient.",
              "comments": "For example a patient may request both a dairy-free and nut-free diet preference (not mutually exclusive).",
              "requirements": "Used to track patient's diet restrictions and/or preference. For a complete description of the nutrition needs of a patient during their stay, one should use the nutritionOrder resource which links to Encounter.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Medical, cultural or ethical food preferences to help with catering requirements.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-diet"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-38"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=EVN, code=\"diet\"]"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.specialCourtesy",
              "short": "Special courtesies (VIP, board member)",
              "definition": "Special courtesies (VIP, board member).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Special courtesies",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-special-courtesy"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-16"
                },
                {
                  "identity": "rim",
                  "map": ".specialCourtesiesCode"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.specialArrangement",
              "short": "Wheelchair, translator, stretcher, etc.",
              "definition": "Wheelchair, translator, stretcher, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Special arrangements",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-special-arrangements"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-15 / OBR-30 / OBR-43"
                },
                {
                  "identity": "rim",
                  "map": ".specialArrangementCode"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.destination",
              "short": "Location to which the patient is discharged",
              "definition": "Location to which the patient is discharged.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-37"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=DST]"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.dischargeDisposition",
              "short": "Category or kind of location after discharge",
              "definition": "Category or kind of location after discharge.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Discharge Disposition",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-36"
                },
                {
                  "identity": "rim",
                  "map": ".dischargeDispositionCode"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.dischargeDiagnosis",
              "short": "The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete",
              "definition": "The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=OUT].target[classCode=OBS, moodCode=EVN, code=ASSERTION].value"
                }
              ]
            },
            {
              "path": "Encounter.location",
              "short": "List of locations where the patient has been",
              "definition": "List of locations where  the patient has been during this encounter.",
              "comments": "Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type \"kind\" such as \"client's home\" and an encounter.class = \"virtual\".",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=LOC]"
                }
              ]
            },
            {
              "path": "Encounter.location.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Encounter.location.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Encounter.location.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Encounter.location.location",
              "short": "Location the encounter takes place",
              "definition": "The location where the encounter takes place.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43"
                },
                {
                  "identity": "rim",
                  "map": ".role"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "Encounter.location.status",
              "short": "planned | active | reserved | completed",
              "definition": "The status of the participants' presence at the specified location during the period specified. If the participant is is no longer at the location, then the period will have an end date/time.",
              "comments": "When the patient is no longer active at a location, then the period end date is entered, and the status may be changed to completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The status of the location.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-location-status"
                }
              }
            },
            {
              "path": "Encounter.location.period",
              "short": "Time period during which the patient was present at the location",
              "definition": "Time period during which the patient was present at the location.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".time"
                }
              ]
            },
            {
              "path": "Encounter.serviceProvider",
              "short": "The custodian organization of this Encounter record",
              "definition": "An organization that is in charge of maintaining the information of this Encounter (e.g. who maintains the report or the master service catalog item, etc.). This MAY be the same as the organization on the Patient record, however it could be different. This MAY not be not the Service Delivery Location's Organization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-10 / PL.6  & PL.1  (note: HL7 v2 definition is \"the treatment or type of surgery that the patient is scheduled to receive\"; seems slightly out of alignment with the concept name 'hospital service'. Would not trust that implementations apply this semantic by default)"
                },
                {
                  "identity": "rim",
                  "map": ".particiaption[typeCode=PFM].role"
                }
              ]
            },
            {
              "path": "Encounter.partOf",
              "short": "Another Encounter this encounter is part of",
              "definition": "Another Encounter of which this encounter is a part of (administratively or in time).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=COMP, moodCode=EVN]"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Encounter",
              "short": "An interaction during which services are provided to the patient",
              "definition": "An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.",
              "alias": [
                "Visit"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Encounter[moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "workflow.encounter"
                }
              ]
            },
            {
              "path": "Encounter.identifier",
              "short": "Identifier(s) by which this encounter is known",
              "definition": "Identifier(s) by which this encounter is known.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Encounter.status",
              "short": "planned | arrived | in-progress | onleave | finished | cancelled",
              "definition": "planned | arrived | in-progress | onleave | finished | cancelled.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Current state of the encounter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-state"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "No clear equivalent in HL7 v2; active/finished could be inferred from PV1-44, PV1-45, PV2-24; inactive could be inferred from PV2-16"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Encounter.statusHistory",
              "short": "List of past encounter statuses",
              "definition": "The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them.",
              "comments": "The current status is always found in the current version of the resource, not the status history.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Encounter.statusHistory.status",
              "short": "planned | arrived | in-progress | onleave | finished | cancelled",
              "definition": "planned | arrived | in-progress | onleave | finished | cancelled.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Current state of the encounter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-state"
                }
              }
            },
            {
              "path": "Encounter.statusHistory.period",
              "short": "The time that the episode was in the specified status",
              "definition": "The time that the episode was in the specified status.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "path": "Encounter.class",
              "short": "inpatient | outpatient | ambulatory | emergency +",
              "definition": "inpatient | outpatient | ambulatory | emergency +.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Classification of the encounter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-class"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-2"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Encounter.type",
              "short": "Specific type of encounter",
              "definition": "Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation).",
              "comments": "Since there are many ways to further classify encounters, this element is 0..*.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The type of encounter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-type"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-4 / PV1-18"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Encounter.priority",
              "short": "Indicates the urgency of the encounter",
              "definition": "Indicates the urgency of the encounter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Indicates the urgency of the encounter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-priority"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV2-25"
                },
                {
                  "identity": "rim",
                  "map": ".priorityCode"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            },
            {
              "path": "Encounter.patient",
              "short": "The patient present at the encounter",
              "definition": "The patient present at the encounter.",
              "comments": "While the encounter is always about the patient, the patient may not actually be known in all contexts of use.",
              "alias": [
                "patient"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ]/role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Encounter.episodeOfCare",
              "short": "Episode(s) of care that this encounter should be recorded against",
              "definition": "Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem.  The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-54, PV1-53"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Encounter.incomingReferral",
              "short": "The ReferralRequest that initiated this encounter",
              "definition": "The referral request this encounter satisfies (incoming referral).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                }
              ]
            },
            {
              "path": "Encounter.participant",
              "short": "List of participants involved in the encounter",
              "definition": "The list of people responsible for providing the service.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ROL"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM]"
                }
              ]
            },
            {
              "path": "Encounter.participant.type",
              "short": "Role of participant in encounter",
              "definition": "Role of participant in encounter.",
              "comments": "The participant type indicates how an individual partitipates in an encounter. It includes non-practitioner participants, and for practitioners this is to describe the action type in the context of this encounter (e.g. Admitting Dr, Attending Dr, Translator, Consulting Dr). This is different to the practitioner roles which are functional roles, derived from terms of employment, education, licensing, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Role of participant in encounter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ROL-3 (or maybe PRT-4)"
                },
                {
                  "identity": "rim",
                  "map": ".functionCode"
                }
              ]
            },
            {
              "path": "Encounter.participant.period",
              "short": "Period of time during the encounter participant was present",
              "definition": "The period of time that the specified participant was present during the encounter. These can overlap or be sub-sets of the overall encounters period.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ROL-5, ROL-6 (or maybe PRT-5)"
                }
              ]
            },
            {
              "path": "Encounter.participant.individual",
              "short": "Persons involved in the encounter other than the patient",
              "definition": "Persons involved in the encounter other than the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ROL-4"
                },
                {
                  "identity": "rim",
                  "map": ".role"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "Encounter.appointment",
              "short": "The appointment that scheduled this encounter",
              "definition": "The appointment that scheduled this encounter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Appointment"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SCH-1 / SCH-2"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=FLFS].target[classCode=ENC, moodCode=APT]"
                }
              ]
            },
            {
              "path": "Encounter.period",
              "short": "The start and end time of the encounter",
              "definition": "The start and end time of the encounter.",
              "comments": "If not (yet) known, the end of the Period may be omitted.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-44, PV1-45"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime (low & high)"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Encounter.length",
              "short": "Quantity of time the encounter lasted (less time absent)",
              "definition": "Quantity of time the encounter lasted. This excludes the time during leaves of absence.",
              "comments": "May differ from the time the Encounter.period lasted because of leave of absence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Duration"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "(PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes"
                },
                {
                  "identity": "rim",
                  "map": ".lengthOfStayQuantity"
                }
              ]
            },
            {
              "path": "Encounter.reason",
              "short": "Reason the encounter takes place (code)",
              "definition": "Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.",
              "comments": "For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis).",
              "alias": [
                "Indication",
                "Admission diagnosis"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Reason why the encounter takes place.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-reason"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )"
                },
                {
                  "identity": "rim",
                  "map": ".reasonCode"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "Encounter.indication",
              "short": "Reason the encounter takes place (resource)",
              "definition": "Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.",
              "comments": "For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis).",
              "alias": [
                "Admission diagnosis"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Procedure"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Resources that would commonly referenced at Encounter.indication would be Condition and/or Procedure. These most closely align with DG1/PRB and PR1 respectively."
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=RSON].target"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization",
              "short": "Details about the admission to a healthcare service",
              "definition": "Details about the admission to a healthcare service.",
              "comments": "An Encounter may cover more than just the inpatient stay. Contexts such as outpatients, community clinics, and aged care facilities are also included.\n\nThe duration recorded in the period of this encounter covers the entire scope of this hospitalization record.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=ENC, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.preAdmissionIdentifier",
              "short": "Pre-admission identifier",
              "definition": "Pre-admission identifier.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-5"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.origin",
              "short": "The location from which the patient came before admission",
              "definition": "The location from which the patient came before admission.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=ORG].role"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.admitSource",
              "short": "From where patient was admitted (physician referral, transfer)",
              "definition": "From where patient was admitted (physician referral, transfer).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "From where the patient was admitted.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-admit-source"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-14"
                },
                {
                  "identity": "rim",
                  "map": ".admissionReferralSourceCode"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.admittingDiagnosis",
              "short": "The admitting diagnosis as reported by admitting practitioner",
              "definition": "The admitting diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.reAdmission",
              "short": "The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission",
              "definition": "Whether this hospitalization is a readmission and why if known.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The reason for re-admission of this hospitalization encounter."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-13"
                },
                {
                  "identity": "rim",
                  "map": "Propose at harmonization"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.dietPreference",
              "short": "Diet preferences reported by the patient",
              "definition": "Diet preferences reported by the patient.",
              "comments": "For example a patient may request both a dairy-free and nut-free diet preference (not mutually exclusive).",
              "requirements": "Used to track patient's diet restrictions and/or preference. For a complete description of the nutrition needs of a patient during their stay, one should use the nutritionOrder resource which links to Encounter.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Medical, cultural or ethical food preferences to help with catering requirements.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-diet"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-38"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=EVN, code=\"diet\"]"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.specialCourtesy",
              "short": "Special courtesies (VIP, board member)",
              "definition": "Special courtesies (VIP, board member).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Special courtesies",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-special-courtesy"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-16"
                },
                {
                  "identity": "rim",
                  "map": ".specialCourtesiesCode"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.specialArrangement",
              "short": "Wheelchair, translator, stretcher, etc.",
              "definition": "Wheelchair, translator, stretcher, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Special arrangements",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-special-arrangements"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-15 / OBR-30 / OBR-43"
                },
                {
                  "identity": "rim",
                  "map": ".specialArrangementCode"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.destination",
              "short": "Location to which the patient is discharged",
              "definition": "Location to which the patient is discharged.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-37"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=DST]"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.dischargeDisposition",
              "short": "Category or kind of location after discharge",
              "definition": "Category or kind of location after discharge.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Discharge Disposition",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-36"
                },
                {
                  "identity": "rim",
                  "map": ".dischargeDispositionCode"
                }
              ]
            },
            {
              "path": "Encounter.hospitalization.dischargeDiagnosis",
              "short": "The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete",
              "definition": "The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=OUT].target[classCode=OBS, moodCode=EVN, code=ASSERTION].value"
                }
              ]
            },
            {
              "path": "Encounter.location",
              "short": "List of locations where the patient has been",
              "definition": "List of locations where  the patient has been during this encounter.",
              "comments": "Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type \"kind\" such as \"client's home\" and an encounter.class = \"virtual\".",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=LOC]"
                }
              ]
            },
            {
              "path": "Encounter.location.location",
              "short": "Location the encounter takes place",
              "definition": "The location where the encounter takes place.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43"
                },
                {
                  "identity": "rim",
                  "map": ".role"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "Encounter.location.status",
              "short": "planned | active | reserved | completed",
              "definition": "The status of the participants' presence at the specified location during the period specified. If the participant is is no longer at the location, then the period will have an end date/time.",
              "comments": "When the patient is no longer active at a location, then the period end date is entered, and the status may be changed to completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The status of the location.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-location-status"
                }
              }
            },
            {
              "path": "Encounter.location.period",
              "short": "Time period during which the patient was present at the location",
              "definition": "Time period during which the patient was present at the location.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".time"
                }
              ]
            },
            {
              "path": "Encounter.serviceProvider",
              "short": "The custodian organization of this Encounter record",
              "definition": "An organization that is in charge of maintaining the information of this Encounter (e.g. who maintains the report or the master service catalog item, etc.). This MAY be the same as the organization on the Patient record, however it could be different. This MAY not be not the Service Delivery Location's Organization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-10 / PL.6  & PL.1  (note: HL7 v2 definition is \"the treatment or type of surgery that the patient is scheduled to receive\"; seems slightly out of alignment with the concept name 'hospital service'. Would not trust that implementations apply this semantic by default)"
                },
                {
                  "identity": "rim",
                  "map": ".particiaption[typeCode=PFM].role"
                }
              ]
            },
            {
              "path": "Encounter.partOf",
              "short": "Another Encounter this encounter is part of",
              "definition": "Another Encounter of which this encounter is a part of (administratively or in time).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=COMP, moodCode=EVN]"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/EnrollmentRequest",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "EnrollmentRequest",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/EnrollmentRequest",
        "name": "EnrollmentRequest",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for EnrollmentRequest Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "cdanetv4",
            "uri": "http://www.cda-adc.ca/en/services/cdanet/",
            "name": "Canadian Dental Association eclaims standard"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "EnrollmentRequest",
              "short": "Enrollment request",
              "definition": "This resource provides the insurance enrollment details to the insurer regarding a specified coverage.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.support"
                }
              ]
            },
            {
              "path": "EnrollmentRequest.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "EnrollmentRequest.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "EnrollmentRequest.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EnrollmentRequest.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EnrollmentRequest.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EnrollmentRequest.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EnrollmentRequest.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EnrollmentRequest.created",
              "short": "Creation date",
              "definition": "The date when this resource was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.target",
              "short": "Insurer",
              "definition": "The Insurer who is target  of the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.provider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "EnrollmentRequest.organization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.subject",
              "short": "The subject of the Products and Services",
              "definition": "Patient Resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C06,C07,C08, C05, C04"
                }
              ]
            },
            {
              "path": "EnrollmentRequest.coverage",
              "short": "Insurance information",
              "definition": "Reference to the program or plan identification, underwriter or payor.",
              "requirements": "Need to identify the issuer to target for processing and for coordination of benefit processing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Coverage"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.relationship",
              "short": "Patient relationship to subscriber",
              "definition": "The relationship of the patient to the subscriber.",
              "requirements": "To determine the relationship between the patient and the subscriber.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the relationship of the patient to the subscriber.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/relationship"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C03"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "EnrollmentRequest",
              "short": "Enrollment request",
              "definition": "This resource provides the insurance enrollment details to the insurer regarding a specified coverage.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.support"
                }
              ]
            },
            {
              "path": "EnrollmentRequest.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EnrollmentRequest.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EnrollmentRequest.created",
              "short": "Creation date",
              "definition": "The date when this resource was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.target",
              "short": "Insurer",
              "definition": "The Insurer who is target  of the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.provider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "EnrollmentRequest.organization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.subject",
              "short": "The subject of the Products and Services",
              "definition": "Patient Resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C06,C07,C08, C05, C04"
                }
              ]
            },
            {
              "path": "EnrollmentRequest.coverage",
              "short": "Insurance information",
              "definition": "Reference to the program or plan identification, underwriter or payor.",
              "requirements": "Need to identify the issuer to target for processing and for coordination of benefit processing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Coverage"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentRequest.relationship",
              "short": "Patient relationship to subscriber",
              "definition": "The relationship of the patient to the subscriber.",
              "requirements": "To determine the relationship between the patient and the subscriber.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the relationship of the patient to the subscriber.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/relationship"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C03"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/EnrollmentResponse",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "EnrollmentResponse",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/EnrollmentResponse",
        "name": "EnrollmentResponse",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for EnrollmentResponse Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "cdanetv4",
            "uri": "http://www.cda-adc.ca/en/services/cdanet/",
            "name": "Canadian Dental Association eclaims standard"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "EnrollmentResponse",
              "short": "EnrollmentResponse resource",
              "definition": "This resource provides enrollment and plan details from the processing of an Enrollment resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.support"
                }
              ]
            },
            {
              "path": "EnrollmentResponse.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentResponse.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentResponse.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "EnrollmentResponse.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "EnrollmentResponse.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "EnrollmentResponse.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EnrollmentResponse.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EnrollmentResponse.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EnrollmentResponse.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentResponse.request",
              "short": "Claim reference",
              "definition": "Original request resource reference.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/EnrollmentRequest"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "EnrollmentResponse.outcome",
              "short": "complete | error",
              "definition": "Transaction status: error, complete.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The outcome of the processing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/remittance-outcome"
                }
              }
            },
            {
              "path": "EnrollmentResponse.disposition",
              "short": "Disposition Message",
              "definition": "A description of the status of the adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentResponse.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EnrollmentResponse.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EnrollmentResponse.created",
              "short": "Creation date",
              "definition": "The date when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentResponse.organization",
              "short": "Insurer",
              "definition": "The Insurer who produced this adjudicated response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentResponse.requestProvider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "EnrollmentResponse.requestOrganization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "EnrollmentResponse",
              "short": "EnrollmentResponse resource",
              "definition": "This resource provides enrollment and plan details from the processing of an Enrollment resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.support"
                }
              ]
            },
            {
              "path": "EnrollmentResponse.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentResponse.request",
              "short": "Claim reference",
              "definition": "Original request resource reference.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/EnrollmentRequest"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "EnrollmentResponse.outcome",
              "short": "complete | error",
              "definition": "Transaction status: error, complete.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The outcome of the processing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/remittance-outcome"
                }
              }
            },
            {
              "path": "EnrollmentResponse.disposition",
              "short": "Disposition Message",
              "definition": "A description of the status of the adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentResponse.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EnrollmentResponse.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "EnrollmentResponse.created",
              "short": "Creation date",
              "definition": "The date when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentResponse.organization",
              "short": "Insurer",
              "definition": "The Insurer who produced this adjudicated response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EnrollmentResponse.requestProvider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "EnrollmentResponse.requestOrganization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "EpisodeOfCare",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare",
        "name": "EpisodeOfCare",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for EpisodeOfCare Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "EpisodeOfCare",
              "short": "An association of a Patient with an Organization and  Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility",
              "definition": "An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time.",
              "alias": [
                "Case Program Problem"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "workflow.encounter"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EpisodeOfCare.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "EpisodeOfCare.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "EpisodeOfCare.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "EpisodeOfCare.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.identifier",
              "short": "Identifier(s) for the EpisodeOfCare",
              "definition": "Identifier(s) by which this EpisodeOfCare is known.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.status",
              "short": "planned | waitlist | active | onhold | finished | cancelled",
              "definition": "planned | waitlist | active | onhold | finished | cancelled.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the encounter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/episode-of-care-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.statusHistory",
              "short": "Past list of status codes",
              "definition": "The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.statusHistory.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.statusHistory.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.statusHistory.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.statusHistory.status",
              "short": "planned | waitlist | active | onhold | finished | cancelled",
              "definition": "planned | waitlist | active | onhold | finished | cancelled.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The status of the encounter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/episode-of-care-status"
                }
              }
            },
            {
              "path": "EpisodeOfCare.statusHistory.period",
              "short": "Period for the status",
              "definition": "The period during this EpisodeOfCare that the specific status applied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.type",
              "short": "Type/class  - e.g. specialist referral, disease management",
              "definition": "A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care.",
              "comments": "The type can be very important in processing as this could be used in determining if the EpisodeOfCare is relevant to specific government reporting, or other types of classifications.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The type of the encounter."
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.condition",
              "short": "Conditions/problems/diagnoses this episode of care is for",
              "definition": "A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.patient",
              "short": "Patient for this episode of care",
              "definition": "The patient that this EpisodeOfCare applies to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.managingOrganization",
              "short": "Organization that assumes care",
              "definition": "The organization that has assumed the specific responsibilities for the specified duration.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EpisodeOfCare.period",
              "short": "Interval during responsibility is assumed",
              "definition": "The interval during which the managing organization assumes the defined responsibility.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.referralRequest",
              "short": "Originating Referral Request(s)",
              "definition": "Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                }
              ]
            },
            {
              "path": "EpisodeOfCare.careManager",
              "short": "Care manager/care co-ordinator for the patient",
              "definition": "The practitioner that is the care manager/care co-ordinator for this patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ]
            },
            {
              "path": "EpisodeOfCare.careTeam",
              "short": "Other practitioners facilitating this episode of care",
              "definition": "The list of practitioners that may be facilitating this episode of care for specific purposes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.careTeam.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.careTeam.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.careTeam.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.careTeam.role",
              "short": "Role taken by this team member",
              "definition": "The role this team member is taking within this episode of care.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Type of participation expected by a team member.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/participant-role"
                }
              }
            },
            {
              "path": "EpisodeOfCare.careTeam.period",
              "short": "Period of time for this role",
              "definition": "The period of time this practitioner is performing some role within the episode of care.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.careTeam.member",
              "short": "The practitioner (or Organization) within the team",
              "definition": "The practitioner (or Organization) within the team.",
              "comments": "Where an Organization is included in the CareTeam, it is really providing some form of services to the EpisodeOfCare (e.g. Jim's Mowing Services) the details of the services would be included on a CarePlan.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "EpisodeOfCare",
              "short": "An association of a Patient with an Organization and  Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility",
              "definition": "An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time.",
              "alias": [
                "Case Program Problem"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "workflow.encounter"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.identifier",
              "short": "Identifier(s) for the EpisodeOfCare",
              "definition": "Identifier(s) by which this EpisodeOfCare is known.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.status",
              "short": "planned | waitlist | active | onhold | finished | cancelled",
              "definition": "planned | waitlist | active | onhold | finished | cancelled.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the encounter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/episode-of-care-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.statusHistory",
              "short": "Past list of status codes",
              "definition": "The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.statusHistory.status",
              "short": "planned | waitlist | active | onhold | finished | cancelled",
              "definition": "planned | waitlist | active | onhold | finished | cancelled.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The status of the encounter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/episode-of-care-status"
                }
              }
            },
            {
              "path": "EpisodeOfCare.statusHistory.period",
              "short": "Period for the status",
              "definition": "The period during this EpisodeOfCare that the specific status applied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.type",
              "short": "Type/class  - e.g. specialist referral, disease management",
              "definition": "A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care.",
              "comments": "The type can be very important in processing as this could be used in determining if the EpisodeOfCare is relevant to specific government reporting, or other types of classifications.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The type of the encounter."
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.condition",
              "short": "Conditions/problems/diagnoses this episode of care is for",
              "definition": "A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.patient",
              "short": "Patient for this episode of care",
              "definition": "The patient that this EpisodeOfCare applies to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.managingOrganization",
              "short": "Organization that assumes care",
              "definition": "The organization that has assumed the specific responsibilities for the specified duration.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "EpisodeOfCare.period",
              "short": "Interval during responsibility is assumed",
              "definition": "The interval during which the managing organization assumes the defined responsibility.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.referralRequest",
              "short": "Originating Referral Request(s)",
              "definition": "Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                }
              ]
            },
            {
              "path": "EpisodeOfCare.careManager",
              "short": "Care manager/care co-ordinator for the patient",
              "definition": "The practitioner that is the care manager/care co-ordinator for this patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ]
            },
            {
              "path": "EpisodeOfCare.careTeam",
              "short": "Other practitioners facilitating this episode of care",
              "definition": "The list of practitioners that may be facilitating this episode of care for specific purposes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.careTeam.role",
              "short": "Role taken by this team member",
              "definition": "The role this team member is taking within this episode of care.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Type of participation expected by a team member.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/participant-role"
                }
              }
            },
            {
              "path": "EpisodeOfCare.careTeam.period",
              "short": "Period of time for this role",
              "definition": "The period of time this practitioner is performing some role within the episode of care.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "path": "EpisodeOfCare.careTeam.member",
              "short": "The practitioner (or Organization) within the team",
              "definition": "The practitioner (or Organization) within the team.",
              "comments": "Where an Organization is included in the CareTeam, it is really providing some form of services to the EpisodeOfCare (e.g. Jim's Mowing Services) the details of the services would be included on a CarePlan.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ExpansionProfile",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ExpansionProfile",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ExpansionProfile",
        "name": "ExpansionProfile",
        "status": "draft",
        "publisher": "Health Level Seven International (Vocabulary)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/Vocab/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ExpansionProfile Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ExpansionProfile",
              "short": "Defines behaviour and contraints on the ValueSet Expansion operation",
              "definition": "Resource to define constraints on the Expansion of a FHIR ValueSet.",
              "alias": [
                "ValueSetExpansionProfile"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "conformance.terminology"
                }
              ]
            },
            {
              "path": "ExpansionProfile.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ExpansionProfile.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ExpansionProfile.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.url",
              "short": "Globally unique logical identifier for  expansion profile",
              "definition": "An absolute URL that is used to identify this expansion profile when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this expansion profile is (or will be) published.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ExpansionProfile.identifier",
              "short": "Additional identifier for the expansion profile (e.g. an Object Identifier)",
              "definition": "Formal identifier that is used to identify this expansion profile when it is represented in other formats, or referenced in a specification, model, design or an instance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.version",
              "short": "Logical identifier for this version of the expansion profile",
              "definition": "Used to identify this version of the expansion profile when it is referenced in a specification, model, design or instance.",
              "comments": "There may be multiple resource versions of the expansion profile that have the same identifier.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.name",
              "short": "Informal name for this expansion profile",
              "definition": "A free text natural language name for the expansion profile.",
              "comments": "The name is not expected to be unique. A name should be provided unless the expansion profile is a contained resource (e.g. an anonymous expansion profile in a FHIR profile). Most registries will require a name.",
              "requirements": "Support human navigation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.status",
              "short": "draft | active | retired",
              "definition": "The status of the expansion profile.",
              "comments": "Allows filtering of expansion instances that are appropriate (or not) for use.",
              "requirements": "Identify when/if the expansion profile should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ExpansionProfile.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This expansion profile was authored for testing purposes (or education/evaluation/marketing), and is not intended for genuine production usage.",
              "comments": "Allows filtering of expansion instances that are appropriate (or not) for use.",
              "requirements": "This expansion profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.publisher",
              "short": "Name of the publisher (organization or individual)",
              "definition": "The name of the individual or organization that published the expansion profile.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the expansion profile.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.contact.name",
              "short": "Name of an individual to contact",
              "definition": "The name of an individual to contact regarding the expansion profile.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.date",
              "short": "Date for given status",
              "definition": "The date that the expansion profile status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes.",
              "comments": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the expansion profile. Additional specific dates may be added as extensions.",
              "requirements": "Need to know when an expansion profile was first legal for use or became withdrawn or replaced.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.description",
              "short": "Human language description of the expansion profile",
              "definition": "A free text natural language description of the use of the expansion profile - reason for definition,  conditions of use, etc. The description may include a list of expected usages for the expansion profile and can also describe the approach taken to build the expansion profile.",
              "comments": "The description is not intended to describe the semantics of the expansion profile. 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 expansion profile is a contained resource (e.g. an anonymous expansion profile in a FHIR profile). Most registries will require a description.",
              "requirements": "Human understandability.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem",
              "short": "When the expansion profile imposes code system contraints",
              "definition": "A set of criteria that provide the constraints imposed on the value set expansion by including or excluding codes from specific code systems (or versions).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "include.empty() or exclude.empty()"
                    }
                  ],
                  "key": "exp-1",
                  "severity": "error",
                  "human": "SHALL NOT have include and exclude",
                  "xpath": "not(exists(f:include)) or not(exists(f:exclude))"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.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 element. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.include",
              "short": "Code systems to be included",
              "definition": "Code systems to be included in value set expansions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.include.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.include.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.include.codeSystem",
              "short": "The code systems to be included",
              "definition": "A data group for each code system to be included.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.include.codeSystem.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.include.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 element. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.include.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.include.codeSystem.system",
              "short": "The specific code system to be included",
              "definition": "An absolute URI which is the code system to be included.",
              "comments": "See ''Coding.system'' for further documentation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.include.codeSystem.version",
              "short": "Specific version of the code system referred to",
              "definition": "The version of the code system from which codes in the expansion should be included.",
              "comments": "This is used to apply version specifc inclusion contraints. If no version is specified, then all codes from the code system present in the expansion (prior to application of the expansion profile) will be retained.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude",
              "short": "Code systems to be excluded",
              "definition": "Code systems to be excluded from value set expansions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude.codeSystem",
              "short": "The code systems to be excluded",
              "definition": "A data group for each code system to be excluded.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude.codeSystem.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude.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 element. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude.codeSystem.system",
              "short": "The specific code system to be excluded",
              "definition": "An absolute URI which is the code system to be excluded.",
              "comments": "See ''Coding.system'' for further documentation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude.codeSystem.version",
              "short": "Specific version of the code system referred to",
              "definition": "The version of the code system from which codes in the expansion should be excluded.",
              "comments": "This is used to apply version specifc exclusion contraints. If no version is specified, then all codes from the code system present in the expansion (prior to application of the expansion profile) will be excluded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.includeDesignations",
              "short": "Whether the expansion should include concept designations",
              "definition": "Controls whether concept designations are to be included or excluded in value set expansions.",
              "comments": "ExpansionProfile.designation.include and ExpansionProfile.designation.exclude are only evaluated if includeDesignations is present and set to \"true\". If includeDesignations is present with a value of \"true\" and both ExpansionProfile.designation.include and ExpansionProfile.designation.exclude are absent, then all designations are returned in the expansion.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.designation",
              "short": "When the expansion profile imposes designation contraints",
              "definition": "A set of criteria that provide the constraints imposed on the value set expansion by including or excluding designations.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "include.empty() or exclude.empty()"
                    }
                  ],
                  "key": "exp-2",
                  "severity": "error",
                  "human": "SHALL NOT have include and exclude",
                  "xpath": "not(exists(f:include)) or not(exists(f:exclude))"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.designation.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.include",
              "short": "Designations to be included",
              "definition": "Designations to be included.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.designation.include.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.include.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.include.designation",
              "short": "The designation to be included",
              "definition": "A data group for each designation to be included.",
              "comments": "At least one of designation.language or designation.use must be provided for each include.designation element.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "language.empty().not() or use.empty().not()"
                    }
                  ],
                  "key": "exp-3",
                  "severity": "error",
                  "human": "SHALL have at least one of language or use",
                  "xpath": "exists(f:language) or exists(f:use)"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.designation.include.designation.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.include.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.include.designation.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.include.designation.language",
              "short": "Human language of the designation to be included",
              "definition": "The language this designation is defined for.",
              "comments": "In the absence of a language, all designations are retained which match the designation.use parameter for this include.designation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ExpansionProfile.designation.include.designation.use",
              "short": "Designation use",
              "definition": "Designation uses for inclusion in the expansion.",
              "comments": "In the absence of a use, all designations are retained which match the designation.language parameter for this include.designation element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Details of how a designation would be used.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/designation-use"
                }
              }
            },
            {
              "path": "ExpansionProfile.designation.exclude",
              "short": "Designations to be excluded",
              "definition": "Designations to be excluded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.designation.exclude.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.exclude.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.exclude.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.exclude.designation",
              "short": "The designation to be excluded",
              "definition": "A data group for each designation to be excluded.",
              "comments": "At least one of designation.language or designation.use must be provided for each exclude.designation element.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "language.empty().not() or use.empty().not()"
                    }
                  ],
                  "key": "exp-4",
                  "severity": "error",
                  "human": "SHALL have at least one of language or use",
                  "xpath": "exists(f:language) or exists(f:use)"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.designation.exclude.designation.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.exclude.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.exclude.designation.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExpansionProfile.designation.exclude.designation.language",
              "short": "Human language of the designation to be excluded",
              "definition": "The language this designation is defined for.",
              "comments": "In the absence of a language, all designations are excluded which match the designation.use parameter for this exclude.designation element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ExpansionProfile.designation.exclude.designation.use",
              "short": "Designation use",
              "definition": "Designation uses for exclusion in the expansion.",
              "comments": "In the absence of a use, all designations are retained which match the designation.language parameter for this exclude.designation element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Details of how a designation would be used.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/designation-use"
                }
              }
            },
            {
              "path": "ExpansionProfile.includeDefinition",
              "short": "Include or exclude the value set definition in the expansion",
              "definition": "Controls whether the value set definition is included or excluded in value set expansions.",
              "comments": "The ValueSet defintion refers to all fields in the ValueSet definition apart from  ValueSet.contains. The definition is only included if includeDefinition is present and has a value of \"true\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.includeInactive",
              "short": "Include or exclude inactive concepts in the expansion",
              "definition": "Controls whether inactive concepts are included or excluded in value set expansions.",
              "comments": "Inactive codes are included if includeInactive is present and has a value of \"true\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.excludeNested",
              "short": "Include or exclude nested codes in the value set expansion",
              "definition": "Controls whether or not the value set expansion includes nested codes (i.e. ValueSet.expansion.contains.contains).",
              "comments": "Nested codes excluded if excludeNested is present and has a value of \"true\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.excludeNotForUI",
              "short": "Include or exclude codes which cannot be rendered in user interfaces in the value set expansion",
              "definition": "Controls whether or not the value set expansion includes codes which cannot be displayed in user interfaces.",
              "comments": "Codes which cannot be used in user interfaces will be excluded if excludeNotForUI is present and has a value of \"true\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.excludePostCoordinated",
              "short": "Include or exclude codes which are post coordinated expressions in the value set expansion",
              "definition": "Controls whether or not the value set expansion includes post coordinated codes.",
              "comments": "Post coordinated codes are excluded if excludePostCoordinated is present and has a value of \"true\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.displayLanguage",
              "short": "Specify the language for the display element of codes in the value set expansion",
              "definition": "Specifies the language to be used for description in the expansions i.e. the language to be used for ValueSet.expansion.contains.display.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ExpansionProfile.limitedExpansion",
              "short": "Controls behaviour of the value set expand operation when value sets are too large to be completely expanded",
              "definition": "If the value set being expanded is incomplete (because it is too big to expand), return a limited expansion (a subset) with an indicator that expansion is incomplete.",
              "comments": "This field overides the default behaviour (which is to return an error). This does not apply to expansions which are unbounded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ExpansionProfile",
              "short": "Defines behaviour and contraints on the ValueSet Expansion operation",
              "definition": "Resource to define constraints on the Expansion of a FHIR ValueSet.",
              "alias": [
                "ValueSetExpansionProfile"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "conformance.terminology"
                }
              ]
            },
            {
              "path": "ExpansionProfile.url",
              "short": "Globally unique logical identifier for  expansion profile",
              "definition": "An absolute URL that is used to identify this expansion profile when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this expansion profile is (or will be) published.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ExpansionProfile.identifier",
              "short": "Additional identifier for the expansion profile (e.g. an Object Identifier)",
              "definition": "Formal identifier that is used to identify this expansion profile when it is represented in other formats, or referenced in a specification, model, design or an instance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.version",
              "short": "Logical identifier for this version of the expansion profile",
              "definition": "Used to identify this version of the expansion profile when it is referenced in a specification, model, design or instance.",
              "comments": "There may be multiple resource versions of the expansion profile that have the same identifier.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.name",
              "short": "Informal name for this expansion profile",
              "definition": "A free text natural language name for the expansion profile.",
              "comments": "The name is not expected to be unique. A name should be provided unless the expansion profile is a contained resource (e.g. an anonymous expansion profile in a FHIR profile). Most registries will require a name.",
              "requirements": "Support human navigation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.status",
              "short": "draft | active | retired",
              "definition": "The status of the expansion profile.",
              "comments": "Allows filtering of expansion instances that are appropriate (or not) for use.",
              "requirements": "Identify when/if the expansion profile should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ExpansionProfile.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This expansion profile was authored for testing purposes (or education/evaluation/marketing), and is not intended for genuine production usage.",
              "comments": "Allows filtering of expansion instances that are appropriate (or not) for use.",
              "requirements": "This expansion profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.publisher",
              "short": "Name of the publisher (organization or individual)",
              "definition": "The name of the individual or organization that published the expansion profile.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the expansion profile.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.contact.name",
              "short": "Name of an individual to contact",
              "definition": "The name of an individual to contact regarding the expansion profile.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.date",
              "short": "Date for given status",
              "definition": "The date that the expansion profile status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes.",
              "comments": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the expansion profile. Additional specific dates may be added as extensions.",
              "requirements": "Need to know when an expansion profile was first legal for use or became withdrawn or replaced.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.description",
              "short": "Human language description of the expansion profile",
              "definition": "A free text natural language description of the use of the expansion profile - reason for definition,  conditions of use, etc. The description may include a list of expected usages for the expansion profile and can also describe the approach taken to build the expansion profile.",
              "comments": "The description is not intended to describe the semantics of the expansion profile. 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 expansion profile is a contained resource (e.g. an anonymous expansion profile in a FHIR profile). Most registries will require a description.",
              "requirements": "Human understandability.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem",
              "short": "When the expansion profile imposes code system contraints",
              "definition": "A set of criteria that provide the constraints imposed on the value set expansion by including or excluding codes from specific code systems (or versions).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "include.empty() or exclude.empty()"
                    }
                  ],
                  "key": "exp-1",
                  "severity": "error",
                  "human": "SHALL NOT have include and exclude",
                  "xpath": "not(exists(f:include)) or not(exists(f:exclude))"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.include",
              "short": "Code systems to be included",
              "definition": "Code systems to be included in value set expansions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.include.codeSystem",
              "short": "The code systems to be included",
              "definition": "A data group for each code system to be included.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.include.codeSystem.system",
              "short": "The specific code system to be included",
              "definition": "An absolute URI which is the code system to be included.",
              "comments": "See ''Coding.system'' for further documentation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.include.codeSystem.version",
              "short": "Specific version of the code system referred to",
              "definition": "The version of the code system from which codes in the expansion should be included.",
              "comments": "This is used to apply version specifc inclusion contraints. If no version is specified, then all codes from the code system present in the expansion (prior to application of the expansion profile) will be retained.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude",
              "short": "Code systems to be excluded",
              "definition": "Code systems to be excluded from value set expansions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude.codeSystem",
              "short": "The code systems to be excluded",
              "definition": "A data group for each code system to be excluded.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude.codeSystem.system",
              "short": "The specific code system to be excluded",
              "definition": "An absolute URI which is the code system to be excluded.",
              "comments": "See ''Coding.system'' for further documentation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.codeSystem.exclude.codeSystem.version",
              "short": "Specific version of the code system referred to",
              "definition": "The version of the code system from which codes in the expansion should be excluded.",
              "comments": "This is used to apply version specifc exclusion contraints. If no version is specified, then all codes from the code system present in the expansion (prior to application of the expansion profile) will be excluded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.includeDesignations",
              "short": "Whether the expansion should include concept designations",
              "definition": "Controls whether concept designations are to be included or excluded in value set expansions.",
              "comments": "ExpansionProfile.designation.include and ExpansionProfile.designation.exclude are only evaluated if includeDesignations is present and set to \"true\". If includeDesignations is present with a value of \"true\" and both ExpansionProfile.designation.include and ExpansionProfile.designation.exclude are absent, then all designations are returned in the expansion.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.designation",
              "short": "When the expansion profile imposes designation contraints",
              "definition": "A set of criteria that provide the constraints imposed on the value set expansion by including or excluding designations.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "include.empty() or exclude.empty()"
                    }
                  ],
                  "key": "exp-2",
                  "severity": "error",
                  "human": "SHALL NOT have include and exclude",
                  "xpath": "not(exists(f:include)) or not(exists(f:exclude))"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.designation.include",
              "short": "Designations to be included",
              "definition": "Designations to be included.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.designation.include.designation",
              "short": "The designation to be included",
              "definition": "A data group for each designation to be included.",
              "comments": "At least one of designation.language or designation.use must be provided for each include.designation element.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "language.empty().not() or use.empty().not()"
                    }
                  ],
                  "key": "exp-3",
                  "severity": "error",
                  "human": "SHALL have at least one of language or use",
                  "xpath": "exists(f:language) or exists(f:use)"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.designation.include.designation.language",
              "short": "Human language of the designation to be included",
              "definition": "The language this designation is defined for.",
              "comments": "In the absence of a language, all designations are retained which match the designation.use parameter for this include.designation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ExpansionProfile.designation.include.designation.use",
              "short": "Designation use",
              "definition": "Designation uses for inclusion in the expansion.",
              "comments": "In the absence of a use, all designations are retained which match the designation.language parameter for this include.designation element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Details of how a designation would be used.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/designation-use"
                }
              }
            },
            {
              "path": "ExpansionProfile.designation.exclude",
              "short": "Designations to be excluded",
              "definition": "Designations to be excluded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.designation.exclude.designation",
              "short": "The designation to be excluded",
              "definition": "A data group for each designation to be excluded.",
              "comments": "At least one of designation.language or designation.use must be provided for each exclude.designation element.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "language.empty().not() or use.empty().not()"
                    }
                  ],
                  "key": "exp-4",
                  "severity": "error",
                  "human": "SHALL have at least one of language or use",
                  "xpath": "exists(f:language) or exists(f:use)"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.designation.exclude.designation.language",
              "short": "Human language of the designation to be excluded",
              "definition": "The language this designation is defined for.",
              "comments": "In the absence of a language, all designations are excluded which match the designation.use parameter for this exclude.designation element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ExpansionProfile.designation.exclude.designation.use",
              "short": "Designation use",
              "definition": "Designation uses for exclusion in the expansion.",
              "comments": "In the absence of a use, all designations are retained which match the designation.language parameter for this exclude.designation element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Details of how a designation would be used.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/designation-use"
                }
              }
            },
            {
              "path": "ExpansionProfile.includeDefinition",
              "short": "Include or exclude the value set definition in the expansion",
              "definition": "Controls whether the value set definition is included or excluded in value set expansions.",
              "comments": "The ValueSet defintion refers to all fields in the ValueSet definition apart from  ValueSet.contains. The definition is only included if includeDefinition is present and has a value of \"true\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.includeInactive",
              "short": "Include or exclude inactive concepts in the expansion",
              "definition": "Controls whether inactive concepts are included or excluded in value set expansions.",
              "comments": "Inactive codes are included if includeInactive is present and has a value of \"true\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.excludeNested",
              "short": "Include or exclude nested codes in the value set expansion",
              "definition": "Controls whether or not the value set expansion includes nested codes (i.e. ValueSet.expansion.contains.contains).",
              "comments": "Nested codes excluded if excludeNested is present and has a value of \"true\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.excludeNotForUI",
              "short": "Include or exclude codes which cannot be rendered in user interfaces in the value set expansion",
              "definition": "Controls whether or not the value set expansion includes codes which cannot be displayed in user interfaces.",
              "comments": "Codes which cannot be used in user interfaces will be excluded if excludeNotForUI is present and has a value of \"true\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.excludePostCoordinated",
              "short": "Include or exclude codes which are post coordinated expressions in the value set expansion",
              "definition": "Controls whether or not the value set expansion includes post coordinated codes.",
              "comments": "Post coordinated codes are excluded if excludePostCoordinated is present and has a value of \"true\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExpansionProfile.displayLanguage",
              "short": "Specify the language for the display element of codes in the value set expansion",
              "definition": "Specifies the language to be used for description in the expansions i.e. the language to be used for ValueSet.expansion.contains.display.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ExpansionProfile.limitedExpansion",
              "short": "Controls behaviour of the value set expand operation when value sets are too large to be completely expanded",
              "definition": "If the value set being expanded is incomplete (because it is too big to expand), return a limited expansion (a subset) with an indicator that expansion is incomplete.",
              "comments": "This field overides the default behaviour (which is to return an error). This does not apply to expansions which are unbounded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ExplanationOfBenefit",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit",
        "name": "ExplanationOfBenefit",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ExplanationOfBenefit Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "cdanetv4",
            "uri": "http://www.cda-adc.ca/en/services/cdanet/",
            "name": "Canadian Dental Association eclaims standard"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ExplanationOfBenefit",
              "short": "Explanation of Benefit resource",
              "definition": "This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided.",
              "alias": [
                "EOB"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.other"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ExplanationOfBenefit.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.identifier",
              "short": "Business Identifier",
              "definition": "The Response Business Identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.claim",
              "short": "Claim reference",
              "definition": "The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Claim"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.claimResponse",
              "short": "Claim response reference",
              "definition": "The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.ruleset",
              "short": "Current specification followed",
              "definition": "The version of the specification on which this instance relies.",
              "alias": [
                "BusinessVersion"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.originalRuleset",
              "short": "Original specification followed",
              "definition": "The version of the specification from which the original instance was created.",
              "alias": [
                "OriginalBusinessVersion"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.created",
              "short": "Creation date",
              "definition": "The date when the EOB was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.billablePeriod",
              "short": "Period for charge submission",
              "definition": "The billable period for which charges are being submitted.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.disposition",
              "short": "Disposition Message",
              "definition": "A description of the status of the adjudication.",
              "comments": "Do we need a disposition code?",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.provider",
              "short": "Responsible provider for the claim",
              "definition": "The provider which is responsible for the claim.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B02"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.organization",
              "short": "Responsible organization for the claim",
              "definition": "The provider which is responsible for the claim.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B02"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.facility",
              "short": "Servicing Facility",
              "definition": "Facility where the services were provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.relatedClaim",
              "short": "Related Claims",
              "definition": "Other claims which are related to this claim such as prior claim versions or for related services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Claim"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.prescription",
              "short": "Prescription",
              "definition": "Prescription to support the dispensing of Pharmacy or Vision products.",
              "requirements": "For type=Pharmacy and Vision only.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.originalPrescription",
              "short": "Original Prescription",
              "definition": "Original prescription which has been superceded by this prescription to support the dispensing of pharmacy services, medications or products.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Payee"
                }
              ],
              "path": "ExplanationOfBenefit.payee",
              "short": "Payee",
              "definition": "The party to be reimbursed for the services.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F02"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.payee.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.payee.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.payee.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.payee.type",
              "short": "Party to be paid any benefits payable",
              "definition": "Party to be reimbursed: Subscriber, provider, other.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code for the party to be reimbursed.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payeetype"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.payee.provider",
              "short": "Provider who is the payee",
              "definition": "The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B03"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.payee.organization",
              "short": "Organization who is the payee",
              "definition": "The organization who is to be reimbursed for the claim (the party to whom any benefit is assigned).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B04"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.payee.person",
              "short": "Other person who is the payee",
              "definition": "The person other than the subscriber who is to be reimbursed for the claim (the party to whom any benefit is assigned).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.referral",
              "short": "Treatment Referral",
              "definition": "The referral resource which lists the date, practitioner, reason and other supporting information.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B05"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Diagnosis"
                }
              ],
              "path": "ExplanationOfBenefit.diagnosis",
              "short": "Diagnosis",
              "definition": "Ordered list of patient diagnosis for which care is sought.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.diagnosis.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.diagnosis.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.diagnosis.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.diagnosis.sequence",
              "short": "Sequence of diagnosis",
              "definition": "Sequence of diagnosis which serves to order and provide a link.",
              "requirements": "Required to maintain order of the diagnoses.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.diagnosis.diagnosis",
              "short": "Patient's list of diagnosis",
              "definition": "The diagnosis.",
              "requirements": "Required to adjudicate services rendered to condition presented.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "ICD10 Diagnostic codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/icd-10"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.specialCondition",
              "short": "List of special Conditions",
              "definition": "List of special conditions relating to the setting, treatment or patient  for which care is sought which may influence the adjudication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "List of special conditions relating to the setting, treatment or patient  for which care is sought which may influence the adjudication.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/fm-conditions"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.patient",
              "short": "The subject of the Products and Services",
              "definition": "Patient Resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C06,C07,C08, C05, C04"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.precedence",
              "short": "Precedence (primary, secondary, etc.)",
              "definition": "Precedence (primary, secondary, etc.).",
              "requirements": "Health care programs and insurers are significant payors of health service costs.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Coverage"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Coverage"
                }
              ],
              "path": "ExplanationOfBenefit.coverage",
              "short": "Insurance or medical plan",
              "definition": "Financial instrument by which payment information for health care.",
              "requirements": "Health care programs and insurers are significant payors of health service costs.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Coverage"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.coverage.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.coverage.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.coverage.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.coverage.coverage",
              "short": "Insurance information",
              "definition": "Reference to the program or plan identification, underwriter or payor.",
              "requirements": "Need to identify the issuer to target for processing and for coordination of benefit processing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Coverage"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.coverage.relationship",
              "short": "Patient relationship to subscriber",
              "definition": "The relationship of the patient to the subscriber.",
              "requirements": "To determine relationship between the patient and the subscriber.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the relationship of the patient to the subscriber.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/relationship"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C03"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.coverage.preAuthRef",
              "short": "Pre-Authorization/Determination Reference",
              "definition": "A list of references from the Insurer to which these services pertain.",
              "requirements": "To provide any pre=determination or prior authorization reference.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F03"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.exception",
              "short": "Eligibility exceptions",
              "definition": "Factors which may influence the applicability of coverage.",
              "requirements": "To determine extenuating circumstances for coverage.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Factors which may influence the applicability of coverage.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/claim-exception"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C09"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.school",
              "short": "Name of School",
              "definition": "Name of school for over-aged dependants.",
              "requirements": "Often required for over-age dependents.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C10"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.accidentDate",
              "short": "Accident Date",
              "definition": "Date of an accident which these services are addressing.",
              "requirements": "Coverage may be dependant on accidents.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F02"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.accidentType",
              "short": "Accident Type",
              "definition": "Type of accident: work, auto, etc.",
              "requirements": "Coverage may be dependant on the type of accident.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Type of accident: work place, auto, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActIncidentCode"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.accidentLocation[x]",
              "short": "Accident Place",
              "definition": "Accident Place.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                },
                {
                  "code": "Address"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.interventionException",
              "short": "Intervention and exception code (Pharma)",
              "definition": "A list of intervention and exception codes which may influence the adjudication of the claim.",
              "requirements": "Coverage may be modified based on exception information provided.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Intervention and exception codes (Pharm)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/intervention"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.onset[x]",
              "short": "Illness, injury or treatable condition date",
              "definition": "The start or start and end dates for the treatable condition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "CMS15 has some additional qualifiers"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.employmentImpacted",
              "short": "Period unable to work",
              "definition": "The start and optional end dates of when the patient was precluded from working due to the treatable condition(s).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.hospitalization",
              "short": "Period in hospital",
              "definition": "The start and optional end dates of when the patient was confined to a treatment center.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Items"
                }
              ],
              "path": "ExplanationOfBenefit.item",
              "short": "Goods and Services",
              "definition": "First tier of goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.sequence",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F07"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.type",
              "short": "Group or type of product or service",
              "definition": "The type of product or service.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Service, Product, Rx Dispense, Rx Compound etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.provider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "24G&H not sure"
                },
                {
                  "identity": "cdanetv4",
                  "map": "not used"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.diagnosisLinkId",
              "short": "Diagnosis Link",
              "definition": "Diagnosis applicable for this service or product line.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.service",
              "short": "Item Code",
              "definition": "If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F06"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.serviced[x]",
              "short": "Date or dates of Service",
              "definition": "The date or dates when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F09"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.place",
              "short": "Place of service",
              "definition": "Where the service was provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Place where the service is rendered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-place"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.quantity",
              "short": "Count of Products or Services",
              "definition": "The number of repetitions of a service or product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.unitPrice",
              "short": "Fee, charge or cost per point",
              "definition": "If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F12"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.factor",
              "short": "Price scaling factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.points",
              "short": "Difficulty scaling factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.net",
              "short": "Total item cost",
              "definition": "The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.udi",
              "short": "Unique Device Identifier",
              "definition": "List of Unique Device Identifiers associated with this line item.",
              "requirements": "The UDI code and issuer if applicable for the supplied product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The GUDID (FDA), or other, UDI repository.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/udi"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.bodySite",
              "short": "Service Location",
              "definition": "Physical service site on the patient (limb, tooth, etc).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the teeth, quadrant, sextant and arch",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/tooth"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F10"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.subSite",
              "short": "Service Sub-location",
              "definition": "A region or surface of the site, eg. limb region or tooth surface(s).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the tooth surface and surface combinations",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/surface"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F11"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.modifier",
              "short": "Service/Product billing modifiers",
              "definition": "Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/claim-modifiers"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F16 (required field for Oral) and F05"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.noteNumber",
              "short": "List of note numbers which apply",
              "definition": "A list of note references to the notes provided below.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ItemAdjudication"
                }
              ],
              "path": "ExplanationOfBenefit.item.adjudication",
              "short": "Adjudication details",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.adjudication.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.adjudication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.adjudication.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.adjudication.category",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.adjudication.reason",
              "short": "Adjudication reason",
              "definition": "Adjudication reason such as limit reached.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Adjudication reason codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication-reason"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monitory amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.adjudication.value",
              "short": "Non-monitory value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Detail"
                }
              ],
              "path": "ExplanationOfBenefit.item.detail",
              "short": "Additional items",
              "definition": "Second tier of goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.sequence",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F07"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.type",
              "short": "Group or type of product or service",
              "definition": "The type of product or service.",
              "comments": "ItemType.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Service, Product, Rx Dispense, Rx Compound etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.detail.service",
              "short": "Additional item codes",
              "definition": "If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F34/F35"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.quantity",
              "short": "Count of Products or Services",
              "definition": "The number of repetitions of a service or product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.unitPrice",
              "short": "Fee, charge or cost per point",
              "definition": "If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.factor",
              "short": "Price scaling factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.points",
              "short": "Difficulty scaling factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.net",
              "short": "Total additional item cost",
              "definition": "The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.udi",
              "short": "Unique Device Identifier",
              "definition": "List of Unique Device Identifiers associated with this line item.",
              "requirements": "The UDI code and issuer if applicable for the supplied product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The GUDID (FDA), or other, UDI repository.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/udi"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "DetailAdjudication"
                }
              ],
              "path": "ExplanationOfBenefit.item.detail.adjudication",
              "short": "Detail adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.adjudication.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.adjudication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.adjudication.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.detail.adjudication.reason",
              "short": "Adjudication reason",
              "definition": "Adjudication reason such as limit reached.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Adjudication reason codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication-reason"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.detail.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monitory amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.adjudication.value",
              "short": "Non-monitory value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SubDetail"
                }
              ],
              "path": "ExplanationOfBenefit.item.detail.subDetail",
              "short": "Additional items",
              "definition": "Third tier of goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.sequence",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F07"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.type",
              "short": "Type of product or service",
              "definition": "The type of product or service.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Service, Product, Rx Dispense, Rx Compound etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.service",
              "short": "Additional item codes",
              "definition": "The fee for an addittional service or product or charge.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F34/F35"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.quantity",
              "short": "Count of Products or Services",
              "definition": "The number of repetitions of a service or product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.unitPrice",
              "short": "Fee, charge or cost per point",
              "definition": "The fee for an addittional service or product or charge.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.factor",
              "short": "Price scaling factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.points",
              "short": "Difficulty scaling factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.net",
              "short": "Net additional item cost",
              "definition": "The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.udi",
              "short": "Unique Device Identifier",
              "definition": "List of Unique Device Identifiers associated with this line item.",
              "requirements": "The UDI code and issuer if applicable for the supplied product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The GUDID (FDA), or other, UDI repository.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/udi"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SubDetailAdjudication"
                }
              ],
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication",
              "short": "SubDetail adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication.reason",
              "short": "Adjudication reason",
              "definition": "Adjudication reason such as limit reached.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Adjudication reason codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication-reason"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monitory amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication.value",
              "short": "Non-monitory value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Prosthesis"
                }
              ],
              "path": "ExplanationOfBenefit.item.prosthesis",
              "short": "Prosthetic details",
              "definition": "The materials and placement date of prior fixed prosthesis.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.prosthesis.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.prosthesis.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.prosthesis.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.prosthesis.initial",
              "short": "Is this the initial service",
              "definition": "Indicates whether this is the initial placement of a fixed prosthesis.",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F15/F18 Only for Denture, Crown, Bridge"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.prosthesis.priorDate",
              "short": "Initial service Date",
              "definition": "Date of the initial placement.",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F04/F19"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.prosthesis.priorMaterial",
              "short": "Prosthetic Material",
              "definition": "Material of the prior denture or bridge prosthesis. (Oral).",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Material of the prior denture or bridge prosthesis. (Oral)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/oral-prosthodontic-material"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F20/F21"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItem"
                }
              ],
              "path": "ExplanationOfBenefit.addItem",
              "short": "Insurer added line items",
              "definition": "The first tier service adjudications for payor added services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.addItem.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.addItem.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.addItem.sequenceLinkId",
              "short": "Service instances",
              "definition": "List of input service items which this service line is intended to replace.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.service",
              "short": "Group, Service or Product",
              "definition": "A code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.addItem.fee",
              "short": "Professional fee or Product charge",
              "definition": "The fee charged for the professional service or product..",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.noteNumberLinkId",
              "short": "List of note numbers which apply",
              "definition": "A list of note references to the notes provided below.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItemAdjudication"
                }
              ],
              "path": "ExplanationOfBenefit.addItem.adjudication",
              "short": "Added items adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.adjudication.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.addItem.adjudication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.addItem.adjudication.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.addItem.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.addItem.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monitory amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.adjudication.value",
              "short": "Non-monitory value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItemsDetail"
                }
              ],
              "path": "ExplanationOfBenefit.addItem.detail",
              "short": "Added items details",
              "definition": "The second tier service adjudications for payor added services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.addItem.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.service",
              "short": "Service or Product",
              "definition": "A code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.fee",
              "short": "Professional fee or Product charge",
              "definition": "The fee charged for the professional service or product..",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItemDetailAdjudication"
                }
              ],
              "path": "ExplanationOfBenefit.addItem.detail.adjudication",
              "short": "Added items detail adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.adjudication.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.adjudication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.adjudication.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monitory amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.adjudication.value",
              "short": "Non-monitory value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.claimTotal",
              "short": "Total claim cost",
              "definition": "The total value of the claim.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "MissingTeeth"
                }
              ],
              "path": "ExplanationOfBenefit.missingTeeth",
              "short": "Only if type = oral",
              "definition": "A list of teeth which would be expected but are not found due to having been previously  extracted or for other reasons.",
              "requirements": "The list of missing teeth may influence the adjudication of services for example with Bridges.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.missingTeeth.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.missingTeeth.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.missingTeeth.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.missingTeeth.tooth",
              "short": "Tooth Code",
              "definition": "The code identifying which tooth is missing.",
              "requirements": "Provides the tooth number of the missing tooth.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The codes for the teeth, subset of OralSites",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/teeth"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F23"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.missingTeeth.reason",
              "short": "Reason for missing",
              "definition": "Missing reason may be: E-extraction, O-other.",
              "requirements": "Provides the reason for the missing tooth.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Reason codes for the missing teeth",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/missing-tooth-reason"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "not used"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.missingTeeth.extractionDate",
              "short": "Date of Extraction",
              "definition": "The date of the extraction either known from records or patient reported estimate.",
              "requirements": "Some services and adjudications require this information.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F24"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.unallocDeductable",
              "short": "Unallocated deductable",
              "definition": "The amount of deductable applied which was not allocated to any particular service line.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.totalBenefit",
              "short": "Total benefit payable for the Claim",
              "definition": "Total amount of benefit payable (Equal to sum of the Benefit amounts from all detail lines and additions less the Unallocated Deductable).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.paymentAdjustment",
              "short": "Payment adjustment for non-Claim issues",
              "definition": "Adjustment to the payment of this transaction which is not related to adjudication of this transaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.paymentAdjustmentReason",
              "short": "Reason for Payment adjustment",
              "definition": "Reason for the payment adjustment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Payment Adjustment reason codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payment-adjustment-reason"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.paymentDate",
              "short": "Expected data of Payment",
              "definition": "Estimated payment data.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.paymentAmount",
              "short": "Payment amount",
              "definition": "Payable less any payment adjustment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.paymentRef",
              "short": "Payment identifier",
              "definition": "Payment identifer.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G01, B.23"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.reserved",
              "short": "Funds reserved status",
              "definition": "Status of funds reservation (For provider, for Patient, None).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "For whom funds are to be reserved: (Patient, Provider, None).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/fundsreserve"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.form",
              "short": "Printed Form Identifier",
              "definition": "The form to be used for printing the content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The forms codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/forms"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G42"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Notes"
                }
              ],
              "path": "ExplanationOfBenefit.note",
              "short": "Processing notes",
              "definition": "Note text.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.note.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.note.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.note.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.note.number",
              "short": "Note Number for this note",
              "definition": "An integer associated with each note which may be referred to from each service line item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.note.type",
              "short": "display | print | printoper",
              "definition": "The note purpose: Print/Display.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The presentation types of notes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/note-type"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.note.text",
              "short": "Note explanitory text",
              "definition": "The note text.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G32"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "BenefitBalance"
                }
              ],
              "path": "ExplanationOfBenefit.benefitBalance",
              "short": "Balance by Benefit Category",
              "definition": "Balance by Benefit Category.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.category",
              "short": "Benefit Category",
              "definition": "Dental, Vision, Medical, Pharmacy, Rehab etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Benefit categories such as: oral, medical, vision etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-category"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.subCategory",
              "short": "Benefit SubCategory",
              "definition": "Dental: basic, major, ortho; Vision exam, glasses, contacts; etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Benefit subcategories such as: oral-basic, major, glasses",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-subcategory"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.network",
              "short": "In or out of network",
              "definition": "Network designation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Code to classify in or out of network services",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-network"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.unit",
              "short": "Individual or family",
              "definition": "Unit designation: individual or family.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Unit covered/serviced - individual or family",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-unit"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.term",
              "short": "Annual or lifetime",
              "definition": "The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual vistis'.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Coverage unit - annual, lifetime",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-term"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Benefit"
                }
              ],
              "path": "ExplanationOfBenefit.benefitBalance.financial",
              "short": "Benefit Summary",
              "definition": "Benefits Used to date.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.financial.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.financial.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.financial.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.financial.type",
              "short": "Deductable, visits, benefit amount",
              "definition": "Deductable, visits, benefit amount.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Deductable, visits, co-pay, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-type"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.financial.benefit[x]",
              "short": "Benefits allowed",
              "definition": "Benefits allowed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.financial.benefitUsed[x]",
              "short": "Benefits used",
              "definition": "Benefits used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ExplanationOfBenefit",
              "short": "Explanation of Benefit resource",
              "definition": "This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided.",
              "alias": [
                "EOB"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.other"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.identifier",
              "short": "Business Identifier",
              "definition": "The Response Business Identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.claim",
              "short": "Claim reference",
              "definition": "The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Claim"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.claimResponse",
              "short": "Claim response reference",
              "definition": "The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.ruleset",
              "short": "Current specification followed",
              "definition": "The version of the specification on which this instance relies.",
              "alias": [
                "BusinessVersion"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.originalRuleset",
              "short": "Original specification followed",
              "definition": "The version of the specification from which the original instance was created.",
              "alias": [
                "OriginalBusinessVersion"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.created",
              "short": "Creation date",
              "definition": "The date when the EOB was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.billablePeriod",
              "short": "Period for charge submission",
              "definition": "The billable period for which charges are being submitted.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.disposition",
              "short": "Disposition Message",
              "definition": "A description of the status of the adjudication.",
              "comments": "Do we need a disposition code?",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.provider",
              "short": "Responsible provider for the claim",
              "definition": "The provider which is responsible for the claim.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B02"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.organization",
              "short": "Responsible organization for the claim",
              "definition": "The provider which is responsible for the claim.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B02"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.facility",
              "short": "Servicing Facility",
              "definition": "Facility where the services were provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.relatedClaim",
              "short": "Related Claims",
              "definition": "Other claims which are related to this claim such as prior claim versions or for related services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Claim"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.prescription",
              "short": "Prescription",
              "definition": "Prescription to support the dispensing of Pharmacy or Vision products.",
              "requirements": "For type=Pharmacy and Vision only.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.originalPrescription",
              "short": "Original Prescription",
              "definition": "Original prescription which has been superceded by this prescription to support the dispensing of pharmacy services, medications or products.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Payee"
                }
              ],
              "path": "ExplanationOfBenefit.payee",
              "short": "Payee",
              "definition": "The party to be reimbursed for the services.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F02"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.payee.type",
              "short": "Party to be paid any benefits payable",
              "definition": "Party to be reimbursed: Subscriber, provider, other.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code for the party to be reimbursed.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payeetype"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.payee.provider",
              "short": "Provider who is the payee",
              "definition": "The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B03"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.payee.organization",
              "short": "Organization who is the payee",
              "definition": "The organization who is to be reimbursed for the claim (the party to whom any benefit is assigned).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B04"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.payee.person",
              "short": "Other person who is the payee",
              "definition": "The person other than the subscriber who is to be reimbursed for the claim (the party to whom any benefit is assigned).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.referral",
              "short": "Treatment Referral",
              "definition": "The referral resource which lists the date, practitioner, reason and other supporting information.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B05"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Diagnosis"
                }
              ],
              "path": "ExplanationOfBenefit.diagnosis",
              "short": "Diagnosis",
              "definition": "Ordered list of patient diagnosis for which care is sought.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.diagnosis.sequence",
              "short": "Sequence of diagnosis",
              "definition": "Sequence of diagnosis which serves to order and provide a link.",
              "requirements": "Required to maintain order of the diagnoses.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.diagnosis.diagnosis",
              "short": "Patient's list of diagnosis",
              "definition": "The diagnosis.",
              "requirements": "Required to adjudicate services rendered to condition presented.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "ICD10 Diagnostic codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/icd-10"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.specialCondition",
              "short": "List of special Conditions",
              "definition": "List of special conditions relating to the setting, treatment or patient  for which care is sought which may influence the adjudication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "List of special conditions relating to the setting, treatment or patient  for which care is sought which may influence the adjudication.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/fm-conditions"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.patient",
              "short": "The subject of the Products and Services",
              "definition": "Patient Resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C06,C07,C08, C05, C04"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.precedence",
              "short": "Precedence (primary, secondary, etc.)",
              "definition": "Precedence (primary, secondary, etc.).",
              "requirements": "Health care programs and insurers are significant payors of health service costs.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Coverage"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Coverage"
                }
              ],
              "path": "ExplanationOfBenefit.coverage",
              "short": "Insurance or medical plan",
              "definition": "Financial instrument by which payment information for health care.",
              "requirements": "Health care programs and insurers are significant payors of health service costs.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Coverage"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.coverage.coverage",
              "short": "Insurance information",
              "definition": "Reference to the program or plan identification, underwriter or payor.",
              "requirements": "Need to identify the issuer to target for processing and for coordination of benefit processing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Coverage"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.coverage.relationship",
              "short": "Patient relationship to subscriber",
              "definition": "The relationship of the patient to the subscriber.",
              "requirements": "To determine relationship between the patient and the subscriber.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the relationship of the patient to the subscriber.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/relationship"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C03"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.coverage.preAuthRef",
              "short": "Pre-Authorization/Determination Reference",
              "definition": "A list of references from the Insurer to which these services pertain.",
              "requirements": "To provide any pre=determination or prior authorization reference.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F03"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.exception",
              "short": "Eligibility exceptions",
              "definition": "Factors which may influence the applicability of coverage.",
              "requirements": "To determine extenuating circumstances for coverage.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Factors which may influence the applicability of coverage.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/claim-exception"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C09"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.school",
              "short": "Name of School",
              "definition": "Name of school for over-aged dependants.",
              "requirements": "Often required for over-age dependents.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "C10"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.accidentDate",
              "short": "Accident Date",
              "definition": "Date of an accident which these services are addressing.",
              "requirements": "Coverage may be dependant on accidents.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F02"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.accidentType",
              "short": "Accident Type",
              "definition": "Type of accident: work, auto, etc.",
              "requirements": "Coverage may be dependant on the type of accident.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Type of accident: work place, auto, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActIncidentCode"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.accidentLocation[x]",
              "short": "Accident Place",
              "definition": "Accident Place.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                },
                {
                  "code": "Address"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.interventionException",
              "short": "Intervention and exception code (Pharma)",
              "definition": "A list of intervention and exception codes which may influence the adjudication of the claim.",
              "requirements": "Coverage may be modified based on exception information provided.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Intervention and exception codes (Pharm)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/intervention"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.onset[x]",
              "short": "Illness, injury or treatable condition date",
              "definition": "The start or start and end dates for the treatable condition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "CMS15 has some additional qualifiers"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.employmentImpacted",
              "short": "Period unable to work",
              "definition": "The start and optional end dates of when the patient was precluded from working due to the treatable condition(s).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.hospitalization",
              "short": "Period in hospital",
              "definition": "The start and optional end dates of when the patient was confined to a treatment center.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Items"
                }
              ],
              "path": "ExplanationOfBenefit.item",
              "short": "Goods and Services",
              "definition": "First tier of goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.sequence",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F07"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.type",
              "short": "Group or type of product or service",
              "definition": "The type of product or service.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Service, Product, Rx Dispense, Rx Compound etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.provider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "24G&H not sure"
                },
                {
                  "identity": "cdanetv4",
                  "map": "not used"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.diagnosisLinkId",
              "short": "Diagnosis Link",
              "definition": "Diagnosis applicable for this service or product line.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.service",
              "short": "Item Code",
              "definition": "If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F06"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.serviced[x]",
              "short": "Date or dates of Service",
              "definition": "The date or dates when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F09"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.place",
              "short": "Place of service",
              "definition": "Where the service was provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Place where the service is rendered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-place"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.quantity",
              "short": "Count of Products or Services",
              "definition": "The number of repetitions of a service or product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.unitPrice",
              "short": "Fee, charge or cost per point",
              "definition": "If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F12"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.factor",
              "short": "Price scaling factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.points",
              "short": "Difficulty scaling factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.net",
              "short": "Total item cost",
              "definition": "The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.udi",
              "short": "Unique Device Identifier",
              "definition": "List of Unique Device Identifiers associated with this line item.",
              "requirements": "The UDI code and issuer if applicable for the supplied product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The GUDID (FDA), or other, UDI repository.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/udi"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.bodySite",
              "short": "Service Location",
              "definition": "Physical service site on the patient (limb, tooth, etc).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the teeth, quadrant, sextant and arch",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/tooth"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F10"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.subSite",
              "short": "Service Sub-location",
              "definition": "A region or surface of the site, eg. limb region or tooth surface(s).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The code for the tooth surface and surface combinations",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/surface"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F11"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.modifier",
              "short": "Service/Product billing modifiers",
              "definition": "Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/claim-modifiers"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F16 (required field for Oral) and F05"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.noteNumber",
              "short": "List of note numbers which apply",
              "definition": "A list of note references to the notes provided below.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ItemAdjudication"
                }
              ],
              "path": "ExplanationOfBenefit.item.adjudication",
              "short": "Adjudication details",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.adjudication.category",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.adjudication.reason",
              "short": "Adjudication reason",
              "definition": "Adjudication reason such as limit reached.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Adjudication reason codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication-reason"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monitory amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.adjudication.value",
              "short": "Non-monitory value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Detail"
                }
              ],
              "path": "ExplanationOfBenefit.item.detail",
              "short": "Additional items",
              "definition": "Second tier of goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.sequence",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F07"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.type",
              "short": "Group or type of product or service",
              "definition": "The type of product or service.",
              "comments": "ItemType.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Service, Product, Rx Dispense, Rx Compound etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.detail.service",
              "short": "Additional item codes",
              "definition": "If a grouping item then 'GROUP' otherwise it is a node therefore a code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F34/F35"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.quantity",
              "short": "Count of Products or Services",
              "definition": "The number of repetitions of a service or product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.unitPrice",
              "short": "Fee, charge or cost per point",
              "definition": "If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.factor",
              "short": "Price scaling factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.points",
              "short": "Difficulty scaling factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.net",
              "short": "Total additional item cost",
              "definition": "The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.udi",
              "short": "Unique Device Identifier",
              "definition": "List of Unique Device Identifiers associated with this line item.",
              "requirements": "The UDI code and issuer if applicable for the supplied product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The GUDID (FDA), or other, UDI repository.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/udi"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "DetailAdjudication"
                }
              ],
              "path": "ExplanationOfBenefit.item.detail.adjudication",
              "short": "Detail adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.detail.adjudication.reason",
              "short": "Adjudication reason",
              "definition": "Adjudication reason such as limit reached.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Adjudication reason codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication-reason"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.detail.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monitory amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.adjudication.value",
              "short": "Non-monitory value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SubDetail"
                }
              ],
              "path": "ExplanationOfBenefit.item.detail.subDetail",
              "short": "Additional items",
              "definition": "Third tier of goods and services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.sequence",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F07"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.type",
              "short": "Type of product or service",
              "definition": "The type of product or service.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Service, Product, Rx Dispense, Rx Compound etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.service",
              "short": "Additional item codes",
              "definition": "The fee for an addittional service or product or charge.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F34/F35"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.quantity",
              "short": "Count of Products or Services",
              "definition": "The number of repetitions of a service or product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.unitPrice",
              "short": "Fee, charge or cost per point",
              "definition": "The fee for an addittional service or product or charge.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.factor",
              "short": "Price scaling factor",
              "definition": "A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.points",
              "short": "Difficulty scaling factor",
              "definition": "An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.net",
              "short": "Net additional item cost",
              "definition": "The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.",
              "requirements": "If a fee is present the associated product/service code must be present.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F13/F14"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.udi",
              "short": "Unique Device Identifier",
              "definition": "List of Unique Device Identifiers associated with this line item.",
              "requirements": "The UDI code and issuer if applicable for the supplied product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The GUDID (FDA), or other, UDI repository.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/udi"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "SubDetailAdjudication"
                }
              ],
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication",
              "short": "SubDetail adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication.reason",
              "short": "Adjudication reason",
              "definition": "Adjudication reason such as limit reached.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Adjudication reason codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication-reason"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monitory amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication.value",
              "short": "Non-monitory value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Prosthesis"
                }
              ],
              "path": "ExplanationOfBenefit.item.prosthesis",
              "short": "Prosthetic details",
              "definition": "The materials and placement date of prior fixed prosthesis.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.item.prosthesis.initial",
              "short": "Is this the initial service",
              "definition": "Indicates whether this is the initial placement of a fixed prosthesis.",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F15/F18 Only for Denture, Crown, Bridge"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.prosthesis.priorDate",
              "short": "Initial service Date",
              "definition": "Date of the initial placement.",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F04/F19"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.item.prosthesis.priorMaterial",
              "short": "Prosthetic Material",
              "definition": "Material of the prior denture or bridge prosthesis. (Oral).",
              "requirements": "May impact on adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Material of the prior denture or bridge prosthesis. (Oral)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/oral-prosthodontic-material"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F20/F21"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItem"
                }
              ],
              "path": "ExplanationOfBenefit.addItem",
              "short": "Insurer added line items",
              "definition": "The first tier service adjudications for payor added services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.sequenceLinkId",
              "short": "Service instances",
              "definition": "List of input service items which this service line is intended to replace.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.service",
              "short": "Group, Service or Product",
              "definition": "A code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.addItem.fee",
              "short": "Professional fee or Product charge",
              "definition": "The fee charged for the professional service or product..",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.noteNumberLinkId",
              "short": "List of note numbers which apply",
              "definition": "A list of note references to the notes provided below.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItemAdjudication"
                }
              ],
              "path": "ExplanationOfBenefit.addItem.adjudication",
              "short": "Added items adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.addItem.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monitory amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.adjudication.value",
              "short": "Non-monitory value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItemsDetail"
                }
              ],
              "path": "ExplanationOfBenefit.addItem.detail",
              "short": "Added items details",
              "definition": "The second tier service adjudications for payor added services.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.service",
              "short": "Service or Product",
              "definition": "A code to indicate the Professional Service or Product supplied.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Allowable service and product codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-uscls"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.fee",
              "short": "Professional fee or Product charge",
              "definition": "The fee charged for the professional service or product..",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "AddedItemDetailAdjudication"
                }
              ],
              "path": "ExplanationOfBenefit.addItem.detail.adjudication",
              "short": "Added items detail adjudication",
              "definition": "The adjudications results.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.adjudication.code",
              "short": "Adjudication category such as co-pay, eligible, benefit, etc.",
              "definition": "Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The adjudication codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.adjudication.amount",
              "short": "Monetary amount",
              "definition": "Monitory amount associated with the code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.addItem.detail.adjudication.value",
              "short": "Non-monitory value",
              "definition": "A non-monetary value for example a percentage. Mutually exclusive to the amount element above.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.claimTotal",
              "short": "Total claim cost",
              "definition": "The total value of the claim.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "MissingTeeth"
                }
              ],
              "path": "ExplanationOfBenefit.missingTeeth",
              "short": "Only if type = oral",
              "definition": "A list of teeth which would be expected but are not found due to having been previously  extracted or for other reasons.",
              "requirements": "The list of missing teeth may influence the adjudication of services for example with Bridges.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.missingTeeth.tooth",
              "short": "Tooth Code",
              "definition": "The code identifying which tooth is missing.",
              "requirements": "Provides the tooth number of the missing tooth.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The codes for the teeth, subset of OralSites",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/teeth"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F23"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.missingTeeth.reason",
              "short": "Reason for missing",
              "definition": "Missing reason may be: E-extraction, O-other.",
              "requirements": "Provides the reason for the missing tooth.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Reason codes for the missing teeth",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/missing-tooth-reason"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "not used"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.missingTeeth.extractionDate",
              "short": "Date of Extraction",
              "definition": "The date of the extraction either known from records or patient reported estimate.",
              "requirements": "Some services and adjudications require this information.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "F24"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.unallocDeductable",
              "short": "Unallocated deductable",
              "definition": "The amount of deductable applied which was not allocated to any particular service line.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.totalBenefit",
              "short": "Total benefit payable for the Claim",
              "definition": "Total amount of benefit payable (Equal to sum of the Benefit amounts from all detail lines and additions less the Unallocated Deductable).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.paymentAdjustment",
              "short": "Payment adjustment for non-Claim issues",
              "definition": "Adjustment to the payment of this transaction which is not related to adjudication of this transaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.paymentAdjustmentReason",
              "short": "Reason for Payment adjustment",
              "definition": "Reason for the payment adjustment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Payment Adjustment reason codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payment-adjustment-reason"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.paymentDate",
              "short": "Expected data of Payment",
              "definition": "Estimated payment data.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.paymentAmount",
              "short": "Payment amount",
              "definition": "Payable less any payment adjustment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.paymentRef",
              "short": "Payment identifier",
              "definition": "Payment identifer.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G01, B.23"
                }
              ]
            },
            {
              "path": "ExplanationOfBenefit.reserved",
              "short": "Funds reserved status",
              "definition": "Status of funds reservation (For provider, for Patient, None).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "For whom funds are to be reserved: (Patient, Provider, None).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/fundsreserve"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.form",
              "short": "Printed Form Identifier",
              "definition": "The form to be used for printing the content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The forms codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/forms"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G42"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Notes"
                }
              ],
              "path": "ExplanationOfBenefit.note",
              "short": "Processing notes",
              "definition": "Note text.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.note.number",
              "short": "Note Number for this note",
              "definition": "An integer associated with each note which may be referred to from each service line item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.note.type",
              "short": "display | print | printoper",
              "definition": "The note purpose: Print/Display.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The presentation types of notes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/note-type"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.note.text",
              "short": "Note explanitory text",
              "definition": "The note text.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G32"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "BenefitBalance"
                }
              ],
              "path": "ExplanationOfBenefit.benefitBalance",
              "short": "Balance by Benefit Category",
              "definition": "Balance by Benefit Category.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.category",
              "short": "Benefit Category",
              "definition": "Dental, Vision, Medical, Pharmacy, Rehab etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Benefit categories such as: oral, medical, vision etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-category"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.subCategory",
              "short": "Benefit SubCategory",
              "definition": "Dental: basic, major, ortho; Vision exam, glasses, contacts; etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Benefit subcategories such as: oral-basic, major, glasses",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-subcategory"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.network",
              "short": "In or out of network",
              "definition": "Network designation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Code to classify in or out of network services",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-network"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.unit",
              "short": "Individual or family",
              "definition": "Unit designation: individual or family.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Unit covered/serviced - individual or family",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-unit"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.term",
              "short": "Annual or lifetime",
              "definition": "The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual vistis'.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Coverage unit - annual, lifetime",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-term"
                }
              }
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Benefit"
                }
              ],
              "path": "ExplanationOfBenefit.benefitBalance.financial",
              "short": "Benefit Summary",
              "definition": "Benefits Used to date.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.financial.type",
              "short": "Deductable, visits, benefit amount",
              "definition": "Deductable, visits, benefit amount.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Deductable, visits, co-pay, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/benefit-type"
                }
              }
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.financial.benefit[x]",
              "short": "Benefits allowed",
              "definition": "Benefits allowed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ExplanationOfBenefit.benefitBalance.financial.benefitUsed[x]",
              "short": "Benefits used",
              "definition": "Benefits used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "FamilyMemberHistory",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory",
        "name": "FamilyMemberHistory",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for FamilyMemberHistory Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "FamilyMemberHistory",
              "short": "Information about patient's relatives, relevant for patient",
              "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": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "age[x].empty() or born[x].empty()"
                    }
                  ],
                  "key": "fhs-1",
                  "severity": "error",
                  "human": "Can have age[x] or born[x], but not both",
                  "xpath": "not (*[starts-with(local-name(.), 'age')] and *[starts-with(local-name(.), 'birth')])"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Not in scope for v2"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "FamilyMemberHistory.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "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 may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.identifier",
              "short": "External Id(s) for this record",
              "definition": "This records identifiers associated with this family member history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "requirements": "Need to allow connection to a wider workflow.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.patient",
              "short": "Patient history is about",
              "definition": "The person who this history concerns.",
              "alias": [
                "Proband"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.date",
              "short": "When history was captured/updated",
              "definition": "The date (and possibly time) when the family member history was taken.",
              "comments": "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",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.status",
              "short": "partial | completed | entered-in-error | health-unknown",
              "definition": "A code specifying a state of a Family Member History record.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A code that identifies the status of the family history record.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/history-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "name"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The nature of the relationship between the patient and the related person being described in the family member history.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-FamilyMember"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "code"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.gender",
              "short": "male | female | other | unknown",
              "definition": "Administrative Gender - the gender that the relative is considered to have for administration and record keeping purposes.",
              "requirements": "Not all relationship codes imply gender and the relative's gender can be relevant for risk assessments.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The gender of a person used for administrative purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/administrative-gender"
                }
              }
            },
            {
              "path": "FamilyMemberHistory.born[x]",
              "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",
              "type": [
                {
                  "code": "Period"
                },
                {
                  "code": "date"
                },
                {
                  "code": "string"
                }
              ],
              "condition": [
                "fhs-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "player[classCode=LIV, determinerCode=INSTANCE]. birthDate (could be URG)"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.age[x]",
              "short": "(approximate) age",
              "definition": "The actual or approximate age of the relative at the time the family member history is recorded.",
              "requirements": "While age can be calculated from date of birth, sometimes recording age directly is more natureal for clinicians.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Age"
                  ]
                },
                {
                  "code": "Range"
                },
                {
                  "code": "string"
                }
              ],
              "condition": [
                "fhs-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "participation[typeCode=SBJ].act[classCode=OBS,moodCode=EVN, code=\"age\"].value"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.deceased[x]",
              "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",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Age"
                  ]
                },
                {
                  "code": "Range"
                },
                {
                  "code": "date"
                },
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "player[classCode=LIV, determinerCode=INSTANCE].deceasedInd, deceasedDate (could be URG)  For age, you'd hang an observation off the role"
                }
              ]
            },
            {
              "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": "1",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ANNGEN].value"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.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.",
              "comments": "If none of the conditions listed have an outcome of \"death\" specified, that indicates that none of the specified conditions are known to have been the primary cause of death.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ASSERTION, value<Diagnosis]"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.condition.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.condition.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Identification of the Condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".value"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.condition.outcome",
              "short": "deceased | permanent disability | etc.",
              "definition": "Indicates what happened as a result of this condition.  If the condition resulted in death, deceased date is captured on the relation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The result of the condition for the patient; e.g. death, permanent disability, temporary disability, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-outcome"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=OUTC)].target[classCode=OBS, moodCode=EVN, code=ActCode#ASSERTION].value"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Age"
                  ]
                },
                {
                  "code": "Range"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "string"
                }
              ],
              "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"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ANNGEN].value"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "FamilyMemberHistory",
              "short": "Information about patient's relatives, relevant for patient",
              "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": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "age[x].empty() or born[x].empty()"
                    }
                  ],
                  "key": "fhs-1",
                  "severity": "error",
                  "human": "Can have age[x] or born[x], but not both",
                  "xpath": "not (*[starts-with(local-name(.), 'age')] and *[starts-with(local-name(.), 'birth')])"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Not in scope for v2"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.identifier",
              "short": "External Id(s) for this record",
              "definition": "This records identifiers associated with this family member history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "requirements": "Need to allow connection to a wider workflow.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.patient",
              "short": "Patient history is about",
              "definition": "The person who this history concerns.",
              "alias": [
                "Proband"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.date",
              "short": "When history was captured/updated",
              "definition": "The date (and possibly time) when the family member history was taken.",
              "comments": "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",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.status",
              "short": "partial | completed | entered-in-error | health-unknown",
              "definition": "A code specifying a state of a Family Member History record.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A code that identifies the status of the family history record.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/history-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "name"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The nature of the relationship between the patient and the related person being described in the family member history.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-FamilyMember"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "code"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.gender",
              "short": "male | female | other | unknown",
              "definition": "Administrative Gender - the gender that the relative is considered to have for administration and record keeping purposes.",
              "requirements": "Not all relationship codes imply gender and the relative's gender can be relevant for risk assessments.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The gender of a person used for administrative purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/administrative-gender"
                }
              }
            },
            {
              "path": "FamilyMemberHistory.born[x]",
              "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",
              "type": [
                {
                  "code": "Period"
                },
                {
                  "code": "date"
                },
                {
                  "code": "string"
                }
              ],
              "condition": [
                "fhs-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "player[classCode=LIV, determinerCode=INSTANCE]. birthDate (could be URG)"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.age[x]",
              "short": "(approximate) age",
              "definition": "The actual or approximate age of the relative at the time the family member history is recorded.",
              "requirements": "While age can be calculated from date of birth, sometimes recording age directly is more natureal for clinicians.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Age"
                  ]
                },
                {
                  "code": "Range"
                },
                {
                  "code": "string"
                }
              ],
              "condition": [
                "fhs-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "participation[typeCode=SBJ].act[classCode=OBS,moodCode=EVN, code=\"age\"].value"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.deceased[x]",
              "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",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Age"
                  ]
                },
                {
                  "code": "Range"
                },
                {
                  "code": "date"
                },
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "player[classCode=LIV, determinerCode=INSTANCE].deceasedInd, deceasedDate (could be URG)  For age, you'd hang an observation off the role"
                }
              ]
            },
            {
              "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": "1",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ANNGEN].value"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.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.",
              "comments": "If none of the conditions listed have an outcome of \"death\" specified, that indicates that none of the specified conditions are known to have been the primary cause of death.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ASSERTION, value<Diagnosis]"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Identification of the Condition or diagnosis.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".value"
                }
              ]
            },
            {
              "path": "FamilyMemberHistory.condition.outcome",
              "short": "deceased | permanent disability | etc.",
              "definition": "Indicates what happened as a result of this condition.  If the condition resulted in death, deceased date is captured on the relation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The result of the condition for the patient; e.g. death, permanent disability, temporary disability, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-outcome"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=OUTC)].target[classCode=OBS, moodCode=EVN, code=ActCode#ASSERTION].value"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Age"
                  ]
                },
                {
                  "code": "Range"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "string"
                }
              ],
              "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"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ANNGEN].value"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Flag",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Flag",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Flag",
        "name": "Flag",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Flag Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Flag",
              "short": "Key information to flag to healthcare providers",
              "definition": "Prospective warnings of potential issues when providing care to the patient.",
              "alias": [
                "Barriers to Care",
                "Alert",
                "Warning"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Observation[classCode=ISSUE, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "workflow.encounter"
                }
              ]
            },
            {
              "path": "Flag.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Flag.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Flag.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Flag.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Flag.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Flag.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Flag.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Flag.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Flag.identifier",
              "short": "Business identifier",
              "definition": "Identifier assigned to the flag for external use (outside the FHIR environment).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Flag.category",
              "short": "Clinical, administrative, etc.",
              "definition": "Allows an flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A general category for flags for filtering/display purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/flag-category"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Flag.status",
              "short": "active | inactive | entered-in-error",
              "definition": "Supports basic workflow.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or entered in error.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/flag-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".status"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Flag.period",
              "short": "Time period when flag is active",
              "definition": "The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Flag.subject",
              "short": "Who/What is flag about?",
              "definition": "The patient, location, group , organization , or practitioner this is about record this flag is associated with.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=PAT | LOCE | ASSIGNED]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Flag.encounter",
              "short": "Alert relevant during encounter",
              "definition": "This alert is only relevant during the encounter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Flag.author",
              "short": "Flag creator",
              "definition": "The person, organization or device that created the flag.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "Flag.code",
              "short": "Partially deaf, Requires easy open caps, No permanent address, etc.",
              "definition": "The coded value or textual component of the flag to display to the user.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Detail codes identifying specific flagged issues.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/flag-code"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".value"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Flag",
              "short": "Key information to flag to healthcare providers",
              "definition": "Prospective warnings of potential issues when providing care to the patient.",
              "alias": [
                "Barriers to Care",
                "Alert",
                "Warning"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Observation[classCode=ISSUE, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "workflow.encounter"
                }
              ]
            },
            {
              "path": "Flag.identifier",
              "short": "Business identifier",
              "definition": "Identifier assigned to the flag for external use (outside the FHIR environment).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Flag.category",
              "short": "Clinical, administrative, etc.",
              "definition": "Allows an flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A general category for flags for filtering/display purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/flag-category"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Flag.status",
              "short": "active | inactive | entered-in-error",
              "definition": "Supports basic workflow.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or entered in error.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/flag-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".status"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Flag.period",
              "short": "Time period when flag is active",
              "definition": "The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Flag.subject",
              "short": "Who/What is flag about?",
              "definition": "The patient, location, group , organization , or practitioner this is about record this flag is associated with.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=PAT | LOCE | ASSIGNED]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Flag.encounter",
              "short": "Alert relevant during encounter",
              "definition": "This alert is only relevant during the encounter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Flag.author",
              "short": "Flag creator",
              "definition": "The person, organization or device that created the flag.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "Flag.code",
              "short": "Partially deaf, Requires easy open caps, No permanent address, etc.",
              "definition": "The coded value or textual component of the flag to display to the user.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Detail codes identifying specific flagged issues.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/flag-code"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".value"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Goal",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Goal",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Goal",
        "name": "Goal",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Goal Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Goal",
              "short": "Describes the intended objective(s) for a patient, group or organization",
              "definition": "Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.",
              "comments": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "GOL.1"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode<=OBJ]."
                },
                {
                  "identity": "w5",
                  "map": "clinical.careprovision"
                }
              ]
            },
            {
              "path": "Goal.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Goal.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Goal.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Goal.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Goal.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Goal.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "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 resource. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Goal.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Goal.identifier",
              "short": "External Ids for this goal",
              "definition": "This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "requirements": "Need to allow connection to a wider workflow.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Goal.subject",
              "short": "Who this goal is intended for",
              "definition": "Identifies the patient, group or organization for whom the goal is being established.",
              "requirements": "Subject is optional to support annonymized reporting.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3-patient ID list"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PAT].role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Goal.start[x]",
              "short": "When goal pursuit begins",
              "definition": "The date or event after which the goal should begin being pursued.",
              "requirements": "Goals can be established prior to there being an intention to start pursuing them; e.g. Goals for post-surgical recovery established prior to surgery.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing events that can trigger the initiation of a goal",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/goal-start-event"
                }
              }
            },
            {
              "path": "Goal.target[x]",
              "short": "Reach goal on or before",
              "definition": "Indicates either the date or the duration after start by which the goal should be met.",
              "requirements": "Identifies when the goal should be evaluated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Duration"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Goal.category",
              "short": "E.g. Treatment, dietary, behavioral, etc.",
              "definition": "Indicates a category the goal falls within.",
              "requirements": "Allows goals to be filtered and sorted.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for grouping and sorting goals",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/goal-category"
                }
              }
            },
            {
              "path": "Goal.description",
              "short": "What's the desired outcome?",
              "definition": "Human-readable description of a specific desired objective of care.",
              "requirements": "Without a description of what's trying to be achieved, element has no purpose.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "GOL-3.2-goal ID.text"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "Goal.status",
              "short": "proposed | planned | accepted | rejected | in-progress | achieved | sustaining | on-hold | cancelled",
              "definition": "Indicates whether the goal has been reached and is still considered relevant.",
              "requirements": "Allows measuring outcome and whether goal needs to be further tracked.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates whether the goal has been met and is still being targeted",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/goal-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "GOL-18-goal life cycle status"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode in-progress = active (classCode = OBJ) achieved = complete sustaining = active (classCode=OBJC) cancelled = aborted"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Goal.statusDate",
              "short": "When goal status took effect",
              "definition": "Identifies when the current status.  I.e. When initially created, when achieved, when cancelled, etc.",
              "comments": "To see the date for past statuses, query history.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "Goal.statusReason",
              "short": "Reason for current status",
              "definition": "Captures the reason for the current status.",
              "comments": "This will typically be captured for statuses such as rejected, on-hold or cancelled, but could be present for others.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes to identify the reason for a goal's current status",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/goal-status-reason"
                }
              }
            },
            {
              "path": "Goal.author",
              "short": "Who's responsible for creating Goal?",
              "definition": "Indicates whose goal this is - patient goal, practitioner goal, etc.",
              "comments": "This is the individual reponsible for establishing the goal, not necessarily who recorded it.  (For that, use the Provenance resource.).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Goal.priority",
              "short": "high | medium |low",
              "definition": "Identifies the mutually agreed level of importance associated with reaching/sustaining the goal.",
              "comments": "Extensions are available to track priorities as established by each participant (i.e. Priority from the patient's perspective, different practitioners' perspectives, family member's perspectives)\n\nThe ordinal extension on Coding can be used to convey a numerically comparable ranking to priority.  (Keep in mind that different coding systems may use a \"low value=important\".",
              "requirements": "Used for sorting and presenting goals.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "The level of importance associated with a goal",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/goal-priority"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".priorityCode"
                }
              ]
            },
            {
              "path": "Goal.addresses",
              "short": "Issues addressed by this goal",
              "definition": "The identified conditions and other health record elements that are intended to be addressed by the goal.",
              "requirements": "Allows specific goals to explicitly linked to the concerns they're dealing with - makes the goal more understandable.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RiskAssessment"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SUBJ].target[classCode=CONC]"
                }
              ]
            },
            {
              "path": "Goal.note",
              "short": "Comments about the goal",
              "definition": "Any comments related to the goal.",
              "comments": "May be used for progress notes, concerns or other related information that doesn't actually describe the goal itself.",
              "requirements": "There's a need to capture information about the goal that doesn't actually describe the goal.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "GOL-16-goal evaluation + NTE?"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            },
            {
              "path": "Goal.outcome",
              "short": "What was end result of goal?",
              "definition": "Identifies the change (or lack of change) at the point where the goal was deepmed to be cancelled or achieved.",
              "comments": "Note that this should not duplicate the goal status.",
              "requirements": "Outcome tracking is a key aspect of care planning.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Goal.outcome.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Goal.outcome.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Goal.outcome.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Goal.outcome.result[x]",
              "short": "Code or observation that resulted from goal",
              "definition": "Details of what's changed (or not changed).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The result of the goal; e.g. \"25% increase in shoulder mobility\", \"Anxiety reduced to moderate levels\".  \"15 kg weight loss sustained over 6 months\""
              }
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Goal",
              "short": "Describes the intended objective(s) for a patient, group or organization",
              "definition": "Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.",
              "comments": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "GOL.1"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode<=OBJ]."
                },
                {
                  "identity": "w5",
                  "map": "clinical.careprovision"
                }
              ]
            },
            {
              "path": "Goal.identifier",
              "short": "External Ids for this goal",
              "definition": "This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "requirements": "Need to allow connection to a wider workflow.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Goal.subject",
              "short": "Who this goal is intended for",
              "definition": "Identifies the patient, group or organization for whom the goal is being established.",
              "requirements": "Subject is optional to support annonymized reporting.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3-patient ID list"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PAT].role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Goal.start[x]",
              "short": "When goal pursuit begins",
              "definition": "The date or event after which the goal should begin being pursued.",
              "requirements": "Goals can be established prior to there being an intention to start pursuing them; e.g. Goals for post-surgical recovery established prior to surgery.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing events that can trigger the initiation of a goal",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/goal-start-event"
                }
              }
            },
            {
              "path": "Goal.target[x]",
              "short": "Reach goal on or before",
              "definition": "Indicates either the date or the duration after start by which the goal should be met.",
              "requirements": "Identifies when the goal should be evaluated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Duration"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Goal.category",
              "short": "E.g. Treatment, dietary, behavioral, etc.",
              "definition": "Indicates a category the goal falls within.",
              "requirements": "Allows goals to be filtered and sorted.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for grouping and sorting goals",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/goal-category"
                }
              }
            },
            {
              "path": "Goal.description",
              "short": "What's the desired outcome?",
              "definition": "Human-readable description of a specific desired objective of care.",
              "requirements": "Without a description of what's trying to be achieved, element has no purpose.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "GOL-3.2-goal ID.text"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "Goal.status",
              "short": "proposed | planned | accepted | rejected | in-progress | achieved | sustaining | on-hold | cancelled",
              "definition": "Indicates whether the goal has been reached and is still considered relevant.",
              "requirements": "Allows measuring outcome and whether goal needs to be further tracked.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates whether the goal has been met and is still being targeted",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/goal-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "GOL-18-goal life cycle status"
                },
                {
                  "identity": "rim",
                  "map": ".statusCode in-progress = active (classCode = OBJ) achieved = complete sustaining = active (classCode=OBJC) cancelled = aborted"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Goal.statusDate",
              "short": "When goal status took effect",
              "definition": "Identifies when the current status.  I.e. When initially created, when achieved, when cancelled, etc.",
              "comments": "To see the date for past statuses, query history.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "Goal.statusReason",
              "short": "Reason for current status",
              "definition": "Captures the reason for the current status.",
              "comments": "This will typically be captured for statuses such as rejected, on-hold or cancelled, but could be present for others.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes to identify the reason for a goal's current status",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/goal-status-reason"
                }
              }
            },
            {
              "path": "Goal.author",
              "short": "Who's responsible for creating Goal?",
              "definition": "Indicates whose goal this is - patient goal, practitioner goal, etc.",
              "comments": "This is the individual reponsible for establishing the goal, not necessarily who recorded it.  (For that, use the Provenance resource.).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Goal.priority",
              "short": "high | medium |low",
              "definition": "Identifies the mutually agreed level of importance associated with reaching/sustaining the goal.",
              "comments": "Extensions are available to track priorities as established by each participant (i.e. Priority from the patient's perspective, different practitioners' perspectives, family member's perspectives)\n\nThe ordinal extension on Coding can be used to convey a numerically comparable ranking to priority.  (Keep in mind that different coding systems may use a \"low value=important\".",
              "requirements": "Used for sorting and presenting goals.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "The level of importance associated with a goal",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/goal-priority"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".priorityCode"
                }
              ]
            },
            {
              "path": "Goal.addresses",
              "short": "Issues addressed by this goal",
              "definition": "The identified conditions and other health record elements that are intended to be addressed by the goal.",
              "requirements": "Allows specific goals to explicitly linked to the concerns they're dealing with - makes the goal more understandable.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/NutritionOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RiskAssessment"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SUBJ].target[classCode=CONC]"
                }
              ]
            },
            {
              "path": "Goal.note",
              "short": "Comments about the goal",
              "definition": "Any comments related to the goal.",
              "comments": "May be used for progress notes, concerns or other related information that doesn't actually describe the goal itself.",
              "requirements": "There's a need to capture information about the goal that doesn't actually describe the goal.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "GOL-16-goal evaluation + NTE?"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            },
            {
              "path": "Goal.outcome",
              "short": "What was end result of goal?",
              "definition": "Identifies the change (or lack of change) at the point where the goal was deepmed to be cancelled or achieved.",
              "comments": "Note that this should not duplicate the goal status.",
              "requirements": "Outcome tracking is a key aspect of care planning.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Goal.outcome.result[x]",
              "short": "Code or observation that resulted from goal",
              "definition": "Details of what's changed (or not changed).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The result of the goal; e.g. \"25% increase in shoulder mobility\", \"Anxiety reduced to moderate levels\".  \"15 kg weight loss sustained over 6 months\""
              }
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Group",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Group",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Group",
        "name": "Group",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Group Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "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.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "member.empty() or actual"
                    }
                  ],
                  "key": "grp-1",
                  "severity": "error",
                  "human": "Can only have members if group is \"actual\"",
                  "xpath": "f:actual/@value=true() or not(exists(f:member))"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Entity[determinerCode=\"GRP\" or determinerCode=\"GRP_KIND\"]"
                },
                {
                  "identity": "w5",
                  "map": "administrative.group"
                }
              ]
            },
            {
              "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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Group.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "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 may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "unique(./id[displayable=\"true\" and scope=\"OBJ\"])"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Group.type",
              "short": "person | animal | practitioner | device | medication | substance",
              "definition": "Identifies the broad classification of the kind of resources the group includes.",
              "comments": "Group members SHALL be of the appropriate resource type (Patient for person or animal; or Practitioner, Device, Medicaiton or Substance for the other types.).",
              "requirements": "Identifies what type of resources the group is made up of.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Types of resources that are part of group",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/group-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "person: ./classCode=\"PSN\"  animal: ./classCode=\"ANM\"  device: ./classCode=\"DEV\"  medication: ./classCode=\"MMAT\" and ./playedRole[isNormalRole() and classCode=\"THER\"]  food: ./classCode=\"FOOD\""
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "condition": [
                "grp-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "true: ./determinerCode=\"GRP\"  false: ./determinerCode=\"GRP_KIND\""
                }
              ]
            },
            {
              "path": "Group.code",
              "short": "Kind of Group members",
              "definition": "Provides a specific type of resource the group includes; e.g. \"cow\", \"syringe\", etc.",
              "comments": "This would generally be omitted for Person resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Kind of particular resource; e.g. cow, syringe, lake, etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./code"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./name[type=\"ST\"]"
                }
              ]
            },
            {
              "path": "Group.quantity",
              "short": "Number of members",
              "definition": "A count of the number of resource instances that are part of the group.",
              "comments": "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",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./quantity"
                }
              ]
            },
            {
              "path": "Group.characteristic",
              "short": "Trait of group members",
              "definition": "Identifies the traits shared by members of the group.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./playedRole[isNormalRole()]/participation[isNormalParticipation() and typeCode=\"SBJ\"]/act[isNormalAct and classCode=\"OBS\" and moodCode=\"EVN\"]"
                }
              ]
            },
            {
              "path": "Group.characteristic.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Group.characteristic.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "List of characteristics used to describe group members; e.g. gender, age, owner, location, etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./code"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "boolean"
                },
                {
                  "code": "Quantity"
                },
                {
                  "code": "Range"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Value of descriptive member characteristic; e.g. red, male, pneumonia, Caucasian, etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./value"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./valueNegationInd"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "grp-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./scopedRole[isNormalRole() and classCode=\"MBR\"]/player"
                }
              ]
            },
            {
              "path": "Group.member.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Group.member.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "meaningWhenMissing": "The member is in the group at this time"
            },
            {
              "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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false
            }
          ]
        },
        "differential": {
          "element": [
            {
              "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.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "member.empty() or actual"
                    }
                  ],
                  "key": "grp-1",
                  "severity": "error",
                  "human": "Can only have members if group is \"actual\"",
                  "xpath": "f:actual/@value=true() or not(exists(f:member))"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Entity[determinerCode=\"GRP\" or determinerCode=\"GRP_KIND\"]"
                },
                {
                  "identity": "w5",
                  "map": "administrative.group"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "unique(./id[displayable=\"true\" and scope=\"OBJ\"])"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Group.type",
              "short": "person | animal | practitioner | device | medication | substance",
              "definition": "Identifies the broad classification of the kind of resources the group includes.",
              "comments": "Group members SHALL be of the appropriate resource type (Patient for person or animal; or Practitioner, Device, Medicaiton or Substance for the other types.).",
              "requirements": "Identifies what type of resources the group is made up of.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Types of resources that are part of group",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/group-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "person: ./classCode=\"PSN\"  animal: ./classCode=\"ANM\"  device: ./classCode=\"DEV\"  medication: ./classCode=\"MMAT\" and ./playedRole[isNormalRole() and classCode=\"THER\"]  food: ./classCode=\"FOOD\""
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "condition": [
                "grp-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "true: ./determinerCode=\"GRP\"  false: ./determinerCode=\"GRP_KIND\""
                }
              ]
            },
            {
              "path": "Group.code",
              "short": "Kind of Group members",
              "definition": "Provides a specific type of resource the group includes; e.g. \"cow\", \"syringe\", etc.",
              "comments": "This would generally be omitted for Person resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Kind of particular resource; e.g. cow, syringe, lake, etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./code"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./name[type=\"ST\"]"
                }
              ]
            },
            {
              "path": "Group.quantity",
              "short": "Number of members",
              "definition": "A count of the number of resource instances that are part of the group.",
              "comments": "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",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./quantity"
                }
              ]
            },
            {
              "path": "Group.characteristic",
              "short": "Trait of group members",
              "definition": "Identifies the traits shared by members of the group.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./playedRole[isNormalRole()]/participation[isNormalParticipation() and typeCode=\"SBJ\"]/act[isNormalAct and classCode=\"OBS\" and moodCode=\"EVN\"]"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "List of characteristics used to describe group members; e.g. gender, age, owner, location, etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./code"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "boolean"
                },
                {
                  "code": "Quantity"
                },
                {
                  "code": "Range"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Value of descriptive member characteristic; e.g. red, male, pneumonia, Caucasian, etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./value"
                }
              ]
            },
            {
              "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.",
              "comments": "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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./valueNegationInd"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "grp-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./scopedRole[isNormalRole() and classCode=\"MBR\"]/player"
                }
              ]
            },
            {
              "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.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "meaningWhenMissing": "The member is in the group at this time"
            },
            {
              "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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/GuidanceResponse",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "GuidanceResponse",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/GuidanceResponse",
        "name": "GuidanceResponse",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Decision Support)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for GuidanceResponse Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "GuidanceResponse",
              "short": "The formal response to a guidance request",
              "definition": "A guidance response is the formal response to a previous guidance request. It is a derivative of the knowledge response that provides additional information relevant specifically to clinical decision support such as a description of any proposed actions to be taken.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "GuidanceResponse.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "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 may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "GuidanceResponse.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "GuidanceResponse.requestId",
              "short": "The id of the request associated with this response, if any",
              "definition": "The id of the request associated with this response. If an id was provided as part of the request, it will be provided here to enable the requester to more easily identify the response in a multi-request scenario.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "GuidanceResponse.module",
              "short": "A reference to a knowledge module",
              "definition": "A reference to a knowledge module involved in an interaction.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DecisionSupportServiceModule"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DecisionSupportRule"
                  ]
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "GuidanceResponse.status",
              "short": "success | data-requested | data-required | in-progress | failure",
              "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.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of a guidance response",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/guidance-response-status"
                }
              }
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/OperationOutcome"
                  ]
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Parameters"
                  ]
                }
              ]
            },
            {
              "path": "GuidanceResponse.action",
              "name": "action",
              "definition": "The actions, if any, produced by the evaluation of the artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "GuidanceResponse.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.actionIdentifier",
              "definition": "A unique identifier for the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.number",
              "definition": "A user-visible number for the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.supportingEvidence",
              "definition": "Supporting evidence for the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.documentation",
              "definition": "Supporting documentation for the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.participant",
              "definition": "The participant in the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Person"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.title",
              "definition": "The title of the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.description",
              "definition": "A short description of the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.textEquivalent",
              "definition": "A text equivalent of the action to be performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.concept",
              "definition": "Concepts associated with the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.type",
              "short": "create | update | remove | fire-event",
              "definition": "The type of action to perform (create, update, remove).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of action to be performed",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/guidance-response-action-type"
                }
              }
            },
            {
              "path": "GuidanceResponse.action.resource",
              "definition": "The resource that is the target of the action (e.g. CommunicationRequest).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.actions",
              "definition": "Sub actions.",
              "min": 0,
              "max": "*",
              "nameReference": "action"
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "GuidanceResponse",
              "short": "The formal response to a guidance request",
              "definition": "A guidance response is the formal response to a previous guidance request. It is a derivative of the knowledge response that provides additional information relevant specifically to clinical decision support such as a description of any proposed actions to be taken.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "GuidanceResponse.requestId",
              "short": "The id of the request associated with this response, if any",
              "definition": "The id of the request associated with this response. If an id was provided as part of the request, it will be provided here to enable the requester to more easily identify the response in a multi-request scenario.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "GuidanceResponse.module",
              "short": "A reference to a knowledge module",
              "definition": "A reference to a knowledge module involved in an interaction.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DecisionSupportServiceModule"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DecisionSupportRule"
                  ]
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "GuidanceResponse.status",
              "short": "success | data-requested | data-required | in-progress | failure",
              "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.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of a guidance response",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/guidance-response-status"
                }
              }
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/OperationOutcome"
                  ]
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Parameters"
                  ]
                }
              ]
            },
            {
              "path": "GuidanceResponse.action",
              "name": "action",
              "definition": "The actions, if any, produced by the evaluation of the artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.actionIdentifier",
              "definition": "A unique identifier for the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.number",
              "definition": "A user-visible number for the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.supportingEvidence",
              "definition": "Supporting evidence for the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.documentation",
              "definition": "Supporting documentation for the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.participant",
              "definition": "The participant in the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Person"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.title",
              "definition": "The title of the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.description",
              "definition": "A short description of the action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.textEquivalent",
              "definition": "A text equivalent of the action to be performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.concept",
              "definition": "Concepts associated with the action.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.type",
              "short": "create | update | remove | fire-event",
              "definition": "The type of action to perform (create, update, remove).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of action to be performed",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/guidance-response-action-type"
                }
              }
            },
            {
              "path": "GuidanceResponse.action.resource",
              "definition": "The resource that is the target of the action (e.g. CommunicationRequest).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "GuidanceResponse.action.actions",
              "definition": "Sub actions.",
              "min": 0,
              "max": "*",
              "nameReference": "action"
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/HealthcareService",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "HealthcareService",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/HealthcareService",
        "name": "HealthcareService",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for HealthcareService Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "HealthcareService",
              "short": "The details of a healthcare service available at a location",
              "definition": "The details of a healthcare service available at a location.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "administrative.group"
                }
              ]
            },
            {
              "path": "HealthcareService.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "HealthcareService.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "HealthcareService.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "HealthcareService.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "HealthcareService.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "HealthcareService.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "HealthcareService.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "HealthcareService.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "HealthcareService.identifier",
              "short": "External identifiers for this item",
              "definition": "External identifiers for this item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "HealthcareService.providedBy",
              "short": "Organization that provides this service",
              "definition": "The organization that provides this healthcare service.",
              "comments": "This property is recommended to be the same as the Location's managingOrganization, and if not provided should be interpreted as such. If the Location does not have a managing Organization, then this property should be populated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "HealthcareService.serviceCategory",
              "short": "Broad category of service being performed or delivered",
              "definition": "Identifies the broad category of service being performed or delivered.",
              "comments": "Selecting a Service Category then determines the list of relevant service types that can be selected in the primary service type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A category of the service(s) that could be provided."
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ServiceType"
                }
              ],
              "path": "HealthcareService.serviceType",
              "short": "Specific service delivered or performed",
              "definition": "A specific type of service that may be delivered or performed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "HealthcareService.serviceType.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "HealthcareService.serviceType.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "HealthcareService.serviceType.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "HealthcareService.serviceType.type",
              "short": "Type of service delivered or performed",
              "definition": "The specific type of service being delivered or performed.",
              "comments": "Change to serviceType?",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Additional details about where the content was created (e.g. clinical specialty).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
                }
              }
            },
            {
              "path": "HealthcareService.serviceType.specialty",
              "short": "Specialties handled by the Service Site",
              "definition": "Collection of specialties handled by the service site. This is more of a medical term.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A specialty that a healthcare service may provide."
              }
            },
            {
              "path": "HealthcareService.location",
              "short": "Location where service may be provided",
              "definition": "The location where this healthcare service may be provided.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "HealthcareService.serviceName",
              "short": "Description of service as presented to a consumer while searching",
              "definition": "Further description of the service as it would be presented to a consumer while searching.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "HealthcareService.comment",
              "short": "Additional description and/or any specific issues not covered elsewhere",
              "definition": "Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName.",
              "comments": "Would expect that a user would not see this information on a search results, and it would only be available when viewing the complete details of the service.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "HealthcareService.extraDetails",
              "short": "Extra details about the service that can't be placed in the other fields",
              "definition": "Extra details about the service that can't be placed in the other fields.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "HealthcareService.photo",
              "short": "Facilitates quick identification of the service",
              "definition": "If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "isSummary": true
            },
            {
              "path": "HealthcareService.telecom",
              "short": "Contacts related to the healthcare service",
              "definition": "List of contacts related to this specific healthcare service.",
              "comments": "If this is empty, then refer to the location's contacts.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ]
            },
            {
              "path": "HealthcareService.coverageArea",
              "short": "Location(s) service is inteded for/available to",
              "definition": "The location(s) that this service is available to (not where the service is provided).",
              "comments": "The locations referenced by the coverage area can include both specific locations, including areas, and also conceptual domains too (mode = kind), such as a physical area (tri-state area) and some other attribute (covered by Example Care Organization). These types of Locations are often not managed by any specific organization. This could also include generic locations such as \"in-home\".",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ]
            },
            {
              "path": "HealthcareService.serviceProvisionCode",
              "short": "Conditions under which service is available/offered",
              "definition": "The code(s) that detail the conditions under which the healthcare service is available/offered.",
              "comments": "The provision means being commissioned by, contractually obliged or financially sourced. Types of costings that may apply to this healthcare service, such if the service may be available for free, some discounts available, or fees apply.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The code(s) that detail the conditions under which the healthcare service is available/offered.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-provision-conditions"
                }
              }
            },
            {
              "path": "HealthcareService.eligibility",
              "short": "Specific eligibility requirements required to use the service",
              "definition": "Does this service have specific eligibility requirements that need to be met in order to use the service?",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Coded values underwhich a specific service is made available."
              }
            },
            {
              "path": "HealthcareService.eligibilityNote",
              "short": "Describes the eligibility conditions for the service",
              "definition": "Describes the eligibility conditions for the service.",
              "comments": "The description of service eligibility should, in general, not exceed one or two paragraphs. It should be sufficient for a prospective consumer to determine if they are likely to be eligible or not. Where eligibility requirements and conditions are complex, it may simply be noted that an eligibility assessment is required. Where eligibility is determined by an outside source, such as an Act of Parliament, this should be noted, preferably with a reference to a commonly available copy of the source document such as a web page.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "HealthcareService.programName",
              "short": "Program Names that categorize the service",
              "definition": "Program Names that can be used to categorize the service.",
              "comments": "Programs are often defined externally to an Organization, commonly by governments; e.g. Home and Community Care Programs, Homeless Program, ….",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "HealthcareService.characteristic",
              "short": "Collection of characteristics (attributes)",
              "definition": "Collection of characteristics (attributes).",
              "comments": "These could be such things as is wheelchair accessible.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "A custom attribute that could be provided at a service (e.g. Wheelchair accessibiliy)."
              }
            },
            {
              "path": "HealthcareService.referralMethod",
              "short": "Ways that the service accepts referrals",
              "definition": "Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The methods of referral can be used when referring to a specific HealthCareService resource.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-referral-method"
                }
              }
            },
            {
              "path": "HealthcareService.publicKey",
              "short": "PKI Public keys to support secure communications",
              "definition": "The public part of the 'keys' allocated to an Organization by an accredited body to support secure exchange of data over the internet. To be provided by the Organization, where available.",
              "comments": "Note: This is a base64 encoded digital certificate.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "HealthcareService.appointmentRequired",
              "short": "If an appointment is required for access to this service",
              "definition": "Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "HealthcareService.availableTime",
              "short": "Times the Service Site is available",
              "definition": "A collection of times that the Service Site is available.",
              "comments": "More detailed availability information may be provided in associated Schedule/Slot resources.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "HealthcareService.availableTime.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "HealthcareService.availableTime.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "HealthcareService.availableTime.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "HealthcareService.availableTime.daysOfWeek",
              "short": "mon | tue | wed | thu | fri | sat | sun",
              "definition": "Indicates which days of the week are available between the start and end Times.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The days of the week.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/days-of-week"
                }
              }
            },
            {
              "path": "HealthcareService.availableTime.allDay",
              "short": "Always available? e.g. 24 hour service",
              "definition": "Is this always available? (hence times are irrelevant) e.g. 24 hour service.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "HealthcareService.availableTime.availableStartTime",
              "short": "Opening time of day (ignored if allDay = true)",
              "definition": "The opening time of day. Note: If the AllDay flag is set, then this time is ignored.",
              "comments": "The timezone is expected to be for where this HealthcareService is provided at.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "time"
                }
              ]
            },
            {
              "path": "HealthcareService.availableTime.availableEndTime",
              "short": "Closing time of day (ignored if allDay = true)",
              "definition": "The closing time of day. Note: If the AllDay flag is set, then this time is ignored.",
              "comments": "The timezone is expected to be for where this HealthcareService is provided at.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "time"
                }
              ]
            },
            {
              "path": "HealthcareService.notAvailable",
              "short": "Not available during this time due to provided reason",
              "definition": "The HealthcareService is not available during this period of time due to the provided reason.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "HealthcareService.notAvailable.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "HealthcareService.notAvailable.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "HealthcareService.notAvailable.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "HealthcareService.notAvailable.description",
              "short": "Reason presented to the user explaining why time not available",
              "definition": "The reason that can be presented to the user as to why this time is not available.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "HealthcareService.notAvailable.during",
              "short": "Service not availablefrom this date",
              "definition": "Service is not available (seasonally or for a public holiday) from this date.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "path": "HealthcareService.availabilityExceptions",
              "short": "Description of availability exceptions",
              "definition": "A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "HealthcareService",
              "short": "The details of a healthcare service available at a location",
              "definition": "The details of a healthcare service available at a location.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "administrative.group"
                }
              ]
            },
            {
              "path": "HealthcareService.identifier",
              "short": "External identifiers for this item",
              "definition": "External identifiers for this item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "HealthcareService.providedBy",
              "short": "Organization that provides this service",
              "definition": "The organization that provides this healthcare service.",
              "comments": "This property is recommended to be the same as the Location's managingOrganization, and if not provided should be interpreted as such. If the Location does not have a managing Organization, then this property should be populated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "HealthcareService.serviceCategory",
              "short": "Broad category of service being performed or delivered",
              "definition": "Identifies the broad category of service being performed or delivered.",
              "comments": "Selecting a Service Category then determines the list of relevant service types that can be selected in the primary service type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A category of the service(s) that could be provided."
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "ServiceType"
                }
              ],
              "path": "HealthcareService.serviceType",
              "short": "Specific service delivered or performed",
              "definition": "A specific type of service that may be delivered or performed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "HealthcareService.serviceType.type",
              "short": "Type of service delivered or performed",
              "definition": "The specific type of service being delivered or performed.",
              "comments": "Change to serviceType?",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "Additional details about where the content was created (e.g. clinical specialty).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
                }
              }
            },
            {
              "path": "HealthcareService.serviceType.specialty",
              "short": "Specialties handled by the Service Site",
              "definition": "Collection of specialties handled by the service site. This is more of a medical term.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A specialty that a healthcare service may provide."
              }
            },
            {
              "path": "HealthcareService.location",
              "short": "Location where service may be provided",
              "definition": "The location where this healthcare service may be provided.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "HealthcareService.serviceName",
              "short": "Description of service as presented to a consumer while searching",
              "definition": "Further description of the service as it would be presented to a consumer while searching.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "HealthcareService.comment",
              "short": "Additional description and/or any specific issues not covered elsewhere",
              "definition": "Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName.",
              "comments": "Would expect that a user would not see this information on a search results, and it would only be available when viewing the complete details of the service.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "HealthcareService.extraDetails",
              "short": "Extra details about the service that can't be placed in the other fields",
              "definition": "Extra details about the service that can't be placed in the other fields.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "HealthcareService.photo",
              "short": "Facilitates quick identification of the service",
              "definition": "If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "isSummary": true
            },
            {
              "path": "HealthcareService.telecom",
              "short": "Contacts related to the healthcare service",
              "definition": "List of contacts related to this specific healthcare service.",
              "comments": "If this is empty, then refer to the location's contacts.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ]
            },
            {
              "path": "HealthcareService.coverageArea",
              "short": "Location(s) service is inteded for/available to",
              "definition": "The location(s) that this service is available to (not where the service is provided).",
              "comments": "The locations referenced by the coverage area can include both specific locations, including areas, and also conceptual domains too (mode = kind), such as a physical area (tri-state area) and some other attribute (covered by Example Care Organization). These types of Locations are often not managed by any specific organization. This could also include generic locations such as \"in-home\".",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ]
            },
            {
              "path": "HealthcareService.serviceProvisionCode",
              "short": "Conditions under which service is available/offered",
              "definition": "The code(s) that detail the conditions under which the healthcare service is available/offered.",
              "comments": "The provision means being commissioned by, contractually obliged or financially sourced. Types of costings that may apply to this healthcare service, such if the service may be available for free, some discounts available, or fees apply.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The code(s) that detail the conditions under which the healthcare service is available/offered.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-provision-conditions"
                }
              }
            },
            {
              "path": "HealthcareService.eligibility",
              "short": "Specific eligibility requirements required to use the service",
              "definition": "Does this service have specific eligibility requirements that need to be met in order to use the service?",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Coded values underwhich a specific service is made available."
              }
            },
            {
              "path": "HealthcareService.eligibilityNote",
              "short": "Describes the eligibility conditions for the service",
              "definition": "Describes the eligibility conditions for the service.",
              "comments": "The description of service eligibility should, in general, not exceed one or two paragraphs. It should be sufficient for a prospective consumer to determine if they are likely to be eligible or not. Where eligibility requirements and conditions are complex, it may simply be noted that an eligibility assessment is required. Where eligibility is determined by an outside source, such as an Act of Parliament, this should be noted, preferably with a reference to a commonly available copy of the source document such as a web page.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "HealthcareService.programName",
              "short": "Program Names that categorize the service",
              "definition": "Program Names that can be used to categorize the service.",
              "comments": "Programs are often defined externally to an Organization, commonly by governments; e.g. Home and Community Care Programs, Homeless Program, ….",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "HealthcareService.characteristic",
              "short": "Collection of characteristics (attributes)",
              "definition": "Collection of characteristics (attributes).",
              "comments": "These could be such things as is wheelchair accessible.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "A custom attribute that could be provided at a service (e.g. Wheelchair accessibiliy)."
              }
            },
            {
              "path": "HealthcareService.referralMethod",
              "short": "Ways that the service accepts referrals",
              "definition": "Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The methods of referral can be used when referring to a specific HealthCareService resource.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/service-referral-method"
                }
              }
            },
            {
              "path": "HealthcareService.publicKey",
              "short": "PKI Public keys to support secure communications",
              "definition": "The public part of the 'keys' allocated to an Organization by an accredited body to support secure exchange of data over the internet. To be provided by the Organization, where available.",
              "comments": "Note: This is a base64 encoded digital certificate.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "HealthcareService.appointmentRequired",
              "short": "If an appointment is required for access to this service",
              "definition": "Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "HealthcareService.availableTime",
              "short": "Times the Service Site is available",
              "definition": "A collection of times that the Service Site is available.",
              "comments": "More detailed availability information may be provided in associated Schedule/Slot resources.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "HealthcareService.availableTime.daysOfWeek",
              "short": "mon | tue | wed | thu | fri | sat | sun",
              "definition": "Indicates which days of the week are available between the start and end Times.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The days of the week.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/days-of-week"
                }
              }
            },
            {
              "path": "HealthcareService.availableTime.allDay",
              "short": "Always available? e.g. 24 hour service",
              "definition": "Is this always available? (hence times are irrelevant) e.g. 24 hour service.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "HealthcareService.availableTime.availableStartTime",
              "short": "Opening time of day (ignored if allDay = true)",
              "definition": "The opening time of day. Note: If the AllDay flag is set, then this time is ignored.",
              "comments": "The timezone is expected to be for where this HealthcareService is provided at.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "time"
                }
              ]
            },
            {
              "path": "HealthcareService.availableTime.availableEndTime",
              "short": "Closing time of day (ignored if allDay = true)",
              "definition": "The closing time of day. Note: If the AllDay flag is set, then this time is ignored.",
              "comments": "The timezone is expected to be for where this HealthcareService is provided at.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "time"
                }
              ]
            },
            {
              "path": "HealthcareService.notAvailable",
              "short": "Not available during this time due to provided reason",
              "definition": "The HealthcareService is not available during this period of time due to the provided reason.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "HealthcareService.notAvailable.description",
              "short": "Reason presented to the user explaining why time not available",
              "definition": "The reason that can be presented to the user as to why this time is not available.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "HealthcareService.notAvailable.during",
              "short": "Service not availablefrom this date",
              "definition": "Service is not available (seasonally or for a public holiday) from this date.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "path": "HealthcareService.availabilityExceptions",
              "short": "Description of availability exceptions",
              "definition": "A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ImagingObjectSelection",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ImagingObjectSelection",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ImagingObjectSelection",
        "name": "ImagingObjectSelection",
        "status": "draft",
        "publisher": "Health Level Seven International (Imaging Integration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/imagemgt/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ImagingObjectSelection Resource",
        "requirements": "A FHIR representation of DICOM Key Object Selection (KOS) SOP Instances enables access to a set of selected DICOM SOP Instances.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "dicom",
            "uri": "http://nema.org/dicom",
            "name": "DICOM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ImagingObjectSelection",
              "short": "Key Object Selection",
              "definition": "A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances).  The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances have been selected for a purpose, such as quality assurance, conference, or consult. Reflecting that range of purposes, typical ImagingObjectSelection resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); a multi-frame ultrasound instance (\"cine\" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.",
              "alias": [
                "Manifest",
                "XDS-I summary",
                "Key Images",
                "KOS"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "Key Object Selection SOP Class (1.2.840.10008.5.1.4.1.1.88.59)"
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ImagingObjectSelection.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.uid",
              "short": "Instance UID",
              "definition": "Instance UID of the DICOM KOS SOP Instances represented in this resource.",
              "requirements": "DICOM SOP Instance is always assigned with a unique identifier (UID).",
              "alias": [
                "SOPInstanceUID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0018) - SOP Instance UID (of the Key Object Selection SOP Class)"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.patient",
              "short": "Patient of the selected objects",
              "definition": "A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingObjectSelection.",
              "comments": "SOP instances selected in the ImagingObjectSelection can be from different studies, but must be of the same patient.",
              "requirements": "SOP Instances in ImagingObjectSelection must be from the same patient.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0010,0010) - Patient Name (0010,0020) - Patient ID (0010,0021) - Issuer of Patient ID"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.title",
              "short": "Reason for selection",
              "definition": "The reason for, or significance of, the selection of objects referenced in the resource.",
              "comments": "Coded concept of kind of the ImagingObjectSelection. Value set is defined in the DICOM standard Part 16, CID-7010.",
              "requirements": "Need to represent the application purpose that the SOP instances in ImagingObjectSelection are selected for.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The document title code of key object selection",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/kos-title"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0040,A043) - Concept Name Code Sequence in the SR root item"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.description",
              "short": "Description text",
              "definition": "Text description of the DICOM SOP instances selected in the ImagingObjectSelection. This should be aligned with the content of the title element, and can provide further explanation of the SOP instances in the selection.",
              "comments": "Free text narrative description of the ImagingObjectSelection.",
              "requirements": "Need to provide a narrative description of the SOP instances in the selection.",
              "alias": [
                "TextValue"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0040,A160) - Text Value SR content item immediately under the root item, concept name code = (113012, DCM, \"Key Object Description\")"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.author",
              "short": "Author (human or machine)",
              "definition": "Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.",
              "requirements": "Track the selection decision maker.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0040,A730) - Content Sequence TID 1002 - Observer Context"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.authoringTime",
              "short": "Authoring time of the selection",
              "definition": "Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).",
              "requirements": "Date and time when the selection was made can be important to understand the content of selection.",
              "alias": [
                "ObservationDateTime"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0040,A032) - Observation Date Time"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Study"
                }
              ],
              "path": "ImagingObjectSelection.study",
              "short": "Study identity of the selected instances",
              "definition": "Study identity and locating information of the DICOM SOP instances in the selection.",
              "comments": "Study component represents the study level identity and locator information of the DICOM SOP instances in the selection. It is the top level identity of the hierachical identification of the instances.",
              "requirements": "DICOM SOP instances are identified through the UIDs of the study - series - instance hierarchy. In addition, the locator at the study level provide a means of retrieving the entire study.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.study.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.uid",
              "short": "Study instance UID",
              "definition": "Study instance UID of the SOP instances in the selection.",
              "requirements": "Study instance UID is required to fully identify the DICOM SOP instances in the selection.",
              "alias": [
                "StudyInstanceUID",
                "Referenced study instance UID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,000D) - Study Instance UID"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.url",
              "short": "Retrieve study URL",
              "definition": "WADO-RS URL to retrieve the study. Note that this URL retrieves all SOP instances of the study, not only those in the selection.",
              "comments": "Study level locator information is optional. If provided, this is the URL to retrieve the entire study with WADO-RS interaction, though only a subset of these are selected in the selection.",
              "requirements": "WADO-RS URL enables retrieval of the entire study using DICOM WADO-RS API.",
              "alias": [
                "RetrieveURL"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1190) - Retrieve URL"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.imagingStudy",
              "short": "Reference to ImagingStudy",
              "definition": "Reference to the Imaging Study in FHIR form.",
              "requirements": "Used to retrieve the ImagingStudy that contain the images referenced in the Imaging ObjectSelection.study.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Series"
                }
              ],
              "path": "ImagingObjectSelection.study.series",
              "short": "Series identity of the selected instances",
              "definition": "Series identity and locating information of the DICOM SOP instances in the selection.",
              "comments": "Series component represents the series level identity and locator information of the DICOM SOP instances in the selection.",
              "requirements": "DICOM SOP instances are identified through the UIDs of the study - series - instance hierarchy. In addition, the locator at the series level provide a means of retrieving the entire series.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.study.series.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.uid",
              "short": "Series instance UID",
              "definition": "Series instance UID of the SOP instances in the selection.",
              "requirements": "Series instance UID is required to fully identify the DICOM SOP instances in the selection.",
              "alias": [
                "SeriesInstanceUID",
                "Referenced series instance UID"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,000E) - Series Instance UID"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.url",
              "short": "Retrieve series URL",
              "definition": "WADO-RS URL to retrieve the series. Note that this URL retrieves all SOP instances of the series not only those in the selection.",
              "comments": "Series level locator information is optional. If provided, this is the URL to retrieve the entire series with WADO-RS interaction, though only a subset of these are selected in the selection.",
              "requirements": "WADO-RS URL enables retrieval of the entire series using DICOM WADO-RS API.",
              "alias": [
                "RetrieveURL"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1190) - Retrieve URL"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Instance"
                }
              ],
              "path": "ImagingObjectSelection.study.series.instance",
              "short": "The selected instance",
              "definition": "Identity and locating information of the selected DICOM SOP instances.",
              "comments": "SOP Instance component identify the instance selected, along with the study and series identities to form the DICOM identity hierachy.",
              "requirements": "DICOM SOP instances are identified through the UIDs of the study - series - instance hierarchy. This is the instance level identity of the instance in the selection.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.sopClass",
              "short": "SOP class UID of instance",
              "definition": "SOP class UID of the selected instance.",
              "comments": "SOP class UID identifies the type of the selected instances, e.g. CT image, Gray scale softcopy presentation state, ECG waveform, etc.",
              "requirements": "DICOM SOP instances can be an image or other data object. The SOP class UID provide the accurate information about what type the instance is.",
              "alias": [
                "SOPClassUID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0016) SOP Class UID"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.uid",
              "short": "Selected instance UID",
              "definition": "SOP Instance UID of the selected instance.",
              "comments": "SOP instance UID identifies the instance.",
              "requirements": "SOP instance UID is required to fully identify the DICOM SOP instance in the selection.",
              "alias": [
                "SOPInstanceUID",
                "Referenced SOP instance UID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0018) - SOP Instance UID"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.url",
              "short": "Retrieve instance URL",
              "definition": "WADO-RS URL to retrieve the DICOM SOP Instance.",
              "comments": "Instance level locator information is required.",
              "requirements": "WADO-RS URL enables retrieval of the SOP instance using DICOM WADO-RS API.",
              "alias": [
                "RetrieveURL"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1190) - Retrieve URL"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Frames"
                }
              ],
              "path": "ImagingObjectSelection.study.series.instance.frames",
              "short": "The frame set",
              "definition": "Identity and location information of the frames in the selected instance.",
              "comments": "This component may be used if the referenced image SOP Instance is a multi-frame image.",
              "requirements": "The specific set of frames referenced in this imaging object selection. The URL retrieves the pixel data, and is encapsulated in a multipart MIME response.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.frames.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.frames.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.frames.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.frames.frameNumbers",
              "short": "Frame numbers",
              "definition": "The frame numbers in the frame set.",
              "requirements": "One or more non-duplicate frame numbers in the selected instance.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.frames.url",
              "short": "Retrieve frame URL",
              "definition": "WADO-RS URL to retrieve the DICOM frames.",
              "comments": "Frame level locator information is required.",
              "requirements": "WADO-RS URL enables retrieval of the frames using DICOM WADO-RS API.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "WADO-RS - RetrieveFrames"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ImagingObjectSelection",
              "short": "Key Object Selection",
              "definition": "A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances).  The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances have been selected for a purpose, such as quality assurance, conference, or consult. Reflecting that range of purposes, typical ImagingObjectSelection resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); a multi-frame ultrasound instance (\"cine\" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.",
              "alias": [
                "Manifest",
                "XDS-I summary",
                "Key Images",
                "KOS"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "Key Object Selection SOP Class (1.2.840.10008.5.1.4.1.1.88.59)"
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.uid",
              "short": "Instance UID",
              "definition": "Instance UID of the DICOM KOS SOP Instances represented in this resource.",
              "requirements": "DICOM SOP Instance is always assigned with a unique identifier (UID).",
              "alias": [
                "SOPInstanceUID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0018) - SOP Instance UID (of the Key Object Selection SOP Class)"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.patient",
              "short": "Patient of the selected objects",
              "definition": "A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingObjectSelection.",
              "comments": "SOP instances selected in the ImagingObjectSelection can be from different studies, but must be of the same patient.",
              "requirements": "SOP Instances in ImagingObjectSelection must be from the same patient.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0010,0010) - Patient Name (0010,0020) - Patient ID (0010,0021) - Issuer of Patient ID"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.title",
              "short": "Reason for selection",
              "definition": "The reason for, or significance of, the selection of objects referenced in the resource.",
              "comments": "Coded concept of kind of the ImagingObjectSelection. Value set is defined in the DICOM standard Part 16, CID-7010.",
              "requirements": "Need to represent the application purpose that the SOP instances in ImagingObjectSelection are selected for.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The document title code of key object selection",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/kos-title"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0040,A043) - Concept Name Code Sequence in the SR root item"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.description",
              "short": "Description text",
              "definition": "Text description of the DICOM SOP instances selected in the ImagingObjectSelection. This should be aligned with the content of the title element, and can provide further explanation of the SOP instances in the selection.",
              "comments": "Free text narrative description of the ImagingObjectSelection.",
              "requirements": "Need to provide a narrative description of the SOP instances in the selection.",
              "alias": [
                "TextValue"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0040,A160) - Text Value SR content item immediately under the root item, concept name code = (113012, DCM, \"Key Object Description\")"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.author",
              "short": "Author (human or machine)",
              "definition": "Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.",
              "requirements": "Track the selection decision maker.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0040,A730) - Content Sequence TID 1002 - Observer Context"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.authoringTime",
              "short": "Authoring time of the selection",
              "definition": "Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).",
              "requirements": "Date and time when the selection was made can be important to understand the content of selection.",
              "alias": [
                "ObservationDateTime"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0040,A032) - Observation Date Time"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Study"
                }
              ],
              "path": "ImagingObjectSelection.study",
              "short": "Study identity of the selected instances",
              "definition": "Study identity and locating information of the DICOM SOP instances in the selection.",
              "comments": "Study component represents the study level identity and locator information of the DICOM SOP instances in the selection. It is the top level identity of the hierachical identification of the instances.",
              "requirements": "DICOM SOP instances are identified through the UIDs of the study - series - instance hierarchy. In addition, the locator at the study level provide a means of retrieving the entire study.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.study.uid",
              "short": "Study instance UID",
              "definition": "Study instance UID of the SOP instances in the selection.",
              "requirements": "Study instance UID is required to fully identify the DICOM SOP instances in the selection.",
              "alias": [
                "StudyInstanceUID",
                "Referenced study instance UID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,000D) - Study Instance UID"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.url",
              "short": "Retrieve study URL",
              "definition": "WADO-RS URL to retrieve the study. Note that this URL retrieves all SOP instances of the study, not only those in the selection.",
              "comments": "Study level locator information is optional. If provided, this is the URL to retrieve the entire study with WADO-RS interaction, though only a subset of these are selected in the selection.",
              "requirements": "WADO-RS URL enables retrieval of the entire study using DICOM WADO-RS API.",
              "alias": [
                "RetrieveURL"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1190) - Retrieve URL"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.imagingStudy",
              "short": "Reference to ImagingStudy",
              "definition": "Reference to the Imaging Study in FHIR form.",
              "requirements": "Used to retrieve the ImagingStudy that contain the images referenced in the Imaging ObjectSelection.study.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Series"
                }
              ],
              "path": "ImagingObjectSelection.study.series",
              "short": "Series identity of the selected instances",
              "definition": "Series identity and locating information of the DICOM SOP instances in the selection.",
              "comments": "Series component represents the series level identity and locator information of the DICOM SOP instances in the selection.",
              "requirements": "DICOM SOP instances are identified through the UIDs of the study - series - instance hierarchy. In addition, the locator at the series level provide a means of retrieving the entire series.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.study.series.uid",
              "short": "Series instance UID",
              "definition": "Series instance UID of the SOP instances in the selection.",
              "requirements": "Series instance UID is required to fully identify the DICOM SOP instances in the selection.",
              "alias": [
                "SeriesInstanceUID",
                "Referenced series instance UID"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,000E) - Series Instance UID"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.url",
              "short": "Retrieve series URL",
              "definition": "WADO-RS URL to retrieve the series. Note that this URL retrieves all SOP instances of the series not only those in the selection.",
              "comments": "Series level locator information is optional. If provided, this is the URL to retrieve the entire series with WADO-RS interaction, though only a subset of these are selected in the selection.",
              "requirements": "WADO-RS URL enables retrieval of the entire series using DICOM WADO-RS API.",
              "alias": [
                "RetrieveURL"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1190) - Retrieve URL"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Instance"
                }
              ],
              "path": "ImagingObjectSelection.study.series.instance",
              "short": "The selected instance",
              "definition": "Identity and locating information of the selected DICOM SOP instances.",
              "comments": "SOP Instance component identify the instance selected, along with the study and series identities to form the DICOM identity hierachy.",
              "requirements": "DICOM SOP instances are identified through the UIDs of the study - series - instance hierarchy. This is the instance level identity of the instance in the selection.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.sopClass",
              "short": "SOP class UID of instance",
              "definition": "SOP class UID of the selected instance.",
              "comments": "SOP class UID identifies the type of the selected instances, e.g. CT image, Gray scale softcopy presentation state, ECG waveform, etc.",
              "requirements": "DICOM SOP instances can be an image or other data object. The SOP class UID provide the accurate information about what type the instance is.",
              "alias": [
                "SOPClassUID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0016) SOP Class UID"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.uid",
              "short": "Selected instance UID",
              "definition": "SOP Instance UID of the selected instance.",
              "comments": "SOP instance UID identifies the instance.",
              "requirements": "SOP instance UID is required to fully identify the DICOM SOP instance in the selection.",
              "alias": [
                "SOPInstanceUID",
                "Referenced SOP instance UID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0018) - SOP Instance UID"
                }
              ]
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.url",
              "short": "Retrieve instance URL",
              "definition": "WADO-RS URL to retrieve the DICOM SOP Instance.",
              "comments": "Instance level locator information is required.",
              "requirements": "WADO-RS URL enables retrieval of the SOP instance using DICOM WADO-RS API.",
              "alias": [
                "RetrieveURL"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1190) - Retrieve URL"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Frames"
                }
              ],
              "path": "ImagingObjectSelection.study.series.instance.frames",
              "short": "The frame set",
              "definition": "Identity and location information of the frames in the selected instance.",
              "comments": "This component may be used if the referenced image SOP Instance is a multi-frame image.",
              "requirements": "The specific set of frames referenced in this imaging object selection. The URL retrieves the pixel data, and is encapsulated in a multipart MIME response.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.frames.frameNumbers",
              "short": "Frame numbers",
              "definition": "The frame numbers in the frame set.",
              "requirements": "One or more non-duplicate frame numbers in the selected instance.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingObjectSelection.study.series.instance.frames.url",
              "short": "Retrieve frame URL",
              "definition": "WADO-RS URL to retrieve the DICOM frames.",
              "comments": "Frame level locator information is required.",
              "requirements": "WADO-RS URL enables retrieval of the frames using DICOM WADO-RS API.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "WADO-RS - RetrieveFrames"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ImagingStudy",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
        "name": "ImagingStudy",
        "status": "draft",
        "publisher": "Health Level Seven International (Imaging Integration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/imagemgt/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ImagingStudy Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "dicom",
            "uri": "http://nema.org/dicom",
            "name": "DICOM"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ImagingStudy",
              "short": "A set of images produced in single study (one or more series of references images)",
              "definition": "Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context.  A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "Reference IHE radiology TF vol 2 table 4.14-1"
                },
                {
                  "identity": "rim",
                  "map": "Act[classCode=COMPOSITION, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "ImagingStudy.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingStudy.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImagingStudy.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ImagingStudy.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ImagingStudy.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ImagingStudy.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImagingStudy.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImagingStudy.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                  "valueString": "dicom=http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.7.2.html#sect_C.7.2.1"
                }
              ],
              "path": "ImagingStudy.started",
              "short": "When the study was started",
              "definition": "Date and Time the study started.",
              "alias": [
                "StudyDate",
                "StudyTime"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "exampleDateTime": "2011-01-01T11:01:20+03:00",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0020)+(0008,0030)"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                  "valueString": "dicom=http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.2.2.html"
                }
              ],
              "path": "ImagingStudy.patient",
              "short": "Who the images are of",
              "definition": "The patient imaged in the study.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0010/*)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                  "valueString": "dicom="
                }
              ],
              "path": "ImagingStudy.uid",
              "short": "Formal identifier for the study",
              "definition": "Formal identifier for the study.",
              "alias": [
                "StudyInstanceUID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "exampleUri": "urn:oid:2.16.124.113543.6003.1154777499.30246.19789.3503430045",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,000D)"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ImagingStudy.accession",
              "short": "Related workflow identifier (\"Accession Number\")",
              "definition": "Accession Number is an identifier related to some aspect of imaging workflow and data management. Usage may vary across different institutions.  See for instance [IHE Radiology Technical Framework Volume 1 Appendix A](http://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_TF_Rev13.0_Vol1_FT_2014-07-30.pdf).",
              "alias": [
                "AccessionNumber"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0050)"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ACSN, moodCode=EVN].id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ImagingStudy.identifier",
              "short": "Other identifiers for the study",
              "definition": "Other identifiers for the study.",
              "alias": [
                "StudyID"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,0010)"
                },
                {
                  "identity": "rim",
                  "map": ".id (no means to distinguish from uid)"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ImagingStudy.order",
              "short": "Order(s) that caused this study to be performed",
              "definition": "A list of the diagnostic orders that resulted in this imaging study being performed.",
              "requirements": "To support grouped procedures (one imaging study supporting multiple ordered procedures, e.g. chest/abdomen/pelvis CT).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=FLFS].target[classCode=DGIMG, moodCode=RQO]"
                }
              ]
            },
            {
              "path": "ImagingStudy.modalityList",
              "short": "All series modality if actual acquisition modalities",
              "definition": "A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19).",
              "alias": [
                "ModalitiesInStudy"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Type of acquired data in the instance",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/dicom-cid29"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0061)"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "ImagingStudy.referrer",
              "short": "Referring physician (0008,0090)",
              "definition": "The requesting/referring physician.",
              "alias": [
                "ReferringPhysiciansName"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0090)"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=FLFS].target[classCode=DGIMG, moodCode=RQO].participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.cause"
                }
              ]
            },
            {
              "path": "ImagingStudy.availability",
              "short": "ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)",
              "definition": "Availability of study (online, offline or nearline).",
              "alias": [
                "InstanceAvailability"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Availability of the resource",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/instance-availability"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0056)"
                },
                {
                  "identity": "rim",
                  "map": "Not supported"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ImagingStudy.url",
              "short": "Retrieve URI",
              "definition": "WADO-RS resource where Study is available.",
              "alias": [
                "RetrieveURI"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1190)"
                },
                {
                  "identity": "rim",
                  "map": ".text.reference"
                }
              ]
            },
            {
              "path": "ImagingStudy.numberOfSeries",
              "short": "Number of Study Related Series",
              "definition": "Number of Series in Study.",
              "alias": [
                "NumberOfStudyRelatedSeries"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,1206)"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target[classCode=OBSSER, moodCode=EVN].repeatNumber"
                }
              ]
            },
            {
              "path": "ImagingStudy.numberOfInstances",
              "short": "Number of Study Related Instances",
              "definition": "Number of SOP Instances in Study.",
              "alias": [
                "NumberOfStudyRelatedInstances"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,1208)"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target[classCode=DGIMG, moodCode=EVN].repeatNumber"
                }
              ]
            },
            {
              "path": "ImagingStudy.procedure",
              "short": "Type of procedure performed",
              "definition": "Type of procedure performed.",
              "comments": "For the Procedure.code, LOINC radiology orderables would be a good value set to use.",
              "alias": [
                "ProcedureCodeSequence"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Procedure"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1032)"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=PROC, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "ImagingStudy.interpreter",
              "short": "Who interpreted images",
              "definition": "Who read the study and interpreted the images or other content.",
              "alias": [
                "Name of Physician(s) Reading Study"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1060)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PRF].role"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "ImagingStudy.description",
              "short": "Institution-generated description",
              "definition": "Institution-generated description or classification of the Study performed.",
              "alias": [
                "StudyDescription"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1030)"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "ImagingStudy.series",
              "short": "Each study has one or more series of instances",
              "definition": "Each study has one or more series of images or other content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBSSER, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.number",
              "short": "Numeric identifier of this series",
              "definition": "The Numeric identifier of this series in the study.",
              "alias": [
                "SeriesNumber"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "exampleInteger": 3,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,0011)"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[type=COMP, source[classCode=COMPOSITION, moodCode=EVN]].sequenceNumber"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.modality",
              "short": "The modality of the instances in the series",
              "definition": "The modality of this series sequence.",
              "alias": [
                "Modality"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Type of acquired data in the instance",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/dicom-cid29"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0060)"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.uid",
              "short": "Formal identifier for this series",
              "definition": "Formal identifier for this series.",
              "alias": [
                "SeriesInstanceUID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "exampleUri": "urn:oid:2.16.124.113543.6003.2588828330.45298.17418.2723805630",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,000E)"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.description",
              "short": "A description of the series",
              "definition": "A description of the series.",
              "alias": [
                "SeriesDescription"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "exampleString": "CT Surview 180",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,103E)"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.numberOfInstances",
              "short": "Number of Series Related Instances",
              "definition": "Number of SOP Instances in Series.",
              "alias": [
                "NumberOfSeriesRelatedInstances"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,1209)"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target[classCode=DGIMG, moodCode=EVN].repeatNumber"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.availability",
              "short": "ONLINE | OFFLINE | NEARLINE | UNAVAILABLE",
              "definition": "Availability of series (online, offline or nearline).",
              "alias": [
                "InstanceAvailability"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Availability of the resource",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/instance-availability"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0056)"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP]. source[classCode=OBS, moodCode=EVN, code=\"availability\"].value"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.url",
              "short": "Location of the referenced instance(s)",
              "definition": "URI/URL specifying the location of the referenced series using WADO-RS.",
              "alias": [
                "RetrieveURI"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1115) > (0008,1190)"
                },
                {
                  "identity": "rim",
                  "map": ".text.reference"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.bodySite",
              "short": "Body part examined",
              "definition": "Body part examined. See  DICOM Part 16 Annex L for the mapping from DICOM to Snomed CT.",
              "alias": [
                "BodyPartExamined"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0018,0015)"
                },
                {
                  "identity": "rim",
                  "map": ".targetSiteCode"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.laterality",
              "short": "Body part laterality",
              "definition": "Laterality if body site is paired anatomic structure and laterality is not pre-coordinated in body site code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing body site laterality (left, right, etc.).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/bodysite-laterality"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,0060)"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.started",
              "short": "When the series started",
              "definition": "The date and time the series was started.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance",
              "short": "A single SOP instance from the series",
              "definition": "A single SOP Instance within the series, e.g. an image, or presentation state.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=DGIMG, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.number",
              "short": "The number of this instance in the series",
              "definition": "The number of instance in the series.",
              "alias": [
                "InstanceNumber"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "exampleInteger": 1,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,0013)"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP, source[classCode=OBSSER, moodCode=EVN]].sequenceNumber"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.uid",
              "short": "Formal identifier for this instance",
              "definition": "Formal identifier for this image or other content.",
              "alias": [
                "SOPInstanceUID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "exampleUri": "urn:oid:2.16.124.113543.6003.189642796.63084.16748.2599092903",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0018)"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.sopClass",
              "short": "DICOM class type",
              "definition": "DICOM instance  type.",
              "alias": [
                "SOPClassUID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "exampleUri": "urn:oid:1.2.840.10008.5.1.4.1.1.2",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0016)"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP]. source[classCode=OBS, moodCode=EVN, code=\"sop class\"].value"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.type",
              "short": "Type of instance (image etc.)",
              "definition": "A human-friendly SOP Class name.",
              "comments": "E.g. 'CT image', 'MR multi-frame', 'blending presentation'.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0004,1430)"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.title",
              "short": "Description of instance",
              "definition": "The description of the instance.",
              "comments": "Particularly for post-acquisition analytic objects, such as SR, presentation states, value mapping, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0070,0080) | (0040,A043) > (0008,0104) | (0042,0010) | (0008,0008)"
                },
                {
                  "identity": "rim",
                  "map": ".title"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.content",
              "short": "Content of the instance",
              "definition": "Content of the instance or a rendering thereof (e.g. a JPEG of an image, or an XML of a structured report). May be represented for example by inline encoding; by a URL reference to a WADO-RS service that makes the instance available; or to a FHIR Resource (e.g. Media, Document, etc.). Multiple content attachments may be used for alternate representations of the instance.",
              "comments": "Use of Attachment.data is discouraged.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text.binary"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ImagingStudy",
              "short": "A set of images produced in single study (one or more series of references images)",
              "definition": "Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context.  A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "Reference IHE radiology TF vol 2 table 4.14-1"
                },
                {
                  "identity": "rim",
                  "map": "Act[classCode=COMPOSITION, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                  "valueString": "dicom=http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.7.2.html#sect_C.7.2.1"
                }
              ],
              "path": "ImagingStudy.started",
              "short": "When the study was started",
              "definition": "Date and Time the study started.",
              "alias": [
                "StudyDate",
                "StudyTime"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "exampleDateTime": "2011-01-01T11:01:20+03:00",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0020)+(0008,0030)"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                  "valueString": "dicom=http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.2.2.html"
                }
              ],
              "path": "ImagingStudy.patient",
              "short": "Who the images are of",
              "definition": "The patient imaged in the study.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0010/*)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                  "valueString": "dicom="
                }
              ],
              "path": "ImagingStudy.uid",
              "short": "Formal identifier for the study",
              "definition": "Formal identifier for the study.",
              "alias": [
                "StudyInstanceUID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "exampleUri": "urn:oid:2.16.124.113543.6003.1154777499.30246.19789.3503430045",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,000D)"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ImagingStudy.accession",
              "short": "Related workflow identifier (\"Accession Number\")",
              "definition": "Accession Number is an identifier related to some aspect of imaging workflow and data management. Usage may vary across different institutions.  See for instance [IHE Radiology Technical Framework Volume 1 Appendix A](http://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_TF_Rev13.0_Vol1_FT_2014-07-30.pdf).",
              "alias": [
                "AccessionNumber"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0050)"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ACSN, moodCode=EVN].id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ImagingStudy.identifier",
              "short": "Other identifiers for the study",
              "definition": "Other identifiers for the study.",
              "alias": [
                "StudyID"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,0010)"
                },
                {
                  "identity": "rim",
                  "map": ".id (no means to distinguish from uid)"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ImagingStudy.order",
              "short": "Order(s) that caused this study to be performed",
              "definition": "A list of the diagnostic orders that resulted in this imaging study being performed.",
              "requirements": "To support grouped procedures (one imaging study supporting multiple ordered procedures, e.g. chest/abdomen/pelvis CT).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=FLFS].target[classCode=DGIMG, moodCode=RQO]"
                }
              ]
            },
            {
              "path": "ImagingStudy.modalityList",
              "short": "All series modality if actual acquisition modalities",
              "definition": "A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19).",
              "alias": [
                "ModalitiesInStudy"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Type of acquired data in the instance",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/dicom-cid29"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0061)"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "ImagingStudy.referrer",
              "short": "Referring physician (0008,0090)",
              "definition": "The requesting/referring physician.",
              "alias": [
                "ReferringPhysiciansName"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0090)"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=FLFS].target[classCode=DGIMG, moodCode=RQO].participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.cause"
                }
              ]
            },
            {
              "path": "ImagingStudy.availability",
              "short": "ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)",
              "definition": "Availability of study (online, offline or nearline).",
              "alias": [
                "InstanceAvailability"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Availability of the resource",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/instance-availability"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0056)"
                },
                {
                  "identity": "rim",
                  "map": "Not supported"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ImagingStudy.url",
              "short": "Retrieve URI",
              "definition": "WADO-RS resource where Study is available.",
              "alias": [
                "RetrieveURI"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1190)"
                },
                {
                  "identity": "rim",
                  "map": ".text.reference"
                }
              ]
            },
            {
              "path": "ImagingStudy.numberOfSeries",
              "short": "Number of Study Related Series",
              "definition": "Number of Series in Study.",
              "alias": [
                "NumberOfStudyRelatedSeries"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,1206)"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target[classCode=OBSSER, moodCode=EVN].repeatNumber"
                }
              ]
            },
            {
              "path": "ImagingStudy.numberOfInstances",
              "short": "Number of Study Related Instances",
              "definition": "Number of SOP Instances in Study.",
              "alias": [
                "NumberOfStudyRelatedInstances"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,1208)"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target[classCode=DGIMG, moodCode=EVN].repeatNumber"
                }
              ]
            },
            {
              "path": "ImagingStudy.procedure",
              "short": "Type of procedure performed",
              "definition": "Type of procedure performed.",
              "comments": "For the Procedure.code, LOINC radiology orderables would be a good value set to use.",
              "alias": [
                "ProcedureCodeSequence"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Procedure"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1032)"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=PROC, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "ImagingStudy.interpreter",
              "short": "Who interpreted images",
              "definition": "Who read the study and interpreted the images or other content.",
              "alias": [
                "Name of Physician(s) Reading Study"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1060)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PRF].role"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "ImagingStudy.description",
              "short": "Institution-generated description",
              "definition": "Institution-generated description or classification of the Study performed.",
              "alias": [
                "StudyDescription"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1030)"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "ImagingStudy.series",
              "short": "Each study has one or more series of instances",
              "definition": "Each study has one or more series of images or other content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBSSER, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.number",
              "short": "Numeric identifier of this series",
              "definition": "The Numeric identifier of this series in the study.",
              "alias": [
                "SeriesNumber"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "exampleInteger": 3,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,0011)"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[type=COMP, source[classCode=COMPOSITION, moodCode=EVN]].sequenceNumber"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.modality",
              "short": "The modality of the instances in the series",
              "definition": "The modality of this series sequence.",
              "alias": [
                "Modality"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Type of acquired data in the instance",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/dicom-cid29"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0060)"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.uid",
              "short": "Formal identifier for this series",
              "definition": "Formal identifier for this series.",
              "alias": [
                "SeriesInstanceUID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "exampleUri": "urn:oid:2.16.124.113543.6003.2588828330.45298.17418.2723805630",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,000E)"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.description",
              "short": "A description of the series",
              "definition": "A description of the series.",
              "alias": [
                "SeriesDescription"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "exampleString": "CT Surview 180",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,103E)"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.numberOfInstances",
              "short": "Number of Series Related Instances",
              "definition": "Number of SOP Instances in Series.",
              "alias": [
                "NumberOfSeriesRelatedInstances"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,1209)"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target[classCode=DGIMG, moodCode=EVN].repeatNumber"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.availability",
              "short": "ONLINE | OFFLINE | NEARLINE | UNAVAILABLE",
              "definition": "Availability of series (online, offline or nearline).",
              "alias": [
                "InstanceAvailability"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Availability of the resource",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/instance-availability"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0056)"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP]. source[classCode=OBS, moodCode=EVN, code=\"availability\"].value"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.url",
              "short": "Location of the referenced instance(s)",
              "definition": "URI/URL specifying the location of the referenced series using WADO-RS.",
              "alias": [
                "RetrieveURI"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,1115) > (0008,1190)"
                },
                {
                  "identity": "rim",
                  "map": ".text.reference"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.bodySite",
              "short": "Body part examined",
              "definition": "Body part examined. See  DICOM Part 16 Annex L for the mapping from DICOM to Snomed CT.",
              "alias": [
                "BodyPartExamined"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0018,0015)"
                },
                {
                  "identity": "rim",
                  "map": ".targetSiteCode"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.laterality",
              "short": "Body part laterality",
              "definition": "Laterality if body site is paired anatomic structure and laterality is not pre-coordinated in body site code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing body site laterality (left, right, etc.).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/bodysite-laterality"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,0060)"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.started",
              "short": "When the series started",
              "definition": "The date and time the series was started.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance",
              "short": "A single SOP instance from the series",
              "definition": "A single SOP Instance within the series, e.g. an image, or presentation state.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=DGIMG, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.number",
              "short": "The number of this instance in the series",
              "definition": "The number of instance in the series.",
              "alias": [
                "InstanceNumber"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "exampleInteger": 1,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0020,0013)"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP, source[classCode=OBSSER, moodCode=EVN]].sequenceNumber"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.uid",
              "short": "Formal identifier for this instance",
              "definition": "Formal identifier for this image or other content.",
              "alias": [
                "SOPInstanceUID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "exampleUri": "urn:oid:2.16.124.113543.6003.189642796.63084.16748.2599092903",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0018)"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.sopClass",
              "short": "DICOM class type",
              "definition": "DICOM instance  type.",
              "alias": [
                "SOPClassUID"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "oid"
                }
              ],
              "exampleUri": "urn:oid:1.2.840.10008.5.1.4.1.1.2",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0008,0016)"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP]. source[classCode=OBS, moodCode=EVN, code=\"sop class\"].value"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.type",
              "short": "Type of instance (image etc.)",
              "definition": "A human-friendly SOP Class name.",
              "comments": "E.g. 'CT image', 'MR multi-frame', 'blending presentation'.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0004,1430)"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.title",
              "short": "Description of instance",
              "definition": "The description of the instance.",
              "comments": "Particularly for post-acquisition analytic objects, such as SR, presentation states, value mapping, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "(0070,0080) | (0040,A043) > (0008,0104) | (0042,0010) | (0008,0008)"
                },
                {
                  "identity": "rim",
                  "map": ".title"
                }
              ]
            },
            {
              "path": "ImagingStudy.series.instance.content",
              "short": "Content of the instance",
              "definition": "Content of the instance or a rendering thereof (e.g. a JPEG of an image, or an XML of a structured report). May be represented for example by inline encoding; by a URL reference to a WADO-RS service that makes the instance available; or to a FHIR Resource (e.g. Media, Document, etc.). Multiple content attachments may be used for alternate representations of the instance.",
              "comments": "Use of Attachment.data is discouraged.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text.binary"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Immunization",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Immunization",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Immunization",
        "name": "Immunization",
        "status": "draft",
        "publisher": "Health Level Seven International (Public Health and Emergency Response)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pher/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Immunization Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "cda",
            "uri": "http://hl7.org/v3/cda",
            "name": "CDA (R2)"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Immunization",
              "short": "Immunization event information",
              "definition": "Describes the event of a patient being administered a vaccination or a record of a vaccination as reported by a patient, a clinician or another party and may include vaccine reaction information and what vaccination protocol was followed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(wasNotGiven = 'true') or explanation.reasonNotGiven.empty()"
                    }
                  ],
                  "key": "imm-2",
                  "severity": "error",
                  "human": "If immunization was administered (wasNotGiven=false) then explanation.reasonNotGiven SHALL be absent.",
                  "xpath": "not(f:wasNotGiven/@value=false() and exists(f:explanation/f:reasonNotGiven))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(wasNotGiven = 'true').not() or (reaction.empty() and explanation.reason.empty())"
                    }
                  ],
                  "key": "imm-1",
                  "severity": "error",
                  "human": "If immunization was not administred (wasNotGiven=true) then there SHALL be no reaction nor explanation.reason present",
                  "xpath": "not(f:wasNotGiven/@value=true() and (count(f:reaction) > 0 or exists(f:explanation/f:reason)))"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "VXU_V04"
                },
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "Immunization.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Immunization.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Immunization.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Immunization.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Immunization.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Immunization.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Immunization.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Immunization.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Immunization.identifier",
              "short": "Business identifier",
              "definition": "A unique identifier assigned to this immunization record.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/id"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Immunization.status",
              "short": "in-progress | on-hold | completed | entered-in-error | stopped",
              "definition": "Indicates the current status of the vaccination event.",
              "comments": "Will generally be set to show that the immunization has been completed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A set of codes indicating the current status of an Immunization",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-admin-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Immunization.date",
              "short": "Vaccination administration date",
              "definition": "Date vaccine administered or was to be administered.",
              "comments": "When immunizations are given a specific date and time should always be known.   When immunizations are patient reported, a specific date might not be known.  Although partial dates are allowed, an adult patient might not be able to recall the year a childhood immunization was given.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/effectiveTime/value"
                },
                {
                  "identity": "v2",
                  "map": "RXA-3"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "Immunization.vaccineCode",
              "short": "Vaccine product administered",
              "definition": "Vaccine that was administered or was to be administered.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The code for vaccine product administered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vaccine-code"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/consumable/manfacturedProduct/manufacturedMaterial/realmCode/code"
                },
                {
                  "identity": "v2",
                  "map": "RXA-5"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Immunization.patient",
              "short": "Who was immunized",
              "definition": "The patient who either received or did not receive the immunization.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".partipication[ttypeCode=].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Immunization.wasNotGiven",
              "short": "Flag for whether immunization was given",
              "definition": "Indicates if the vaccination was or was not given.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "[actionNegationInd=true].reasonCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Immunization.reported",
              "short": "Indicates a self-reported record",
              "definition": "True if this administration was reported rather than directly administered.",
              "comments": "May need source of reported info (e.g. parent), but leave out for now.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-9"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=INF].role[classCode=PAT] (this syntax for self-reported=true)"
                },
                {
                  "identity": "w5",
                  "map": "who.source"
                }
              ]
            },
            {
              "path": "Immunization.performer",
              "short": "Who administered vaccine",
              "definition": "Clinician who administered the vaccine.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/performer/assignedEntity/assignedPerson/name"
                },
                {
                  "identity": "v2",
                  "map": "RXA-10"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PRF].COCT_MT090102UV"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Immunization.requester",
              "short": "Who ordered vaccination",
              "definition": "Clinician who ordered the vaccination.",
              "comments": "Other participants - delegate to Provenance resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-12"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship.target[classCode=SBADM].participation[typeCode=AUT].COCT_MT090102UV"
                },
                {
                  "identity": "w5",
                  "map": "who.cause"
                }
              ]
            },
            {
              "path": "Immunization.encounter",
              "short": "Encounter administered as part of",
              "definition": "The visit or admission or other contact between patient and health care provider the immunization was performed as part of.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19"
                },
                {
                  "identity": "rim",
                  "map": "component->EncounterEvent"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Immunization.manufacturer",
              "short": "Vaccine manufacturer",
              "definition": "Name of vaccine manufacturer.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/consumable/manfacturedProduct/manufacuturerOrganization/name"
                },
                {
                  "identity": "v2",
                  "map": "RXA-17"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=ORG]"
                }
              ]
            },
            {
              "path": "Immunization.location",
              "short": "Where vaccination occurred",
              "definition": "The service delivery location where the vaccine administration occurred.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-27  (or RXA-11, deprecated as of v2.7)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=LOC].COCT_MT240000UV"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "Immunization.lotNumber",
              "short": "Vaccine lot number",
              "definition": "Lot number of the  vaccine product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/consumable/manfacturedProduct/manufacturedMaterial/lotNumberText"
                },
                {
                  "identity": "v2",
                  "map": "RXA-15"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].id"
                }
              ]
            },
            {
              "path": "Immunization.expirationDate",
              "short": "Vaccine expiration date",
              "definition": "Date vaccine batch expires.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-16"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].expirationTime"
                }
              ]
            },
            {
              "path": "Immunization.site",
              "short": "Body site vaccine  was administered",
              "definition": "Body site where vaccine was administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The site at which the vaccine was administered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/immunization-site"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/approachSiteCode/code"
                },
                {
                  "identity": "v2",
                  "map": "RXR-2"
                },
                {
                  "identity": "rim",
                  "map": "observation.targetSiteCode"
                }
              ]
            },
            {
              "path": "Immunization.route",
              "short": "How vaccine entered body",
              "definition": "The path by which the vaccine product is taken into the body.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The route by which the vaccine was administered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/immunization-route"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/routeCode/code"
                },
                {
                  "identity": "v2",
                  "map": "RXR-1"
                },
                {
                  "identity": "rim",
                  "map": ".routeCode"
                }
              ]
            },
            {
              "path": "Immunization.doseQuantity",
              "short": "Amount of vaccine administered",
              "definition": "The quantity of vaccine product that was administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-6 / RXA-7.1"
                },
                {
                  "identity": "rim",
                  "map": ".doseQuantity"
                }
              ]
            },
            {
              "path": "Immunization.note",
              "short": "Vaccination notes",
              "definition": "Extra information about the immunization that is not conveyed by the other attributes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "note"
                }
              ]
            },
            {
              "path": "Immunization.explanation",
              "short": "Administration/non-administration reasons",
              "definition": "Reasons why a vaccine was or was not administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Immunization.explanation.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Immunization.explanation.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Immunization.explanation.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Immunization.explanation.reason",
              "short": "Why immunization occurred",
              "definition": "Reasons why a vaccine was administered.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The reason why a vaccine was administered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/immunization-reason"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "[actionNegationInd=false].reasonCode"
                }
              ]
            },
            {
              "path": "Immunization.explanation.reasonNotGiven",
              "short": "Why immunization did not occur",
              "definition": "Reason why a vaccine was not administered.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The reason why a vaccine was not administered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/no-immunization-reason"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-18"
                },
                {
                  "identity": "rim",
                  "map": "[actionNegationInd=true].reasonCode"
                }
              ]
            },
            {
              "path": "Immunization.reaction",
              "short": "Details of a reaction that follows immunization",
              "definition": "Categorical data indicating that an adverse event is associated in time to an immunization.",
              "comments": "A reaction may be an indication of an allergy or intolerance and, if this is determined to be the case,  it should be recorded as a new [[[AllergyIntolerance]]] resource instance as most systems will not query against  past Immunization.reaction elements.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-3"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=obs].code"
                }
              ]
            },
            {
              "path": "Immunization.reaction.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Immunization.reaction.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Immunization.reaction.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Immunization.reaction.date",
              "short": "When reaction started",
              "definition": "Date of reaction to the immunization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-14 (ideally this would be reported in an IAM segment, but IAM is not part of the HL7 v2 VXU message - most likely would appear in OBX segments if at all)"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "Immunization.reaction.detail",
              "short": "Additional information on reaction",
              "definition": "Details of the reaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5"
                },
                {
                  "identity": "rim",
                  "map": ".value"
                }
              ]
            },
            {
              "path": "Immunization.reaction.reported",
              "short": "Indicates self-reported reaction",
              "definition": "Self-reported indicator.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "(no such concept seems to exist for allergy/adverse reaction in HL7 v2)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=INF].role[classCode=PAT] (this syntax for self-reported=true)"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol",
              "short": "What protocol was followed",
              "definition": "Contains information about the protocol(s) under which the vaccine was administered.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "(HL7 v2 doesn't seem to provide for this)"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=INST].target[classCode=SBADM]"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.doseSequence",
              "short": "Dose number within series",
              "definition": "Nominal position in a series.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=INST].target[classCode=SBADM].inboundRelationship[typeCode=COMP].sequenceNumber"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.description",
              "short": "Details of vaccine protocol",
              "definition": "Contains the description about the protocol under which the vaccine was administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=INST].target[classCode=SBADM].inboundRelationship[typeCode=COMP].source[classCode=SBADM].text"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.authority",
              "short": "Who is responsible for protocol",
              "definition": "Indicates the authority who published the protocol.  E.g. ACIP.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=INST].target[classCode=SBADM].inboundRelationship[typeCode=COMP].source[classCode=SBADM].participation[typeCode=AUT].COCT_MT090200UV"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.series",
              "short": "Name of vaccine series",
              "definition": "One possible path to achieve presumed immunity against a disease - within the context of an authority.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=INST].target[classCode=SBADM]"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.seriesDoses",
              "short": "Recommended number of doses for immunity",
              "definition": "The recommended number of doses to achieve immunity.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=INST].target[classCode=SBADM].inboundRelationship[typeCode=COMP].source[classCode=SBADM].text"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.targetDisease",
              "short": "Disease immunized against",
              "definition": "The targeted disease.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The disease target of the vaccination protocol",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-target"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship.target[classCode=OBS].code"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.doseStatus",
              "short": "Indicates if dose counts towards immunity",
              "definition": "Indicates if the immunization event should \"count\" against  the protocol.",
              "comments": "May need to differentiate between status declarations by a provider vs. a CDS engine.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The status of the vaccination protocol (i.e. should this count)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].playedRole[classCode=INGR].scopedRole.scoper[classCode=MMAT].playedRole[classCode=HLTHCHRT].participation[typeCode=SBJ].observation[classCode=OBS].value"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.doseStatusReason",
              "short": "Why dose does (not) count",
              "definition": "Provides an explanation as to why an immunization event should or should not count against the protocol.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The reason for the determining if a vaccination should count or why vaccination should not count.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-status-reason"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].playedRole[classCode=INGR].scopedRole.scoper[classCode=MMAT].playedRole[classCode=HLTHCHRT].participation[typeCode=SBJ].observation[classCode=OBS].reasonCode"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Immunization",
              "short": "Immunization event information",
              "definition": "Describes the event of a patient being administered a vaccination or a record of a vaccination as reported by a patient, a clinician or another party and may include vaccine reaction information and what vaccination protocol was followed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(wasNotGiven = 'true') or explanation.reasonNotGiven.empty()"
                    }
                  ],
                  "key": "imm-2",
                  "severity": "error",
                  "human": "If immunization was administered (wasNotGiven=false) then explanation.reasonNotGiven SHALL be absent.",
                  "xpath": "not(f:wasNotGiven/@value=false() and exists(f:explanation/f:reasonNotGiven))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(wasNotGiven = 'true').not() or (reaction.empty() and explanation.reason.empty())"
                    }
                  ],
                  "key": "imm-1",
                  "severity": "error",
                  "human": "If immunization was not administred (wasNotGiven=true) then there SHALL be no reaction nor explanation.reason present",
                  "xpath": "not(f:wasNotGiven/@value=true() and (count(f:reaction) > 0 or exists(f:explanation/f:reason)))"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "VXU_V04"
                },
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "Immunization.identifier",
              "short": "Business identifier",
              "definition": "A unique identifier assigned to this immunization record.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/id"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Immunization.status",
              "short": "in-progress | on-hold | completed | entered-in-error | stopped",
              "definition": "Indicates the current status of the vaccination event.",
              "comments": "Will generally be set to show that the immunization has been completed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A set of codes indicating the current status of an Immunization",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-admin-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Immunization.date",
              "short": "Vaccination administration date",
              "definition": "Date vaccine administered or was to be administered.",
              "comments": "When immunizations are given a specific date and time should always be known.   When immunizations are patient reported, a specific date might not be known.  Although partial dates are allowed, an adult patient might not be able to recall the year a childhood immunization was given.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/effectiveTime/value"
                },
                {
                  "identity": "v2",
                  "map": "RXA-3"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "Immunization.vaccineCode",
              "short": "Vaccine product administered",
              "definition": "Vaccine that was administered or was to be administered.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The code for vaccine product administered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vaccine-code"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/consumable/manfacturedProduct/manufacturedMaterial/realmCode/code"
                },
                {
                  "identity": "v2",
                  "map": "RXA-5"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Immunization.patient",
              "short": "Who was immunized",
              "definition": "The patient who either received or did not receive the immunization.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".partipication[ttypeCode=].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Immunization.wasNotGiven",
              "short": "Flag for whether immunization was given",
              "definition": "Indicates if the vaccination was or was not given.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "[actionNegationInd=true].reasonCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Immunization.reported",
              "short": "Indicates a self-reported record",
              "definition": "True if this administration was reported rather than directly administered.",
              "comments": "May need source of reported info (e.g. parent), but leave out for now.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-9"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=INF].role[classCode=PAT] (this syntax for self-reported=true)"
                },
                {
                  "identity": "w5",
                  "map": "who.source"
                }
              ]
            },
            {
              "path": "Immunization.performer",
              "short": "Who administered vaccine",
              "definition": "Clinician who administered the vaccine.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/performer/assignedEntity/assignedPerson/name"
                },
                {
                  "identity": "v2",
                  "map": "RXA-10"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PRF].COCT_MT090102UV"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Immunization.requester",
              "short": "Who ordered vaccination",
              "definition": "Clinician who ordered the vaccination.",
              "comments": "Other participants - delegate to Provenance resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-12"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship.target[classCode=SBADM].participation[typeCode=AUT].COCT_MT090102UV"
                },
                {
                  "identity": "w5",
                  "map": "who.cause"
                }
              ]
            },
            {
              "path": "Immunization.encounter",
              "short": "Encounter administered as part of",
              "definition": "The visit or admission or other contact between patient and health care provider the immunization was performed as part of.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19"
                },
                {
                  "identity": "rim",
                  "map": "component->EncounterEvent"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Immunization.manufacturer",
              "short": "Vaccine manufacturer",
              "definition": "Name of vaccine manufacturer.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/consumable/manfacturedProduct/manufacuturerOrganization/name"
                },
                {
                  "identity": "v2",
                  "map": "RXA-17"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=ORG]"
                }
              ]
            },
            {
              "path": "Immunization.location",
              "short": "Where vaccination occurred",
              "definition": "The service delivery location where the vaccine administration occurred.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-27  (or RXA-11, deprecated as of v2.7)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=LOC].COCT_MT240000UV"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "Immunization.lotNumber",
              "short": "Vaccine lot number",
              "definition": "Lot number of the  vaccine product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/consumable/manfacturedProduct/manufacturedMaterial/lotNumberText"
                },
                {
                  "identity": "v2",
                  "map": "RXA-15"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].id"
                }
              ]
            },
            {
              "path": "Immunization.expirationDate",
              "short": "Vaccine expiration date",
              "definition": "Date vaccine batch expires.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-16"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].expirationTime"
                }
              ]
            },
            {
              "path": "Immunization.site",
              "short": "Body site vaccine  was administered",
              "definition": "Body site where vaccine was administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The site at which the vaccine was administered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/immunization-site"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/approachSiteCode/code"
                },
                {
                  "identity": "v2",
                  "map": "RXR-2"
                },
                {
                  "identity": "rim",
                  "map": "observation.targetSiteCode"
                }
              ]
            },
            {
              "path": "Immunization.route",
              "short": "How vaccine entered body",
              "definition": "The path by which the vaccine product is taken into the body.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The route by which the vaccine was administered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/immunization-route"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/routeCode/code"
                },
                {
                  "identity": "v2",
                  "map": "RXR-1"
                },
                {
                  "identity": "rim",
                  "map": ".routeCode"
                }
              ]
            },
            {
              "path": "Immunization.doseQuantity",
              "short": "Amount of vaccine administered",
              "definition": "The quantity of vaccine product that was administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-6 / RXA-7.1"
                },
                {
                  "identity": "rim",
                  "map": ".doseQuantity"
                }
              ]
            },
            {
              "path": "Immunization.note",
              "short": "Vaccination notes",
              "definition": "Extra information about the immunization that is not conveyed by the other attributes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "note"
                }
              ]
            },
            {
              "path": "Immunization.explanation",
              "short": "Administration/non-administration reasons",
              "definition": "Reasons why a vaccine was or was not administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Immunization.explanation.reason",
              "short": "Why immunization occurred",
              "definition": "Reasons why a vaccine was administered.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The reason why a vaccine was administered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/immunization-reason"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "[actionNegationInd=false].reasonCode"
                }
              ]
            },
            {
              "path": "Immunization.explanation.reasonNotGiven",
              "short": "Why immunization did not occur",
              "definition": "Reason why a vaccine was not administered.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The reason why a vaccine was not administered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/no-immunization-reason"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-18"
                },
                {
                  "identity": "rim",
                  "map": "[actionNegationInd=true].reasonCode"
                }
              ]
            },
            {
              "path": "Immunization.reaction",
              "short": "Details of a reaction that follows immunization",
              "definition": "Categorical data indicating that an adverse event is associated in time to an immunization.",
              "comments": "A reaction may be an indication of an allergy or intolerance and, if this is determined to be the case,  it should be recorded as a new [[[AllergyIntolerance]]] resource instance as most systems will not query against  past Immunization.reaction elements.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-3"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=obs].code"
                }
              ]
            },
            {
              "path": "Immunization.reaction.date",
              "short": "When reaction started",
              "definition": "Date of reaction to the immunization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-14 (ideally this would be reported in an IAM segment, but IAM is not part of the HL7 v2 VXU message - most likely would appear in OBX segments if at all)"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "Immunization.reaction.detail",
              "short": "Additional information on reaction",
              "definition": "Details of the reaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5"
                },
                {
                  "identity": "rim",
                  "map": ".value"
                }
              ]
            },
            {
              "path": "Immunization.reaction.reported",
              "short": "Indicates self-reported reaction",
              "definition": "Self-reported indicator.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "(no such concept seems to exist for allergy/adverse reaction in HL7 v2)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=INF].role[classCode=PAT] (this syntax for self-reported=true)"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol",
              "short": "What protocol was followed",
              "definition": "Contains information about the protocol(s) under which the vaccine was administered.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "(HL7 v2 doesn't seem to provide for this)"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=INST].target[classCode=SBADM]"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.doseSequence",
              "short": "Dose number within series",
              "definition": "Nominal position in a series.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=INST].target[classCode=SBADM].inboundRelationship[typeCode=COMP].sequenceNumber"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.description",
              "short": "Details of vaccine protocol",
              "definition": "Contains the description about the protocol under which the vaccine was administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=INST].target[classCode=SBADM].inboundRelationship[typeCode=COMP].source[classCode=SBADM].text"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.authority",
              "short": "Who is responsible for protocol",
              "definition": "Indicates the authority who published the protocol.  E.g. ACIP.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=INST].target[classCode=SBADM].inboundRelationship[typeCode=COMP].source[classCode=SBADM].participation[typeCode=AUT].COCT_MT090200UV"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.series",
              "short": "Name of vaccine series",
              "definition": "One possible path to achieve presumed immunity against a disease - within the context of an authority.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=INST].target[classCode=SBADM]"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.seriesDoses",
              "short": "Recommended number of doses for immunity",
              "definition": "The recommended number of doses to achieve immunity.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=INST].target[classCode=SBADM].inboundRelationship[typeCode=COMP].source[classCode=SBADM].text"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.targetDisease",
              "short": "Disease immunized against",
              "definition": "The targeted disease.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The disease target of the vaccination protocol",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-target"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship.target[classCode=OBS].code"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.doseStatus",
              "short": "Indicates if dose counts towards immunity",
              "definition": "Indicates if the immunization event should \"count\" against  the protocol.",
              "comments": "May need to differentiate between status declarations by a provider vs. a CDS engine.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The status of the vaccination protocol (i.e. should this count)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].playedRole[classCode=INGR].scopedRole.scoper[classCode=MMAT].playedRole[classCode=HLTHCHRT].participation[typeCode=SBJ].observation[classCode=OBS].value"
                }
              ]
            },
            {
              "path": "Immunization.vaccinationProtocol.doseStatusReason",
              "short": "Why dose does (not) count",
              "definition": "Provides an explanation as to why an immunization event should or should not count against the protocol.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The reason for the determining if a vaccination should count or why vaccination should not count.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-status-reason"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].playedRole[classCode=INGR].scopedRole.scoper[classCode=MMAT].playedRole[classCode=HLTHCHRT].participation[typeCode=SBJ].observation[classCode=OBS].reasonCode"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ImmunizationRecommendation",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
        "name": "ImmunizationRecommendation",
        "status": "draft",
        "publisher": "Health Level Seven International (Public Health and Emergency Response)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pher/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ImmunizationRecommendation Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ImmunizationRecommendation",
              "short": "Guidance or advice relating to an immunization",
              "definition": "A patient's point-in-time immunization and recommendation (i.e. forecasting a patient's immunization eligibility according to a published schedule) with optional supporting justification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "VXU_V04"
                },
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration[moodCode=RMD]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImmunizationRecommendation.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImmunizationRecommendation.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ImmunizationRecommendation.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ImmunizationRecommendation.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.identifier",
              "short": "Business identifier",
              "definition": "A unique identifier assigned to this particular recommendation record.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.patient",
              "short": "Who this profile is for",
              "definition": "The patient for whom the recommendations are for.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".partipication[typeCode=SUBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation",
              "short": "Vaccine administration recommendations",
              "definition": "Vaccine administration recommendations.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode='COMP'].target[classCode=SBADM, moodCode=RMD]"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.date",
              "short": "Date recommendation created",
              "definition": "The date the immunization recommendation was created.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-15"
                },
                {
                  "identity": "rim",
                  "map": ".partipication[typeCode=AUTH].time"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.vaccineCode",
              "short": "Vaccine recommendation applies to",
              "definition": "Vaccine that pertains to the recommendation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The type of vaccine administered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vaccine-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 : OBX-3 e { 30956-7 | 38890-0 }"
                },
                {
                  "identity": "rim",
                  "map": ".partipication[typeCode=CSM].role[classCode=ADMM].code"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.doseNumber",
              "short": "Recommended dose number",
              "definition": "This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose).",
              "comments": "May need other dose concepts such as administered vs. valid.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 : OBX-3 = 30973-2"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP, .source[classCode=SBADM, moodCode=INT]].sequenceNumber"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.forecastStatus",
              "short": "Vaccine administration status",
              "definition": "Vaccine administration status.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The patient's status with respect to a vaccination protocol",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/immunization-recommendation-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 : OBX-3 = 59783-1"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ] .source[classCode=OBS, moodCode=EVN, code=\"Immunization Forecast Status\"].value"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.dateCriterion",
              "short": "Dates governing proposed immunization",
              "definition": "Vaccine date recommendations.  For example, earliest date to administer, latest date to administer, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-3: 30980-7 = Next dose recommended, 59777-3 = Latest next dose should be given, 59778-1 = Dose is overdue"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode='LIMIT'].target[classCode=OBS, moodCode=EVN, isCriterionInd=true]"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.dateCriterion.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.dateCriterion.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.dateCriterion.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.dateCriterion.code",
              "short": "Type of date",
              "definition": "Date classification of recommendation.  For example, earliest date to give, latest date to give, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Classifies date criterion with respect to conveying information about a patient's vaccination status (e.g. due date, latest to give date, etc.)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/immunization-recommendation-date-criterion"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-3"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.dateCriterion.value",
              "short": "Recommended date",
              "definition": "The date whose meaning is specified by dateCriterion.code.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5"
                },
                {
                  "identity": "rim",
                  "map": ".value"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol",
              "short": "Protocol used by recommendation",
              "definition": "Contains information about the protocol under which the vaccine was administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=INST].source[classCode=SBADM, moodCode=DEF]"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol.doseSequence",
              "short": "Dose number within sequence",
              "definition": "Indicates the nominal position in a series of the next dose.  This is the recommended dose number as per a specified protocol.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 : OBX-3 = 30973-2"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP, .source[classCode=SBADM, moodCode=DEF]].sequenceNumber"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol.description",
              "short": "Protocol details",
              "definition": "Contains the description about the protocol under which the vaccine was administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 : OBX-3 = 30956-7"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol.authority",
              "short": "Who is responsible for protocol",
              "definition": "Indicates the authority who published the protocol.  For example, ACIP.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 : OBX-3 = 59779-9"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT]"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol.series",
              "short": "Name of vaccination series",
              "definition": "One possible path to achieve presumed immunity against a disease - within the context of an authority.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-5-administered code"
                },
                {
                  "identity": "rim",
                  "map": ".title"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.supportingImmunization",
              "short": "Past immunizations supporting recommendation",
              "definition": "Immunization event history that supports the status and recommendation.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Immunization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "? No clear way to associate in HL7 v2 or IG"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=RSON].target[classCode=SBADM, moodCode=EVN, code=\"immunization\"]"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.supportingPatientInformation",
              "short": "Patient observations supporting recommendation",
              "definition": "Patient Information that supports the status and recommendation.  This includes patient observations, adverse reactions and allergy/intolerance information.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX If OBX is associated with ( RXA : RXA-5-administered code = '998^No vaccine administered^CVX'), could contain the reason the vaccine was not administered"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=RSON].target[classCode=OBS, moodCode=EVN]"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ImmunizationRecommendation",
              "short": "Guidance or advice relating to an immunization",
              "definition": "A patient's point-in-time immunization and recommendation (i.e. forecasting a patient's immunization eligibility according to a published schedule) with optional supporting justification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "VXU_V04"
                },
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration[moodCode=RMD]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.identifier",
              "short": "Business identifier",
              "definition": "A unique identifier assigned to this particular recommendation record.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.patient",
              "short": "Who this profile is for",
              "definition": "The patient for whom the recommendations are for.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".partipication[typeCode=SUBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation",
              "short": "Vaccine administration recommendations",
              "definition": "Vaccine administration recommendations.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode='COMP'].target[classCode=SBADM, moodCode=RMD]"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.date",
              "short": "Date recommendation created",
              "definition": "The date the immunization recommendation was created.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-15"
                },
                {
                  "identity": "rim",
                  "map": ".partipication[typeCode=AUTH].time"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.vaccineCode",
              "short": "Vaccine recommendation applies to",
              "definition": "Vaccine that pertains to the recommendation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The type of vaccine administered",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vaccine-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 : OBX-3 e { 30956-7 | 38890-0 }"
                },
                {
                  "identity": "rim",
                  "map": ".partipication[typeCode=CSM].role[classCode=ADMM].code"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.doseNumber",
              "short": "Recommended dose number",
              "definition": "This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose).",
              "comments": "May need other dose concepts such as administered vs. valid.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 : OBX-3 = 30973-2"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP, .source[classCode=SBADM, moodCode=INT]].sequenceNumber"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.forecastStatus",
              "short": "Vaccine administration status",
              "definition": "Vaccine administration status.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The patient's status with respect to a vaccination protocol",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/immunization-recommendation-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 : OBX-3 = 59783-1"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ] .source[classCode=OBS, moodCode=EVN, code=\"Immunization Forecast Status\"].value"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.dateCriterion",
              "short": "Dates governing proposed immunization",
              "definition": "Vaccine date recommendations.  For example, earliest date to administer, latest date to administer, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-3: 30980-7 = Next dose recommended, 59777-3 = Latest next dose should be given, 59778-1 = Dose is overdue"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode='LIMIT'].target[classCode=OBS, moodCode=EVN, isCriterionInd=true]"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.dateCriterion.code",
              "short": "Type of date",
              "definition": "Date classification of recommendation.  For example, earliest date to give, latest date to give, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Classifies date criterion with respect to conveying information about a patient's vaccination status (e.g. due date, latest to give date, etc.)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/immunization-recommendation-date-criterion"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-3"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.dateCriterion.value",
              "short": "Recommended date",
              "definition": "The date whose meaning is specified by dateCriterion.code.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5"
                },
                {
                  "identity": "rim",
                  "map": ".value"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol",
              "short": "Protocol used by recommendation",
              "definition": "Contains information about the protocol under which the vaccine was administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=INST].source[classCode=SBADM, moodCode=DEF]"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol.doseSequence",
              "short": "Dose number within sequence",
              "definition": "Indicates the nominal position in a series of the next dose.  This is the recommended dose number as per a specified protocol.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 : OBX-3 = 30973-2"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP, .source[classCode=SBADM, moodCode=DEF]].sequenceNumber"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol.description",
              "short": "Protocol details",
              "definition": "Contains the description about the protocol under which the vaccine was administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 : OBX-3 = 30956-7"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol.authority",
              "short": "Who is responsible for protocol",
              "definition": "Indicates the authority who published the protocol.  For example, ACIP.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 : OBX-3 = 59779-9"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT]"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.protocol.series",
              "short": "Name of vaccination series",
              "definition": "One possible path to achieve presumed immunity against a disease - within the context of an authority.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-5-administered code"
                },
                {
                  "identity": "rim",
                  "map": ".title"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.supportingImmunization",
              "short": "Past immunizations supporting recommendation",
              "definition": "Immunization event history that supports the status and recommendation.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Immunization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "? No clear way to associate in HL7 v2 or IG"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=RSON].target[classCode=SBADM, moodCode=EVN, code=\"immunization\"]"
                }
              ]
            },
            {
              "path": "ImmunizationRecommendation.recommendation.supportingPatientInformation",
              "short": "Patient observations supporting recommendation",
              "definition": "Patient Information that supports the status and recommendation.  This includes patient observations, adverse reactions and allergy/intolerance information.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX If OBX is associated with ( RXA : RXA-5-administered code = '998^No vaccine administered^CVX'), could contain the reason the vaccine was not administered"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=RSON].target[classCode=OBS, moodCode=EVN]"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ImplementationGuide",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ImplementationGuide",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ImplementationGuide",
        "name": "ImplementationGuide",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ImplementationGuide Resource",
        "requirements": "An implementation guide is able to define default profiles that must apply to any use of a resource, so validation services may need to take one or more implementation guide resources when validating.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ImplementationGuide",
              "short": "A set of rules about how FHIR is used",
              "definition": "A set of rules or how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole, and to publish a computable definition of all the parts.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "conformance.misc"
                }
              ]
            },
            {
              "path": "ImplementationGuide.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ImplementationGuide.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ImplementationGuide.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImplementationGuide.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImplementationGuide.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImplementationGuide.url",
              "short": "Absolute URL used to reference this Implementation Guide",
              "definition": "An absolute URL that is used to identify this implementation guide when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this implementation guide is (or will be) published.",
              "requirements": "This is required to allow hosting Implementation Guides on multiple different servers, and to allow for the editorial process.",
              "alias": [
                "url",
                "authoritative-url",
                "destination",
                "identity"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ImplementationGuide.version",
              "short": "Logical id for this version of the Implementation Guide",
              "definition": "The identifier that is used to identify this version of the Implementation Guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Implementation Guide author manually.",
              "requirements": "There may be multiple resource versions of the Implementation Guide that have this same identifier. The resource version id will change for technical reasons, whereas the stated version number needs to be under the author's control.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "ImplementationGuide.name",
              "short": "Informal name for this Implementation Guide",
              "definition": "A free text natural language name identifying the Implementation Guide.",
              "comments": "Not expected to be globally unique.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.status",
              "short": "draft | active | retired",
              "definition": "The status of the Implementation Guide.",
              "requirements": "Allows filtering of Implementation Guides that are appropriate for use vs. not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ImplementationGuide.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This Implementation Guide was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "requirements": "Allows filtering of Implementation Guides that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "ImplementationGuide.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the implementation guide.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the implementation guide.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "ImplementationGuide.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImplementationGuide.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImplementationGuide.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImplementationGuide.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the implementation guide.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.date",
              "short": "Date for this version of the Implementation Guide",
              "definition": "The date this version of the implementation guide was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "ImplementationGuide.description",
              "short": "Natural language description of the Implementation Guide",
              "definition": "A free text natural language description of the Implementation Guide and its use.",
              "comments": "This field can be used for things such as why the Implementation Guide was written, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc.  It is *not* a rendering of the Implementation Guide as conveyed in Implementation Guide.text. This item SHOULD be populated unless the information is available from context.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.useContext",
              "short": "The implementation guide is intended to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of implementation guides. The most common use of this element is to represent the country / jurisdiction for which this implementation guide was defined.",
              "requirements": "Assist in searching for appropriate implementation guide.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              }
            },
            {
              "path": "ImplementationGuide.copyright",
              "short": "Use and/or publishing restrictions",
              "definition": "A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.",
              "alias": [
                "License",
                "Restrictions"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ImplementationGuide.fhirVersion",
              "short": "FHIR Version this Implementation Guide targets",
              "definition": "The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.2.0 for this version.",
              "comments": "An Implementation Guide should specify the target it applies to, as ImplementationGuides are rarely valid across multiple versions of FHIR.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.dependency",
              "short": "Another Implementation guide this depends on",
              "definition": "Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.dependency.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImplementationGuide.dependency.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImplementationGuide.dependency.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImplementationGuide.dependency.type",
              "short": "reference | inclusion",
              "definition": "How the dependency is represented when the guide is published.",
              "comments": "For information about processing included guides, see [Including Guides]{implementationguide.html#include}.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "How a dependency is represented when the guide is published.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/guide-dependency-type"
                }
              }
            },
            {
              "path": "ImplementationGuide.dependency.uri",
              "short": "Where to find dependency",
              "definition": "Where the dependency is located.",
              "comments": "When a guide is published, and the type is 'include', this will be a relative reference within the guide.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.package",
              "short": "Group of resources as used in .page.package",
              "definition": "A logical group of resources. Logical groups can be used when building pages.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.package.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImplementationGuide.package.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImplementationGuide.package.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImplementationGuide.package.name",
              "short": "Name used .page.package",
              "definition": "The name for the group, as used in page.package.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.package.description",
              "short": "Human readable text describing the package",
              "definition": "Human readable text describing the package.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ImplementationGuide.package.resource",
              "short": "Resource in the implementation guide",
              "definition": "A resource that is part of the implementation guide. Conformance resources (value set, structure definition, conformance statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.package.resource.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImplementationGuide.package.resource.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImplementationGuide.package.resource.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImplementationGuide.package.resource.purpose",
              "short": "example | terminology | profile | extension | dictionary | logical",
              "definition": "Why the resource is included in the guide.",
              "comments": "The purpose alters the way that a resource is handled when a guide is built. At present, only value set and concept map resources are allowed for terminology resources, and only StructureDefinition, SearchParameter, and OperationDefinition for profile. Dictionaries must be bundles of DataElement or Medication at this time.",
              "requirements": "This element is provided so that implementation guide tooling does not have to guess the purpose of including a resource in the implementation guide based on the type or context.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Why a resource is included in the guide.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/guide-resource-purpose"
                }
              }
            },
            {
              "path": "ImplementationGuide.package.resource.name",
              "short": "Human Name for the resource",
              "definition": "A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.package.resource.description",
              "short": "Reason why included in guide",
              "definition": "A description of the reason that a resource has been included in the implementation guide.",
              "comments": "This is mostly used with examples to explain why it is present (though they can have extensive comments in the examples).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ImplementationGuide.package.resource.acronym",
              "short": "Short code to identify the resource",
              "definition": "A short code that may be used to identify the resource throughout the implementation guide.",
              "comments": "This is used when generating schematrons from profiles, for example, but has other uses. Publishing tooling may autogenerate this value, but a human assigned value is more useful. This value must be unique within an implementation guide (across included guides as well).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ImplementationGuide.package.resource.source[x]",
              "short": "Location of the resource",
              "definition": "Where this resource is found.",
              "comments": "Usually this is a relative URL that locates the resource within the implementation guide. If you authoring an implementation guide, and will publish it using the FHIR publication tooling, use a URI that may point to a resource, or to one of various alternative representations (e.g. spreadsheet). The tooling will convert this when it publishes it.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.package.resource.exampleFor",
              "short": "Resource this is an example of (if applicable)",
              "definition": "Another resource that this resource is an example for. This is mostly used for resources that are included as examples of StructureDefinitions.",
              "comments": "Examples:\n* StructureDefinition -> Any\n* ValueSet -> expansion\n* OperationDefinition -> Parameters\n* Questionnaire -> QuestionnaireResponse.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "ImplementationGuide.global",
              "short": "Profiles that apply globally",
              "definition": "A set of profiles that all resources covered by this implementation guide must conform to.",
              "comments": "See [Default Profiles](implementationguide.html#default) for a discussion of which resources are 'covered' by an implementation guide.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.global.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImplementationGuide.global.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImplementationGuide.global.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImplementationGuide.global.type",
              "short": "Type this profiles applies to",
              "definition": "The type of resource that all instances must conform to.",
              "comments": "The type must match that of the profile that is referred to, but is made explicit here as a denormalization so that a system processing the implementation guide resource knows which resources the profile applies to even if the profile itself is not available.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "ImplementationGuide.global.profile",
              "short": "Profile that all resources must conform to",
              "definition": "A reference to the profile that all instances must conform to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.binary",
              "short": "Image, css, script, etc.",
              "definition": "A binary file that is included in the  implementation guide when it is published.",
              "comments": "This is principally included for the FHIR publishing tool, but may be useful when extracting and reusing content from the implementation guide.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ImplementationGuide.page",
              "name": "page",
              "short": "Page/Section in the Guide",
              "definition": "A page / section in the implementation guide. The root page is the implementation guide home page.",
              "comments": "Pages automatically become sections if they have sub-pages. By convention, the home page is called index.html.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.page.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImplementationGuide.page.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ImplementationGuide.page.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ImplementationGuide.page.source",
              "short": "Where to find that page",
              "definition": "The source address for the page.",
              "comments": "The publishing tool will autogenerate source for list (source = n/a), and inject included implementations for include (source = uri of guide to include).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.page.name",
              "short": "Short name shown for navigational assistance",
              "definition": "A short name used to represent this page in navigational structures such as table of contents, bread crumbs, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.page.kind",
              "short": "page | example | list | include | directory | dictionary | toc | resource",
              "definition": "The kind of page that this is. Some pages are autogenerated (list, example), and other kinds are of interest so that tools can navigate the user to the page of interest.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The kind of an included page.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/guide-page-kind"
                }
              }
            },
            {
              "path": "ImplementationGuide.page.type",
              "short": "Kind of resource to include in the list",
              "definition": "For constructed pages, what kind of resources to include in the list.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "ImplementationGuide.page.package",
              "short": "Name of package to include",
              "definition": "For constructed pages, a list of packages to include in the page (or else empty for everything).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ImplementationGuide.page.format",
              "short": "Format of the page (e.g. html, markdown, etc.)",
              "definition": "The format of the page.",
              "comments": "This is primarily for the publishing tool, that will convert all pages to html format. HTML pages are pre-processed, see xxxx.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The mime type of an attachment. Any valid mime type is allowed.",
                "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt"
              }
            },
            {
              "path": "ImplementationGuide.page.page",
              "short": "Nested Pages / Sections",
              "definition": "Nested Pages/Sections under this page.",
              "comments": "The implementation guide breadcrumbs are generated from this structure.",
              "min": 0,
              "max": "*",
              "nameReference": "page"
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ImplementationGuide",
              "short": "A set of rules about how FHIR is used",
              "definition": "A set of rules or how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole, and to publish a computable definition of all the parts.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "conformance.misc"
                }
              ]
            },
            {
              "path": "ImplementationGuide.url",
              "short": "Absolute URL used to reference this Implementation Guide",
              "definition": "An absolute URL that is used to identify this implementation guide when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this implementation guide is (or will be) published.",
              "requirements": "This is required to allow hosting Implementation Guides on multiple different servers, and to allow for the editorial process.",
              "alias": [
                "url",
                "authoritative-url",
                "destination",
                "identity"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ImplementationGuide.version",
              "short": "Logical id for this version of the Implementation Guide",
              "definition": "The identifier that is used to identify this version of the Implementation Guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Implementation Guide author manually.",
              "requirements": "There may be multiple resource versions of the Implementation Guide that have this same identifier. The resource version id will change for technical reasons, whereas the stated version number needs to be under the author's control.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "ImplementationGuide.name",
              "short": "Informal name for this Implementation Guide",
              "definition": "A free text natural language name identifying the Implementation Guide.",
              "comments": "Not expected to be globally unique.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.status",
              "short": "draft | active | retired",
              "definition": "The status of the Implementation Guide.",
              "requirements": "Allows filtering of Implementation Guides that are appropriate for use vs. not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ImplementationGuide.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This Implementation Guide was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "requirements": "Allows filtering of Implementation Guides that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "ImplementationGuide.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the implementation guide.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the implementation guide.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "ImplementationGuide.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the implementation guide.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.date",
              "short": "Date for this version of the Implementation Guide",
              "definition": "The date this version of the implementation guide was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "ImplementationGuide.description",
              "short": "Natural language description of the Implementation Guide",
              "definition": "A free text natural language description of the Implementation Guide and its use.",
              "comments": "This field can be used for things such as why the Implementation Guide was written, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc.  It is *not* a rendering of the Implementation Guide as conveyed in Implementation Guide.text. This item SHOULD be populated unless the information is available from context.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.useContext",
              "short": "The implementation guide is intended to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of implementation guides. The most common use of this element is to represent the country / jurisdiction for which this implementation guide was defined.",
              "requirements": "Assist in searching for appropriate implementation guide.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              }
            },
            {
              "path": "ImplementationGuide.copyright",
              "short": "Use and/or publishing restrictions",
              "definition": "A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.",
              "alias": [
                "License",
                "Restrictions"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ImplementationGuide.fhirVersion",
              "short": "FHIR Version this Implementation Guide targets",
              "definition": "The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.2.0 for this version.",
              "comments": "An Implementation Guide should specify the target it applies to, as ImplementationGuides are rarely valid across multiple versions of FHIR.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.dependency",
              "short": "Another Implementation guide this depends on",
              "definition": "Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.dependency.type",
              "short": "reference | inclusion",
              "definition": "How the dependency is represented when the guide is published.",
              "comments": "For information about processing included guides, see [Including Guides]{implementationguide.html#include}.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "How a dependency is represented when the guide is published.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/guide-dependency-type"
                }
              }
            },
            {
              "path": "ImplementationGuide.dependency.uri",
              "short": "Where to find dependency",
              "definition": "Where the dependency is located.",
              "comments": "When a guide is published, and the type is 'include', this will be a relative reference within the guide.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.package",
              "short": "Group of resources as used in .page.package",
              "definition": "A logical group of resources. Logical groups can be used when building pages.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.package.name",
              "short": "Name used .page.package",
              "definition": "The name for the group, as used in page.package.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.package.description",
              "short": "Human readable text describing the package",
              "definition": "Human readable text describing the package.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ImplementationGuide.package.resource",
              "short": "Resource in the implementation guide",
              "definition": "A resource that is part of the implementation guide. Conformance resources (value set, structure definition, conformance statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.package.resource.purpose",
              "short": "example | terminology | profile | extension | dictionary | logical",
              "definition": "Why the resource is included in the guide.",
              "comments": "The purpose alters the way that a resource is handled when a guide is built. At present, only value set and concept map resources are allowed for terminology resources, and only StructureDefinition, SearchParameter, and OperationDefinition for profile. Dictionaries must be bundles of DataElement or Medication at this time.",
              "requirements": "This element is provided so that implementation guide tooling does not have to guess the purpose of including a resource in the implementation guide based on the type or context.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Why a resource is included in the guide.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/guide-resource-purpose"
                }
              }
            },
            {
              "path": "ImplementationGuide.package.resource.name",
              "short": "Human Name for the resource",
              "definition": "A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.package.resource.description",
              "short": "Reason why included in guide",
              "definition": "A description of the reason that a resource has been included in the implementation guide.",
              "comments": "This is mostly used with examples to explain why it is present (though they can have extensive comments in the examples).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ImplementationGuide.package.resource.acronym",
              "short": "Short code to identify the resource",
              "definition": "A short code that may be used to identify the resource throughout the implementation guide.",
              "comments": "This is used when generating schematrons from profiles, for example, but has other uses. Publishing tooling may autogenerate this value, but a human assigned value is more useful. This value must be unique within an implementation guide (across included guides as well).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ImplementationGuide.package.resource.source[x]",
              "short": "Location of the resource",
              "definition": "Where this resource is found.",
              "comments": "Usually this is a relative URL that locates the resource within the implementation guide. If you authoring an implementation guide, and will publish it using the FHIR publication tooling, use a URI that may point to a resource, or to one of various alternative representations (e.g. spreadsheet). The tooling will convert this when it publishes it.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.package.resource.exampleFor",
              "short": "Resource this is an example of (if applicable)",
              "definition": "Another resource that this resource is an example for. This is mostly used for resources that are included as examples of StructureDefinitions.",
              "comments": "Examples:\n* StructureDefinition -> Any\n* ValueSet -> expansion\n* OperationDefinition -> Parameters\n* Questionnaire -> QuestionnaireResponse.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "ImplementationGuide.global",
              "short": "Profiles that apply globally",
              "definition": "A set of profiles that all resources covered by this implementation guide must conform to.",
              "comments": "See [Default Profiles](implementationguide.html#default) for a discussion of which resources are 'covered' by an implementation guide.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.global.type",
              "short": "Type this profiles applies to",
              "definition": "The type of resource that all instances must conform to.",
              "comments": "The type must match that of the profile that is referred to, but is made explicit here as a denormalization so that a system processing the implementation guide resource knows which resources the profile applies to even if the profile itself is not available.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "ImplementationGuide.global.profile",
              "short": "Profile that all resources must conform to",
              "definition": "A reference to the profile that all instances must conform to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.binary",
              "short": "Image, css, script, etc.",
              "definition": "A binary file that is included in the  implementation guide when it is published.",
              "comments": "This is principally included for the FHIR publishing tool, but may be useful when extracting and reusing content from the implementation guide.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ImplementationGuide.page",
              "name": "page",
              "short": "Page/Section in the Guide",
              "definition": "A page / section in the implementation guide. The root page is the implementation guide home page.",
              "comments": "Pages automatically become sections if they have sub-pages. By convention, the home page is called index.html.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.page.source",
              "short": "Where to find that page",
              "definition": "The source address for the page.",
              "comments": "The publishing tool will autogenerate source for list (source = n/a), and inject included implementations for include (source = uri of guide to include).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.page.name",
              "short": "Short name shown for navigational assistance",
              "definition": "A short name used to represent this page in navigational structures such as table of contents, bread crumbs, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ImplementationGuide.page.kind",
              "short": "page | example | list | include | directory | dictionary | toc | resource",
              "definition": "The kind of page that this is. Some pages are autogenerated (list, example), and other kinds are of interest so that tools can navigate the user to the page of interest.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The kind of an included page.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/guide-page-kind"
                }
              }
            },
            {
              "path": "ImplementationGuide.page.type",
              "short": "Kind of resource to include in the list",
              "definition": "For constructed pages, what kind of resources to include in the list.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "ImplementationGuide.page.package",
              "short": "Name of package to include",
              "definition": "For constructed pages, a list of packages to include in the page (or else empty for everything).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ImplementationGuide.page.format",
              "short": "Format of the page (e.g. html, markdown, etc.)",
              "definition": "The format of the page.",
              "comments": "This is primarily for the publishing tool, that will convert all pages to html format. HTML pages are pre-processed, see xxxx.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The mime type of an attachment. Any valid mime type is allowed.",
                "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt"
              }
            },
            {
              "path": "ImplementationGuide.page.page",
              "short": "Nested Pages / Sections",
              "definition": "Nested Pages/Sections under this page.",
              "comments": "The implementation guide breadcrumbs are generated from this structure.",
              "min": 0,
              "max": "*",
              "nameReference": "page"
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Library",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Library",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Library",
        "name": "Library",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Decision Support)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Library Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Library",
              "short": "Represents a library of quality improvement components",
              "definition": "The Library resource provides a representation container for knowledge artifact component definitions. It is effectively an exposure of the header information for a CQL/ELM library.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Library.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "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 may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Library.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Library.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Library.moduleMetadata",
              "short": "The metadata information for the library",
              "definition": "A reference to a ModuleMetadata resource containing publication, description, and supporting information for the library.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleMetadata"
                  ]
                }
              ]
            },
            {
              "path": "Library.moduleDefinition",
              "short": "The header information for the library",
              "definition": "A reference to a ModuleDefinition resource describing the header information for the library.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleDefinition"
                  ]
                }
              ]
            },
            {
              "path": "Library.document",
              "short": "The content of the library",
              "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 content is expected to be a CQL or ELM document.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Library",
              "short": "Represents a library of quality improvement components",
              "definition": "The Library resource provides a representation container for knowledge artifact component definitions. It is effectively an exposure of the header information for a CQL/ELM library.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "Library.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Library.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Library.moduleMetadata",
              "short": "The metadata information for the library",
              "definition": "A reference to a ModuleMetadata resource containing publication, description, and supporting information for the library.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleMetadata"
                  ]
                }
              ]
            },
            {
              "path": "Library.moduleDefinition",
              "short": "The header information for the library",
              "definition": "A reference to a ModuleDefinition resource describing the header information for the library.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleDefinition"
                  ]
                }
              ]
            },
            {
              "path": "Library.document",
              "short": "The content of the library",
              "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 content is expected to be a CQL or ELM document.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/List-find",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "List-find",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/List-find",
        "name": "Find a functional list",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "This operation allows a client to find an identified list for a particular function by its function. The operation takes two parameters, the identity of a patient, and the name of a functional list.   The list of defined functional lists can be found at [Current Resource Lists](lifecycle.html#lists). Applications are not required to support all the lists, and may define additional lists of their own.   If the system is able to locate a list that serves the identified purpose, it returns it as the body of the response with a 200 OK status. If the resource cannot be located, the server returns a 404 not found (optionally with an OperationOutcome resource)",
        "code": "find",
        "notes": "Note that servers may support searching by a functional list, and not support this operation that allows clients to find the list directly",
        "system": false,
        "type": [
          "List"
        ],
        "instance": false,
        "parameter": [
          {
            "name": "patient",
            "use": "in",
            "min": 1,
            "max": "1",
            "documentation": "The id of a patient resource located on the server on which this operation is executed",
            "type": "id"
          },
          {
            "name": "name",
            "use": "in",
            "min": 1,
            "max": "1",
            "documentation": "The code for the functional list that is being found",
            "type": "code"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/List",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "List",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/List",
        "name": "List",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for List Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "List",
              "short": "Information summarized from a list of other resources",
              "definition": "A set of information summarized from a list of other resources.",
              "alias": [
                "Collection",
                "WorkingList",
                "Organizer"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "mode = 'changes' or entry.deleted.empty()"
                    }
                  ],
                  "key": "lst-2",
                  "severity": "error",
                  "human": "The deleted flag can only be used if the mode of the list is \"changes\"",
                  "xpath": "(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "emptyReason.empty() or entry.empty()"
                    }
                  ],
                  "key": "lst-1",
                  "severity": "error",
                  "human": "A list can only have an emptyReason if it is empty",
                  "xpath": "not(exists(f:emptyReason) and exists(f:entry))"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act[classCode<ORG,moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.documents"
                }
              ]
            },
            {
              "path": "List.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "List.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "List.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "List.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "List.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "List.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "List.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "List.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "List.identifier",
              "short": "Business identifier",
              "definition": "Identifier for the List assigned for business purposes outside the context of FHIR.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "List.title",
              "short": "Descriptive name for the list",
              "definition": "A label for the list assigned by the author.",
              "requirements": "Allows customization beyond just the code identifying the kind of list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "exampleString": "Dr. Jane's Patients",
              "isSummary": true
            },
            {
              "path": "List.code",
              "short": "What the purpose of this list is",
              "definition": "This code defines the purpose of the list - why it was created.",
              "comments": "If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code.",
              "requirements": "Lists often contain subsets of resources rather than an exhaustive list.  The code identifies what type of subset is included.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "What the purpose of a list is",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-example-codes"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "List.subject",
              "short": "If all resources have the same subject",
              "definition": "The common subject (or patient) of the resources that are in the list, if there is one.",
              "comments": "Some purely arbitrary lists do not have a common subject, so this is optional.",
              "requirements": "The primary purpose of listing the subject explicitly is to help with finding the right list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode<SUB].role (and sometimes .player)"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "List.source",
              "short": "Who and/or what defined the list contents (aka Author)",
              "definition": "The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.",
              "comments": "The primary source is the entity that made the decisions what items are in the list. This may be software or user.",
              "requirements": "Allows follow-up as well as context.",
              "alias": [
                "Author"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode<AUT].role[classCode=REL].player[classCode=PSN,determinerCode=INST] or .participation[typeCode<AUT].role[classCode=REL].player[classCode=DEV,determinerCode=INST]"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "List.encounter",
              "short": "Context in which list created",
              "definition": "The encounter that is the context in which this list was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "List.status",
              "short": "current | retired | entered-in-error",
              "definition": "Indicates the current state of this list.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The current state of the list",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "List.date",
              "short": "When the list was prepared",
              "definition": "The date that the list was prepared.",
              "comments": "The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs.",
              "requirements": "Identifies how current the list is which affects relevance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode<AUT].time[type=TS]"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "List.orderedBy",
              "short": "What order the list has",
              "definition": "What order applies to the items in the list.",
              "comments": "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "What order applies to the items in a list",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-order"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
                }
              ]
            },
            {
              "path": "List.mode",
              "short": "working | snapshot | changes",
              "definition": "How this 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.",
              "requirements": "Lists are used in various ways, and it must be known in what way it is safe to use them.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The processing mode that applies to this list",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-mode"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "List.note",
              "short": "Comments about the list",
              "definition": "Comments that apply to the overall list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "List.entry",
              "short": "Entries in the list",
              "definition": "Entries in this list.",
              "comments": "If there are no entries in the list, an emptyReason SHOULD be provided.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "lst-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
                }
              ]
            },
            {
              "path": "List.entry.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "List.entry.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "List.entry.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "List.entry.flag",
              "short": "Status/Workflow information about this item",
              "definition": "The flag allows the system constructing the list to indicate the role and significance of the item in the list.",
              "comments": "The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is \"changes\".",
              "requirements": "This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes that provide further information about the reason and meaning of the item in the list",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-item-flag"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
                }
              ]
            },
            {
              "path": "List.entry.deleted",
              "short": "If this item is actually marked as deleted",
              "definition": "True if this item is marked as deleted in the list.",
              "comments": "If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is \"changes\". A deleted entry should be displayed in narrative as deleted.",
              "requirements": "The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as \"deleted\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false,
              "condition": [
                "lst-2"
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "added: .updateMode=(\"A\",\"AR\")  retained: .updateMode=\"NC\"  updated: .updateMode=\"R\"  deleted: .updateMode=\"D\""
                }
              ]
            },
            {
              "path": "List.entry.date",
              "short": "When item added to list",
              "definition": "When this item was added to the list.",
              "comments": "This is only useful and meaningful when the mode is \"working\".",
              "requirements": "The date may be significant for understanding the meaning of items in a working list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".availabilityTime"
                }
              ]
            },
            {
              "path": "List.entry.item",
              "short": "Actual entry",
              "definition": "A reference to the actual resource from which data was derived.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".target or .role or .role.entity"
                }
              ]
            },
            {
              "path": "List.emptyReason",
              "short": "Why list is empty",
              "definition": "If the list is empty, why the list is empty.",
              "comments": "The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list 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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "lst-1"
              ],
              "binding": {
                "strength": "preferred",
                "description": "If a list is empty, why it is empty",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-empty-reason"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ,code<{ListEmptyReason}].value[type=CD]"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "List",
              "short": "Information summarized from a list of other resources",
              "definition": "A set of information summarized from a list of other resources.",
              "alias": [
                "Collection",
                "WorkingList",
                "Organizer"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "mode = 'changes' or entry.deleted.empty()"
                    }
                  ],
                  "key": "lst-2",
                  "severity": "error",
                  "human": "The deleted flag can only be used if the mode of the list is \"changes\"",
                  "xpath": "(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "emptyReason.empty() or entry.empty()"
                    }
                  ],
                  "key": "lst-1",
                  "severity": "error",
                  "human": "A list can only have an emptyReason if it is empty",
                  "xpath": "not(exists(f:emptyReason) and exists(f:entry))"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act[classCode<ORG,moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.documents"
                }
              ]
            },
            {
              "path": "List.identifier",
              "short": "Business identifier",
              "definition": "Identifier for the List assigned for business purposes outside the context of FHIR.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "List.title",
              "short": "Descriptive name for the list",
              "definition": "A label for the list assigned by the author.",
              "requirements": "Allows customization beyond just the code identifying the kind of list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "exampleString": "Dr. Jane's Patients",
              "isSummary": true
            },
            {
              "path": "List.code",
              "short": "What the purpose of this list is",
              "definition": "This code defines the purpose of the list - why it was created.",
              "comments": "If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code.",
              "requirements": "Lists often contain subsets of resources rather than an exhaustive list.  The code identifies what type of subset is included.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "What the purpose of a list is",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-example-codes"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "List.subject",
              "short": "If all resources have the same subject",
              "definition": "The common subject (or patient) of the resources that are in the list, if there is one.",
              "comments": "Some purely arbitrary lists do not have a common subject, so this is optional.",
              "requirements": "The primary purpose of listing the subject explicitly is to help with finding the right list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode<SUB].role (and sometimes .player)"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "List.source",
              "short": "Who and/or what defined the list contents (aka Author)",
              "definition": "The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.",
              "comments": "The primary source is the entity that made the decisions what items are in the list. This may be software or user.",
              "requirements": "Allows follow-up as well as context.",
              "alias": [
                "Author"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode<AUT].role[classCode=REL].player[classCode=PSN,determinerCode=INST] or .participation[typeCode<AUT].role[classCode=REL].player[classCode=DEV,determinerCode=INST]"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "List.encounter",
              "short": "Context in which list created",
              "definition": "The encounter that is the context in which this list was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "List.status",
              "short": "current | retired | entered-in-error",
              "definition": "Indicates the current state of this list.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The current state of the list",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "List.date",
              "short": "When the list was prepared",
              "definition": "The date that the list was prepared.",
              "comments": "The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs.",
              "requirements": "Identifies how current the list is which affects relevance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode<AUT].time[type=TS]"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "List.orderedBy",
              "short": "What order the list has",
              "definition": "What order applies to the items in the list.",
              "comments": "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "What order applies to the items in a list",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-order"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
                }
              ]
            },
            {
              "path": "List.mode",
              "short": "working | snapshot | changes",
              "definition": "How this 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.",
              "requirements": "Lists are used in various ways, and it must be known in what way it is safe to use them.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The processing mode that applies to this list",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-mode"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "List.note",
              "short": "Comments about the list",
              "definition": "Comments that apply to the overall list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "List.entry",
              "short": "Entries in the list",
              "definition": "Entries in this list.",
              "comments": "If there are no entries in the list, an emptyReason SHOULD be provided.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "lst-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
                }
              ]
            },
            {
              "path": "List.entry.flag",
              "short": "Status/Workflow information about this item",
              "definition": "The flag allows the system constructing the list to indicate the role and significance of the item in the list.",
              "comments": "The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is \"changes\".",
              "requirements": "This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes that provide further information about the reason and meaning of the item in the list",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-item-flag"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
                }
              ]
            },
            {
              "path": "List.entry.deleted",
              "short": "If this item is actually marked as deleted",
              "definition": "True if this item is marked as deleted in the list.",
              "comments": "If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is \"changes\". A deleted entry should be displayed in narrative as deleted.",
              "requirements": "The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as \"deleted\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false,
              "condition": [
                "lst-2"
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "added: .updateMode=(\"A\",\"AR\")  retained: .updateMode=\"NC\"  updated: .updateMode=\"R\"  deleted: .updateMode=\"D\""
                }
              ]
            },
            {
              "path": "List.entry.date",
              "short": "When item added to list",
              "definition": "When this item was added to the list.",
              "comments": "This is only useful and meaningful when the mode is \"working\".",
              "requirements": "The date may be significant for understanding the meaning of items in a working list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".availabilityTime"
                }
              ]
            },
            {
              "path": "List.entry.item",
              "short": "Actual entry",
              "definition": "A reference to the actual resource from which data was derived.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".target or .role or .role.entity"
                }
              ]
            },
            {
              "path": "List.emptyReason",
              "short": "Why list is empty",
              "definition": "If the list is empty, why the list is empty.",
              "comments": "The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list 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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "lst-1"
              ],
              "binding": {
                "strength": "preferred",
                "description": "If a list is empty, why it is empty",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/list-empty-reason"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ,code<{ListEmptyReason}].value[type=CD]"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Location",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Location",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Location",
        "name": "Location",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Location Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Location",
              "short": "Details and position information for a physical place",
              "definition": "Details and position information for a physical place where services are provided  and resources and participants may be stored, found, contained or accommodated.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".Role[classCode=SDLC]"
                },
                {
                  "identity": "w5",
                  "map": "administrative.entity"
                }
              ]
            },
            {
              "path": "Location.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Location.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Location.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Location.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Location.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Location.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Location.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Location.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Location.identifier",
              "short": "Unique code or number identifying the location to its users",
              "definition": "Unique code or number identifying the location to its users.",
              "requirements": "Organization label locations in registries, need to keep track of those.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Location.status",
              "short": "active | suspended | inactive",
              "definition": "active | suspended | inactive.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates whether the location is still in use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/location-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Location.name",
              "short": "Name of the location as used by humans",
              "definition": "Name of the location as used by humans. Does not need to be unique.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".name"
                }
              ]
            },
            {
              "path": "Location.description",
              "short": "Description of the location",
              "definition": "Description of the Location, which helps in finding or referencing the place.",
              "requirements": "Humans need additional information to verify a correct location has been identified.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playingEntity[classCode=PLC determinerCode=INSTANCE].desc"
                }
              ]
            },
            {
              "path": "Location.mode",
              "short": "instance | kind",
              "definition": "Indicates whether a resource instance represents a specific location or a class of locations.",
              "requirements": "When using a Location resource for scheduling or orders, we need to be able to refer to a class of Locations instead of a specific Location.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates whether a resource instance represents a specific location or a class of locations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/location-mode"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playingEntity[classCode=PLC].determinerCode"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Location.type",
              "short": "Type of function performed",
              "definition": "Indicates the type of function performed at the location.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the type of function performed at the location.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ServiceDeliveryLocationRoleType"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Location.telecom",
              "short": "Contact details of the location",
              "definition": "The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".telecom"
                }
              ]
            },
            {
              "path": "Location.address",
              "short": "Physical location",
              "definition": "Physical location.",
              "comments": "This was kept as 0..1 as there is no use property on the address, so wouldn't be able to identify different address types.",
              "requirements": "If locations can be visited, we need to keep track of their address.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".addr"
                }
              ]
            },
            {
              "path": "Location.physicalType",
              "short": "Physical form of the location",
              "definition": "Physical form of the location, e.g. building, room, vehicle, road.",
              "requirements": "For purposes of showing relevant locations in queries, we need to categorize locations.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Physical form of the location",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/location-physical-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playingEntity [classCode=PLC].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Location.position",
              "short": "The absolute geographic location",
              "definition": "The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).",
              "requirements": "For mobile applications and automated route-finding knowing the exact location of the Location is required.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playingEntity [classCode=PLC determinerCode=INSTANCE].positionText"
                }
              ]
            },
            {
              "path": "Location.position.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Location.position.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Location.position.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Location.position.longitude",
              "short": "Longitude with WGS84 datum",
              "definition": "Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "(RIM Opted not to map the sub-elements of GPS location, is now an OBS)"
                }
              ]
            },
            {
              "path": "Location.position.latitude",
              "short": "Latitude with WGS84 datum",
              "definition": "Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "(RIM Opted not to map the sub-elements of GPS location, is now an OBS)"
                }
              ]
            },
            {
              "path": "Location.position.altitude",
              "short": "Altitude with WGS84 datum",
              "definition": "Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "(RIM Opted not to map the sub-elements of GPS location, is now an OBS)"
                }
              ]
            },
            {
              "path": "Location.managingOrganization",
              "short": "Organization responsible for provisioning and upkeep",
              "definition": "The organization responsible for the provisioning and upkeep of the location.",
              "comments": "This can also be used as the part of the organization hierarchy where this location provides services. These services can be defined through the HealthcareService resource.",
              "requirements": "Need to know who manages the location.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".scopingEntity[classCode=ORG determinerKind=INSTANCE]"
                }
              ]
            },
            {
              "path": "Location.partOf",
              "short": "Another Location this one is physically part of",
              "definition": "Another Location which this Location is physically part of.",
              "requirements": "For purposes of location, display and identification, knowing which locations are located within other locations is important.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundLink[typeCode=PART].source[classCode=SDLC]"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Location",
              "short": "Details and position information for a physical place",
              "definition": "Details and position information for a physical place where services are provided  and resources and participants may be stored, found, contained or accommodated.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".Role[classCode=SDLC]"
                },
                {
                  "identity": "w5",
                  "map": "administrative.entity"
                }
              ]
            },
            {
              "path": "Location.identifier",
              "short": "Unique code or number identifying the location to its users",
              "definition": "Unique code or number identifying the location to its users.",
              "requirements": "Organization label locations in registries, need to keep track of those.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Location.status",
              "short": "active | suspended | inactive",
              "definition": "active | suspended | inactive.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates whether the location is still in use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/location-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Location.name",
              "short": "Name of the location as used by humans",
              "definition": "Name of the location as used by humans. Does not need to be unique.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".name"
                }
              ]
            },
            {
              "path": "Location.description",
              "short": "Description of the location",
              "definition": "Description of the Location, which helps in finding or referencing the place.",
              "requirements": "Humans need additional information to verify a correct location has been identified.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playingEntity[classCode=PLC determinerCode=INSTANCE].desc"
                }
              ]
            },
            {
              "path": "Location.mode",
              "short": "instance | kind",
              "definition": "Indicates whether a resource instance represents a specific location or a class of locations.",
              "requirements": "When using a Location resource for scheduling or orders, we need to be able to refer to a class of Locations instead of a specific Location.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Indicates whether a resource instance represents a specific location or a class of locations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/location-mode"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playingEntity[classCode=PLC].determinerCode"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Location.type",
              "short": "Type of function performed",
              "definition": "Indicates the type of function performed at the location.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the type of function performed at the location.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ServiceDeliveryLocationRoleType"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Location.telecom",
              "short": "Contact details of the location",
              "definition": "The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".telecom"
                }
              ]
            },
            {
              "path": "Location.address",
              "short": "Physical location",
              "definition": "Physical location.",
              "comments": "This was kept as 0..1 as there is no use property on the address, so wouldn't be able to identify different address types.",
              "requirements": "If locations can be visited, we need to keep track of their address.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".addr"
                }
              ]
            },
            {
              "path": "Location.physicalType",
              "short": "Physical form of the location",
              "definition": "Physical form of the location, e.g. building, room, vehicle, road.",
              "requirements": "For purposes of showing relevant locations in queries, we need to categorize locations.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Physical form of the location",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/location-physical-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playingEntity [classCode=PLC].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Location.position",
              "short": "The absolute geographic location",
              "definition": "The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).",
              "requirements": "For mobile applications and automated route-finding knowing the exact location of the Location is required.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".playingEntity [classCode=PLC determinerCode=INSTANCE].positionText"
                }
              ]
            },
            {
              "path": "Location.position.longitude",
              "short": "Longitude with WGS84 datum",
              "definition": "Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "(RIM Opted not to map the sub-elements of GPS location, is now an OBS)"
                }
              ]
            },
            {
              "path": "Location.position.latitude",
              "short": "Latitude with WGS84 datum",
              "definition": "Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "(RIM Opted not to map the sub-elements of GPS location, is now an OBS)"
                }
              ]
            },
            {
              "path": "Location.position.altitude",
              "short": "Altitude with WGS84 datum",
              "definition": "Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "(RIM Opted not to map the sub-elements of GPS location, is now an OBS)"
                }
              ]
            },
            {
              "path": "Location.managingOrganization",
              "short": "Organization responsible for provisioning and upkeep",
              "definition": "The organization responsible for the provisioning and upkeep of the location.",
              "comments": "This can also be used as the part of the organization hierarchy where this location provides services. These services can be defined through the HealthcareService resource.",
              "requirements": "Need to know who manages the location.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".scopingEntity[classCode=ORG determinerKind=INSTANCE]"
                }
              ]
            },
            {
              "path": "Location.partOf",
              "short": "Another Location this one is physically part of",
              "definition": "Another Location which this Location is physically part of.",
              "requirements": "For purposes of location, display and identification, knowing which locations are located within other locations is important.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundLink[typeCode=PART].source[classCode=SDLC]"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Measure",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Measure",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Measure",
        "name": "Measure",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Decision Support)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Measure Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Measure",
              "short": "A quality measure",
              "definition": "The Measure resource provides the definition of a quality measure.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Measure.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "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 may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Measure.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Measure.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Measure.moduleMetadata",
              "short": "Metadata for the measure",
              "definition": "A reference to a ModuleMetadata resource that describes the metadata for the measure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleMetadata"
                  ]
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Library"
                  ]
                }
              ]
            },
            {
              "path": "Measure.population",
              "definition": "The measure populations.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Measure.population.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Measure.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Measure.population.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Measure.population.type",
              "short": "initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-score",
              "definition": "The type of population criteria.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of population",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/measure-population"
                }
              }
            },
            {
              "path": "Measure.population.name",
              "definition": "Optional name or short description of this population.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Measure.population.description",
              "definition": "The human readable description of this population criteria.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Measure.population.criteria",
              "definition": "The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Measure.stratifier",
              "definition": "The stratifier criteria for the measure report, specified as either the name of a valid referenced CQL expression or a valid FHIR Resource Path.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Measure.supplementalData",
              "definition": "The supplemental data to be supplied as part of the measure response, specified as a valid FHIR Resource Path.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Measure",
              "short": "A quality measure",
              "definition": "The Measure resource provides the definition of a quality measure.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "Measure.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Measure.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Measure.moduleMetadata",
              "short": "Metadata for the measure",
              "definition": "A reference to a ModuleMetadata resource that describes the metadata for the measure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleMetadata"
                  ]
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Library"
                  ]
                }
              ]
            },
            {
              "path": "Measure.population",
              "definition": "The measure populations.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Measure.population.type",
              "short": "initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-score",
              "definition": "The type of population criteria.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of population",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/measure-population"
                }
              }
            },
            {
              "path": "Measure.population.name",
              "definition": "Optional name or short description of this population.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Measure.population.description",
              "definition": "The human readable description of this population criteria.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Measure.population.criteria",
              "definition": "The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Measure.stratifier",
              "definition": "The stratifier criteria for the measure report, specified as either the name of a valid referenced CQL expression or a valid FHIR Resource Path.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "Measure.supplementalData",
              "definition": "The supplemental data to be supplied as part of the measure response, specified as a valid FHIR Resource Path.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Media",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Media",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Media",
        "name": "Media",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Media Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "dicom",
            "uri": "http://nema.org/dicom",
            "name": "DICOM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Media",
              "short": "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference",
              "definition": "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "height.empty() or type != 'audio'"
                    }
                  ],
                  "key": "mda-1",
                  "severity": "error",
                  "human": "Height can only be used for a photo or video",
                  "xpath": "not(f:type/@value='audio') or not(f:height)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "width.empty() or type != 'audio'"
                    }
                  ],
                  "key": "mda-2",
                  "severity": "error",
                  "human": "Width can only be used for a photo or video",
                  "xpath": "not(f:type/@value='audio') or not(f:width)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "duration.empty() or type != 'photo'"
                    }
                  ],
                  "key": "mda-4",
                  "severity": "error",
                  "human": "Duration can only be used for an audio or a video",
                  "xpath": "not(f:type/@value='photo') or not(f:duration)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "frames.empty() or type = 'photo'"
                    }
                  ],
                  "key": "mda-3",
                  "severity": "error",
                  "human": "Frames can only be used for a photo",
                  "xpath": "(f:type/@value='photo') or not(f:frames)"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act[classCode=\"DGIMG\", moodCode=\"EVN\"]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.structure"
                }
              ]
            },
            {
              "path": "Media.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Media.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Media.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Media.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Media.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Media.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "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 resource. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Media.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Media.type",
              "short": "photo | video | audio",
              "definition": "Whether the media is a photo (still image), an audio recording, or a video recording.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Whether the Media is a photo, video, or audio",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/digital-media-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Media.subtype",
              "short": "The type of acquisition equipment/process",
              "definition": "Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/digital-media-subtype"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "0008,0060 | 0008,1032"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Media.identifier",
              "short": "Identifier(s) for the image",
              "definition": "Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers.",
              "comments": "The identifier label and use can be used to determine what kind of identifier it is.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "0008,0018 | ~0008,0050 | 0020,000D | 0020,000E"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Media.subject",
              "short": "Who/What this Media is a record of",
              "definition": "Who/What this Media is a record of.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Specimen"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "~0010,0020"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"SUBJ\"]???"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Media.operator",
              "short": "The person who generated the image",
              "definition": "The person who administered the collection of the image.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "0008,1060?"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"PERF\"]???"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Media.view",
              "short": "Imaging view, e.g. Lateral or Antero-posterior",
              "definition": "The name of the imaging view e.g. Lateral or Antero-posterior (AP).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Imaging view (projection) used when collecting an image",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/media-view"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "DiagnosticImage.subjectOrientationCode"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Media.deviceName",
              "short": "Name of the device/manufacturer",
              "definition": "The name of the device / manufacturer of the device  that was used to make the recording.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "0008,0070"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"DEV\"].role.player.Entity[classCode=\"DEV\"].name"
                }
              ]
            },
            {
              "path": "Media.height",
              "short": "Height of the image in pixels (photo/video)",
              "definition": "Height of the image in pixels (photo/video).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "condition": [
                "mda-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "0028,0010"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
                }
              ]
            },
            {
              "path": "Media.width",
              "short": "Width of the image in pixels (photo/video)",
              "definition": "Width of the image in pixels (photo/video).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "condition": [
                "mda-2"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "0028,0011"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
                }
              ]
            },
            {
              "path": "Media.frames",
              "short": "Number of frames if > 1 (photo)",
              "definition": "The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "defaultValueInteger": 1,
              "condition": [
                "mda-3"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
                }
              ]
            },
            {
              "path": "Media.duration",
              "short": "Length in seconds (audio / video)",
              "definition": "The duration of the recording in seconds - for audio and video.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "condition": [
                "mda-4"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "~0028,0002"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
                }
              ]
            },
            {
              "path": "Media.content",
              "short": "Actual Media - reference or data",
              "definition": "The actual content of the media - inline or by direct reference to the media source file.",
              "comments": "Recommended content types: image/jpeg, image/png, image/tiff, video/mpeg, audio/mp4, application/dicom. Application/dicom can contain the transfer syntax as a parameter.  For an media that covers a period of time (video/sound), the content.creationTime is the end time. Creation time is used for tracking, organizing versions and searching.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Media",
              "short": "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference",
              "definition": "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "height.empty() or type != 'audio'"
                    }
                  ],
                  "key": "mda-1",
                  "severity": "error",
                  "human": "Height can only be used for a photo or video",
                  "xpath": "not(f:type/@value='audio') or not(f:height)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "width.empty() or type != 'audio'"
                    }
                  ],
                  "key": "mda-2",
                  "severity": "error",
                  "human": "Width can only be used for a photo or video",
                  "xpath": "not(f:type/@value='audio') or not(f:width)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "duration.empty() or type != 'photo'"
                    }
                  ],
                  "key": "mda-4",
                  "severity": "error",
                  "human": "Duration can only be used for an audio or a video",
                  "xpath": "not(f:type/@value='photo') or not(f:duration)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "frames.empty() or type = 'photo'"
                    }
                  ],
                  "key": "mda-3",
                  "severity": "error",
                  "human": "Frames can only be used for a photo",
                  "xpath": "(f:type/@value='photo') or not(f:frames)"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act[classCode=\"DGIMG\", moodCode=\"EVN\"]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.structure"
                }
              ]
            },
            {
              "path": "Media.type",
              "short": "photo | video | audio",
              "definition": "Whether the media is a photo (still image), an audio recording, or a video recording.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Whether the Media is a photo, video, or audio",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/digital-media-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Media.subtype",
              "short": "The type of acquisition equipment/process",
              "definition": "Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/digital-media-subtype"
                }
              },
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "0008,0060 | 0008,1032"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Media.identifier",
              "short": "Identifier(s) for the image",
              "definition": "Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers.",
              "comments": "The identifier label and use can be used to determine what kind of identifier it is.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "0008,0018 | ~0008,0050 | 0020,000D | 0020,000E"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Media.subject",
              "short": "Who/What this Media is a record of",
              "definition": "Who/What this Media is a record of.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Specimen"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "~0010,0020"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"SUBJ\"]???"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Media.operator",
              "short": "The person who generated the image",
              "definition": "The person who administered the collection of the image.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "0008,1060?"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"PERF\"]???"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Media.view",
              "short": "Imaging view, e.g. Lateral or Antero-posterior",
              "definition": "The name of the imaging view e.g. Lateral or Antero-posterior (AP).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Imaging view (projection) used when collecting an image",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/media-view"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "DiagnosticImage.subjectOrientationCode"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Media.deviceName",
              "short": "Name of the device/manufacturer",
              "definition": "The name of the device / manufacturer of the device  that was used to make the recording.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "0008,0070"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=\"DEV\"].role.player.Entity[classCode=\"DEV\"].name"
                }
              ]
            },
            {
              "path": "Media.height",
              "short": "Height of the image in pixels (photo/video)",
              "definition": "Height of the image in pixels (photo/video).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "condition": [
                "mda-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "0028,0010"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
                }
              ]
            },
            {
              "path": "Media.width",
              "short": "Width of the image in pixels (photo/video)",
              "definition": "Width of the image in pixels (photo/video).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "condition": [
                "mda-2"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "0028,0011"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
                }
              ]
            },
            {
              "path": "Media.frames",
              "short": "Number of frames if > 1 (photo)",
              "definition": "The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "defaultValueInteger": 1,
              "condition": [
                "mda-3"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
                }
              ]
            },
            {
              "path": "Media.duration",
              "short": "Length in seconds (audio / video)",
              "definition": "The duration of the recording in seconds - for audio and video.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "unsignedInt"
                }
              ],
              "condition": [
                "mda-4"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "dicom",
                  "map": "~0028,0002"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
                }
              ]
            },
            {
              "path": "Media.content",
              "short": "Actual Media - reference or data",
              "definition": "The actual content of the media - inline or by direct reference to the media source file.",
              "comments": "Recommended content types: image/jpeg, image/png, image/tiff, video/mpeg, audio/mp4, application/dicom. Application/dicom can contain the transfer syntax as a parameter.  For an media that covers a period of time (video/sound), the content.creationTime is the end time. Creation time is used for tracking, organizing versions and searching.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Medication",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Medication",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Medication",
        "name": "Medication",
        "status": "draft",
        "publisher": "Health Level Seven International (Pharmacy)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/medication/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Medication Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Medication",
              "short": "Definition of a Medication",
              "definition": "This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "ManufacturedProduct[classCode=ADMM]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "Medication.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Medication.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Medication.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Medication.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Medication.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Medication.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Medication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Medication.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Medication.code",
              "short": "Codes that identify this medication",
              "definition": "A code (or set of codes) that specify this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.",
              "comments": "Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) should be marked as \"primary\". Other codes can only be literal translations to alternative code systems, or codes at a lower level of granularity (e.g. a generic code for a vendor-specific primary one).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that defines the type of a medication",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXO-1.1-Requested Give Code.code / RXE-2.1-Give Code.code / RXD-2.1-Dispense/Give Code.code / RXG-4.1-Give Code.code /RXA-5.1-Administered Code.code / RXC-2.1 Component Code"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Medication.isBrand",
              "short": "True if a brand",
              "definition": "Set to true if the item is attributable to a specific manufacturer.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "true if .player.scopingRole[typeCode=MANU] exists"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Medication.manufacturer",
              "short": "Manufacturer of the item",
              "definition": "Describes the details of the manufacturer.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name"
                },
                {
                  "identity": "rim",
                  "map": ".player.scopingRole[typeCode=MANU].scoper"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Medication.product",
              "short": "Administrable medication details",
              "definition": "Information that only applies to products (not packages).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player [classCode != CONT]"
                }
              ]
            },
            {
              "path": "Medication.product.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Medication.product.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Medication.product.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Medication.product.form",
              "short": "powder | tablets | carton +",
              "definition": "Describes the form of the item.  Powder; tablets; carton.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The form of a medication",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-form-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXO-5-Requested Dosage Form / RXE-6-Give Dosage Form / RXD-6-Actual Dosage Form / RXG-8-Give Dosage Form / RXA-8-Administered Dosage Form"
                },
                {
                  "identity": "rim",
                  "map": ".formCode"
                }
              ]
            },
            {
              "path": "Medication.product.ingredient",
              "short": "Active or inactive ingredient",
              "definition": "Identifies a particular constituent of interest in the product.",
              "comments": "The ingredients need not be a complete list; usually only active ingredients are listed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".scopesRole[typeCode=INGR]"
                }
              ]
            },
            {
              "path": "Medication.product.ingredient.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Medication.product.ingredient.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Medication.product.ingredient.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Medication.product.ingredient.item",
              "short": "The product contained",
              "definition": "The actual ingredient - either a substance (simple ingredient) or another medication.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXC-2-Component Code  if medication: RXO-1-Requested Give Code / RXE-2-Give Code / RXD-2-Dispense/Give Code / RXG-4-Give Code / RXA-5-Administered Code"
                },
                {
                  "identity": "rim",
                  "map": ".player"
                }
              ]
            },
            {
              "path": "Medication.product.ingredient.amount",
              "short": "Quantity of ingredient present",
              "definition": "Specifies how many (or how much) of the items there are in this Medication.  For example, 250 mg per tablet.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXC-3-Component Amount & RXC-4-Component Units  if medication: RXO-2-Requested Give Amount - Minimum & RXO-4-Requested Give Units / RXO-3-Requested Give Amount - Maximum & RXO-4-Requested Give Units / RXO-11-Requested Dispense Amount & RXO-12-Requested Dispense Units / RXE-3-Give Amount - Minimum & RXE-5-Give Units / RXE-4-Give Amount - Maximum & RXE-5-Give Units / RXE-10-Dispense Amount & RXE-10-Dispense Units"
                },
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "Medication.product.batch",
              "definition": "Information about a group of medication produced or packaged from one production run.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Medication.product.batch.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Medication.product.batch.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Medication.product.batch.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Medication.product.batch.lotNumber",
              "definition": "The assigned lot number of a batch of the specified product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-15 Substance Lot Number / RXG-19 Substance Lot Number"
                }
              ]
            },
            {
              "path": "Medication.product.batch.expirationDate",
              "definition": "When this specific batch of product will expire.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-16 Substance Expiration Date / RXG-20 Substance Expiration Date"
                }
              ]
            },
            {
              "path": "Medication.package",
              "short": "Details about packaged medications",
              "definition": "Information that only applies to packages (not products).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player[classCode=CONT]"
                }
              ]
            },
            {
              "path": "Medication.package.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Medication.package.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Medication.package.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Medication.package.container",
              "short": "E.g. box, vial, blister-pack",
              "definition": "The kind of container that this package comes as.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Kind of container a medication package is packaged in",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-package-form-codes"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "Medication.package.content",
              "short": "What is  in the package",
              "definition": "A set of components that go to make up the described item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".scopesRole[typeCode=CONT]"
                }
              ]
            },
            {
              "path": "Medication.package.content.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Medication.package.content.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Medication.package.content.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Medication.package.content.item",
              "short": "A product in the package",
              "definition": "Identifies one of the items in the package.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player"
                }
              ]
            },
            {
              "path": "Medication.package.content.amount",
              "short": "Quantity present in the package",
              "definition": "The amount of the product that is in the package.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Medication",
              "short": "Definition of a Medication",
              "definition": "This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "ManufacturedProduct[classCode=ADMM]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "Medication.code",
              "short": "Codes that identify this medication",
              "definition": "A code (or set of codes) that specify this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.",
              "comments": "Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) should be marked as \"primary\". Other codes can only be literal translations to alternative code systems, or codes at a lower level of granularity (e.g. a generic code for a vendor-specific primary one).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that defines the type of a medication",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXO-1.1-Requested Give Code.code / RXE-2.1-Give Code.code / RXD-2.1-Dispense/Give Code.code / RXG-4.1-Give Code.code /RXA-5.1-Administered Code.code / RXC-2.1 Component Code"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Medication.isBrand",
              "short": "True if a brand",
              "definition": "Set to true if the item is attributable to a specific manufacturer.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "true if .player.scopingRole[typeCode=MANU] exists"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Medication.manufacturer",
              "short": "Manufacturer of the item",
              "definition": "Describes the details of the manufacturer.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name"
                },
                {
                  "identity": "rim",
                  "map": ".player.scopingRole[typeCode=MANU].scoper"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Medication.product",
              "short": "Administrable medication details",
              "definition": "Information that only applies to products (not packages).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player [classCode != CONT]"
                }
              ]
            },
            {
              "path": "Medication.product.form",
              "short": "powder | tablets | carton +",
              "definition": "Describes the form of the item.  Powder; tablets; carton.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The form of a medication",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-form-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXO-5-Requested Dosage Form / RXE-6-Give Dosage Form / RXD-6-Actual Dosage Form / RXG-8-Give Dosage Form / RXA-8-Administered Dosage Form"
                },
                {
                  "identity": "rim",
                  "map": ".formCode"
                }
              ]
            },
            {
              "path": "Medication.product.ingredient",
              "short": "Active or inactive ingredient",
              "definition": "Identifies a particular constituent of interest in the product.",
              "comments": "The ingredients need not be a complete list; usually only active ingredients are listed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".scopesRole[typeCode=INGR]"
                }
              ]
            },
            {
              "path": "Medication.product.ingredient.item",
              "short": "The product contained",
              "definition": "The actual ingredient - either a substance (simple ingredient) or another medication.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXC-2-Component Code  if medication: RXO-1-Requested Give Code / RXE-2-Give Code / RXD-2-Dispense/Give Code / RXG-4-Give Code / RXA-5-Administered Code"
                },
                {
                  "identity": "rim",
                  "map": ".player"
                }
              ]
            },
            {
              "path": "Medication.product.ingredient.amount",
              "short": "Quantity of ingredient present",
              "definition": "Specifies how many (or how much) of the items there are in this Medication.  For example, 250 mg per tablet.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXC-3-Component Amount & RXC-4-Component Units  if medication: RXO-2-Requested Give Amount - Minimum & RXO-4-Requested Give Units / RXO-3-Requested Give Amount - Maximum & RXO-4-Requested Give Units / RXO-11-Requested Dispense Amount & RXO-12-Requested Dispense Units / RXE-3-Give Amount - Minimum & RXE-5-Give Units / RXE-4-Give Amount - Maximum & RXE-5-Give Units / RXE-10-Dispense Amount & RXE-10-Dispense Units"
                },
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "Medication.product.batch",
              "definition": "Information about a group of medication produced or packaged from one production run.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Medication.product.batch.lotNumber",
              "definition": "The assigned lot number of a batch of the specified product.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-15 Substance Lot Number / RXG-19 Substance Lot Number"
                }
              ]
            },
            {
              "path": "Medication.product.batch.expirationDate",
              "definition": "When this specific batch of product will expire.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-16 Substance Expiration Date / RXG-20 Substance Expiration Date"
                }
              ]
            },
            {
              "path": "Medication.package",
              "short": "Details about packaged medications",
              "definition": "Information that only applies to packages (not products).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player[classCode=CONT]"
                }
              ]
            },
            {
              "path": "Medication.package.container",
              "short": "E.g. box, vial, blister-pack",
              "definition": "The kind of container that this package comes as.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Kind of container a medication package is packaged in",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-package-form-codes"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "Medication.package.content",
              "short": "What is  in the package",
              "definition": "A set of components that go to make up the described item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".scopesRole[typeCode=CONT]"
                }
              ]
            },
            {
              "path": "Medication.package.content.item",
              "short": "A product in the package",
              "definition": "Identifies one of the items in the package.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player"
                }
              ]
            },
            {
              "path": "Medication.package.content.amount",
              "short": "Quantity present in the package",
              "definition": "The amount of the product that is in the package.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "MedicationAdministration",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
        "name": "MedicationAdministration",
        "status": "draft",
        "publisher": "Health Level Seven International (Pharmacy)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/medication/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for MedicationAdministration Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "MedicationAdministration",
              "short": "Administration of medication to a patient",
              "definition": "Describes the event of a patient consuming or otherwise being administered a medication.  This may be as simple as swallowing a tablet or it may be a long running infusion.  Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "reasonGiven.empty() or wasNotGiven = 'false'"
                    }
                  ],
                  "key": "mad-3",
                  "severity": "error",
                  "human": "Reason given is only permitted if wasNotGiven is false",
                  "xpath": "not(exists(f:reasonGiven) and f:wasNotGiven/@value=true())"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "reasonNotGiven.empty() or wasNotGiven = 'true'"
                    }
                  ],
                  "key": "mad-2",
                  "severity": "error",
                  "human": "Reason not given is only permitted if wasNotGiven is true",
                  "xpath": "not(exists(f:reasonNotGiven) and f:wasNotGiven/@value=false())"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "MedicationAdministration.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationAdministration.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationAdministration.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "MedicationAdministration.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "MedicationAdministration.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "MedicationAdministration.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationAdministration.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationAdministration.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationAdministration.identifier",
              "short": "External identifier",
              "definition": "External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource.  The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event.  Particularly important if these records have to be updated.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-25-Administered Barcode Identifier"
                },
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "MedicationAdministration.status",
              "short": "in-progress | on-hold | completed | entered-in-error | stopped",
              "definition": "Will generally be set to show that the administration has been completed.  For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A set of codes indicating the current status of a MedicationAdministration.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-admin-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-20-Completion Status"
                },
                {
                  "identity": "rim",
                  "map": "statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "MedicationAdministration.patient",
              "short": "Who received medication",
              "definition": "The person or animal receiving the medication.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List"
                },
                {
                  "identity": "rim",
                  "map": "subject->Patient"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "MedicationAdministration.practitioner",
              "short": "Who administered substance",
              "definition": "The individual who was responsible for giving the medication to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-10-Administering Provider / PRT-5-Participation Person: PRT-4-Participation='AP' (RXA-10 is deprecated)"
                },
                {
                  "identity": "rim",
                  "map": "performer->Role"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "MedicationAdministration.encounter",
              "short": "Encounter administered as part of",
              "definition": "The visit, admission or other contact between patient and health care provider the medication administration was performed as part of.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19-Visit Number"
                },
                {
                  "identity": "rim",
                  "map": "component->EncounterEvent"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "MedicationAdministration.prescription",
              "short": "Order administration performed against",
              "definition": "The original request, instruction or authority to perform the administration.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number"
                },
                {
                  "identity": "rim",
                  "map": "InFullfillmentOf->SubstanceAdministration"
                }
              ]
            },
            {
              "path": "MedicationAdministration.wasNotGiven",
              "short": "True if medication not administered",
              "definition": "Set this to true if the record is saying that the medication was NOT administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "If this is missing, then the medication was administered",
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-20-Completion Status='NA'"
                },
                {
                  "identity": "rim",
                  "map": "actionNegationInd"
                }
              ]
            },
            {
              "path": "MedicationAdministration.reasonNotGiven",
              "short": "Reason administration not performed",
              "definition": "A code indicating why the administration was not performed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "mad-2"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A set of codes indicating the reason why the MedicationAdministration is negated.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-9-Administration Notes / RXA-18 Substance/Treatment Refusal Reason"
                },
                {
                  "identity": "rim",
                  "map": "Reason->Observation->Value"
                }
              ]
            },
            {
              "path": "MedicationAdministration.reasonGiven",
              "short": "Reason administration performed",
              "definition": "A code indicating why the medication was given.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "mad-3"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A set of codes indicating the reason why the MedicationAdministration was made.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/reason-medication-given-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-27 Give Indication"
                }
              ]
            },
            {
              "path": "MedicationAdministration.effectiveTime[x]",
              "short": "Start and end time of administration",
              "definition": "A specific date/time or interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-3-Date/Time Start of Administration / RXA-4-Date/Time End of Administration"
                },
                {
                  "identity": "rim",
                  "map": "effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "MedicationAdministration.medication[x]",
              "short": "What was administered",
              "definition": "Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.",
              "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.  Note: do not use Medication.name to describe the administered medication. When the only available information is a text description of the medication, Medication.code.text should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-5-Administered Code"
                },
                {
                  "identity": "rim",
                  "map": "Consumeable->AdministerableMedication"
                }
              ]
            },
            {
              "path": "MedicationAdministration.device",
              "short": "Device used to administer",
              "definition": "The device used in administering the medication to the patient.  For example, a particular infusion pump.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRT-10 Participation Device / RXR-3 Administrative Device"
                },
                {
                  "identity": "rim",
                  "map": "device->Access  OR device->AssignedDevice"
                }
              ]
            },
            {
              "path": "MedicationAdministration.note",
              "short": "Information about the administration",
              "definition": "Extra information about the medication administration that is not conveyed by the other attributes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationAdministration.dosage",
              "short": "Details of how medication was taken",
              "definition": "Describes the medication dosage information details e.g. dose, rate, site, route, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "quantity or rate[x]"
                    }
                  ],
                  "key": "mad-1",
                  "severity": "error",
                  "human": "SHALL have at least one of dosage.quantity and dosage.rate[x]",
                  "xpath": "exists(f:quantity) or exists(f:rateRatio) or exists(f:rateRange)"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "component->SubstanceAdministrationEvent"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.text",
              "short": "Dosage Instructions",
              "definition": "Free text dosage instructions can be used for cases where the instructions are too complex to code. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationAdministration.dosage.site[x]",
              "short": "Body site administered to",
              "definition": "A coded specification of the anatomic site where the medication first entered the body.  For example, \"left arm\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/BodySite"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the site location the medicine enters into or onto the body.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/approach-site-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-2 Administration Site / RXR-6 Administration Site Modifier"
                },
                {
                  "identity": "rim",
                  "map": "approachSiteCode"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.route",
              "short": "Path of substance into body",
              "definition": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient.  For example, topical, intravenous, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/route-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-1-Route"
                },
                {
                  "identity": "rim",
                  "map": "routeCode"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.method",
              "short": "How drug was administered",
              "definition": "A coded value indicating the method by which the medication is intended to be or was introduced into or on the body.  This attribute will most often NOT be populated.  It is most commonly used for injections.  For example, Slow Push, Deep IV.",
              "comments": "One of the reasons this attribute is not used often, is that the method is often pre-coordinated with the route and/or form of administration.  This means the codes used in route or form may pre-coordinate the method in the route code or the form code.  The implementation decision about what coding system to use for route or form code will determine how frequently the method code will be populated e.g. if route or form code pre-coordinate method code, then this attribute will not be populated often; if there is no pre-coordination then method code may  be used frequently.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the technique by which the medicine is administered."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-4-Administration Method"
                },
                {
                  "identity": "rim",
                  "map": "methodCode"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.quantity",
              "short": "Amount administered in one dose",
              "definition": "The amount of the medication given at one administration event.   Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection.",
              "comments": "If the administration is not instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount administered over period of time of a single administration (as indicated by schedule).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-6 Administered Amount / RXA-7 Administered Units"
                },
                {
                  "identity": "rim",
                  "map": "doseQuantity"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.rate[x]",
              "short": "Dose quantity per unit of time",
              "definition": "Identifies the speed with which the medication was or will be introduced into the patient.  Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.  Currently we do not specify a default of '1' in the denominator, but this is being discussed.  Other examples:  200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.",
              "comments": "If the rate changes over time, and you want to capture this in MedicationAdministration, then each change should be captured as a distinct MedicationAdministration, with a specific MedicationAdministration.dosage.rate, and the date time when the rate change occurred. Typically, the MedicationAdministration.dosage.rate element is not used to convey an average rate.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                },
                {
                  "code": "Range"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-12-Administered Per (Time Unit)"
                },
                {
                  "identity": "rim",
                  "map": "rateQuantity"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "MedicationAdministration",
              "short": "Administration of medication to a patient",
              "definition": "Describes the event of a patient consuming or otherwise being administered a medication.  This may be as simple as swallowing a tablet or it may be a long running infusion.  Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "reasonGiven.empty() or wasNotGiven = 'false'"
                    }
                  ],
                  "key": "mad-3",
                  "severity": "error",
                  "human": "Reason given is only permitted if wasNotGiven is false",
                  "xpath": "not(exists(f:reasonGiven) and f:wasNotGiven/@value=true())"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "reasonNotGiven.empty() or wasNotGiven = 'true'"
                    }
                  ],
                  "key": "mad-2",
                  "severity": "error",
                  "human": "Reason not given is only permitted if wasNotGiven is true",
                  "xpath": "not(exists(f:reasonNotGiven) and f:wasNotGiven/@value=false())"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "MedicationAdministration.identifier",
              "short": "External identifier",
              "definition": "External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource.  The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event.  Particularly important if these records have to be updated.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-25-Administered Barcode Identifier"
                },
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "MedicationAdministration.status",
              "short": "in-progress | on-hold | completed | entered-in-error | stopped",
              "definition": "Will generally be set to show that the administration has been completed.  For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A set of codes indicating the current status of a MedicationAdministration.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-admin-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-20-Completion Status"
                },
                {
                  "identity": "rim",
                  "map": "statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "MedicationAdministration.patient",
              "short": "Who received medication",
              "definition": "The person or animal receiving the medication.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List"
                },
                {
                  "identity": "rim",
                  "map": "subject->Patient"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "MedicationAdministration.practitioner",
              "short": "Who administered substance",
              "definition": "The individual who was responsible for giving the medication to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-10-Administering Provider / PRT-5-Participation Person: PRT-4-Participation='AP' (RXA-10 is deprecated)"
                },
                {
                  "identity": "rim",
                  "map": "performer->Role"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "MedicationAdministration.encounter",
              "short": "Encounter administered as part of",
              "definition": "The visit, admission or other contact between patient and health care provider the medication administration was performed as part of.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19-Visit Number"
                },
                {
                  "identity": "rim",
                  "map": "component->EncounterEvent"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "MedicationAdministration.prescription",
              "short": "Order administration performed against",
              "definition": "The original request, instruction or authority to perform the administration.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number"
                },
                {
                  "identity": "rim",
                  "map": "InFullfillmentOf->SubstanceAdministration"
                }
              ]
            },
            {
              "path": "MedicationAdministration.wasNotGiven",
              "short": "True if medication not administered",
              "definition": "Set this to true if the record is saying that the medication was NOT administered.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "If this is missing, then the medication was administered",
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-20-Completion Status='NA'"
                },
                {
                  "identity": "rim",
                  "map": "actionNegationInd"
                }
              ]
            },
            {
              "path": "MedicationAdministration.reasonNotGiven",
              "short": "Reason administration not performed",
              "definition": "A code indicating why the administration was not performed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "mad-2"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A set of codes indicating the reason why the MedicationAdministration is negated.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-9-Administration Notes / RXA-18 Substance/Treatment Refusal Reason"
                },
                {
                  "identity": "rim",
                  "map": "Reason->Observation->Value"
                }
              ]
            },
            {
              "path": "MedicationAdministration.reasonGiven",
              "short": "Reason administration performed",
              "definition": "A code indicating why the medication was given.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "mad-3"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A set of codes indicating the reason why the MedicationAdministration was made.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/reason-medication-given-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-27 Give Indication"
                }
              ]
            },
            {
              "path": "MedicationAdministration.effectiveTime[x]",
              "short": "Start and end time of administration",
              "definition": "A specific date/time or interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-3-Date/Time Start of Administration / RXA-4-Date/Time End of Administration"
                },
                {
                  "identity": "rim",
                  "map": "effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "MedicationAdministration.medication[x]",
              "short": "What was administered",
              "definition": "Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.",
              "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.  Note: do not use Medication.name to describe the administered medication. When the only available information is a text description of the medication, Medication.code.text should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-5-Administered Code"
                },
                {
                  "identity": "rim",
                  "map": "Consumeable->AdministerableMedication"
                }
              ]
            },
            {
              "path": "MedicationAdministration.device",
              "short": "Device used to administer",
              "definition": "The device used in administering the medication to the patient.  For example, a particular infusion pump.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRT-10 Participation Device / RXR-3 Administrative Device"
                },
                {
                  "identity": "rim",
                  "map": "device->Access  OR device->AssignedDevice"
                }
              ]
            },
            {
              "path": "MedicationAdministration.note",
              "short": "Information about the administration",
              "definition": "Extra information about the medication administration that is not conveyed by the other attributes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationAdministration.dosage",
              "short": "Details of how medication was taken",
              "definition": "Describes the medication dosage information details e.g. dose, rate, site, route, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "quantity or rate[x]"
                    }
                  ],
                  "key": "mad-1",
                  "severity": "error",
                  "human": "SHALL have at least one of dosage.quantity and dosage.rate[x]",
                  "xpath": "exists(f:quantity) or exists(f:rateRatio) or exists(f:rateRange)"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "component->SubstanceAdministrationEvent"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.text",
              "short": "Dosage Instructions",
              "definition": "Free text dosage instructions can be used for cases where the instructions are too complex to code. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationAdministration.dosage.site[x]",
              "short": "Body site administered to",
              "definition": "A coded specification of the anatomic site where the medication first entered the body.  For example, \"left arm\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/BodySite"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the site location the medicine enters into or onto the body.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/approach-site-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-2 Administration Site / RXR-6 Administration Site Modifier"
                },
                {
                  "identity": "rim",
                  "map": "approachSiteCode"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.route",
              "short": "Path of substance into body",
              "definition": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient.  For example, topical, intravenous, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/route-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-1-Route"
                },
                {
                  "identity": "rim",
                  "map": "routeCode"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.method",
              "short": "How drug was administered",
              "definition": "A coded value indicating the method by which the medication is intended to be or was introduced into or on the body.  This attribute will most often NOT be populated.  It is most commonly used for injections.  For example, Slow Push, Deep IV.",
              "comments": "One of the reasons this attribute is not used often, is that the method is often pre-coordinated with the route and/or form of administration.  This means the codes used in route or form may pre-coordinate the method in the route code or the form code.  The implementation decision about what coding system to use for route or form code will determine how frequently the method code will be populated e.g. if route or form code pre-coordinate method code, then this attribute will not be populated often; if there is no pre-coordination then method code may  be used frequently.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the technique by which the medicine is administered."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-4-Administration Method"
                },
                {
                  "identity": "rim",
                  "map": "methodCode"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.quantity",
              "short": "Amount administered in one dose",
              "definition": "The amount of the medication given at one administration event.   Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection.",
              "comments": "If the administration is not instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount administered over period of time of a single administration (as indicated by schedule).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-6 Administered Amount / RXA-7 Administered Units"
                },
                {
                  "identity": "rim",
                  "map": "doseQuantity"
                }
              ]
            },
            {
              "path": "MedicationAdministration.dosage.rate[x]",
              "short": "Dose quantity per unit of time",
              "definition": "Identifies the speed with which the medication was or will be introduced into the patient.  Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.  Currently we do not specify a default of '1' in the denominator, but this is being discussed.  Other examples:  200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.",
              "comments": "If the rate changes over time, and you want to capture this in MedicationAdministration, then each change should be captured as a distinct MedicationAdministration, with a specific MedicationAdministration.dosage.rate, and the date time when the rate change occurred. Typically, the MedicationAdministration.dosage.rate element is not used to convey an average rate.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                },
                {
                  "code": "Range"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXA-12-Administered Per (Time Unit)"
                },
                {
                  "identity": "rim",
                  "map": "rateQuantity"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "MedicationDispense",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
        "name": "MedicationDispense",
        "status": "draft",
        "publisher": "Health Level Seven International (Pharmacy)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/medication/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for MedicationDispense Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "MedicationDispense",
              "short": "Dispensing a medication to a named patient",
              "definition": "Indicates that a medication product is to be or has been dispensed for a named person/patient.  This includes a description of the medication product (supply) provided and the instructions for administering the medication.  The medication dispense is the result of a pharmacy system responding to a medication order.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared"
                    }
                  ],
                  "key": "mdd-1",
                  "severity": "error",
                  "human": "whenHandedOver cannot be before whenPrepared",
                  "xpath": "not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value >= f:whenPrepared/@value)"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Supply[moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "MedicationDispense.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationDispense.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationDispense.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "MedicationDispense.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "MedicationDispense.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "MedicationDispense.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationDispense.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationDispense.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationDispense.identifier",
              "short": "External identifier",
              "definition": "Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "MedicationDispense.status",
              "short": "in-progress | on-hold | completed | entered-in-error | stopped",
              "definition": "A code specifying the state of the set of dispense events.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A code specifying the state of the dispense event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-dispense-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".status"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "MedicationDispense.patient",
              "short": "Who the dispense is for",
              "definition": "A link to a resource representing the person to whom the medication will be given.",
              "comments": "SubstanceAdministration->subject->Patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "MedicationDispense.dispenser",
              "short": "Practitioner responsible for dispensing medication",
              "definition": "The individual responsible for dispensing the medication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-10-Dispensing Provider / PRT-5-Participation Person: PRT-4-Participation='DP' (RXD-10 is deprecated)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].role[classCode=ASSIGN]"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "MedicationDispense.authorizingPrescription",
              "short": "Medication order that authorizes the dispense",
              "definition": "Indicates the medication order that is being dispensed against.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-2 Placer Order Number"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=FLFS].target[moodCode=RQO]"
                }
              ]
            },
            {
              "path": "MedicationDispense.type",
              "short": "Trial fill, partial fill, emergency fill, etc.",
              "definition": "Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActPharmacySupplyType"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-33-Dispense Type"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "MedicationDispense.quantity",
              "short": "Amount dispensed",
              "definition": "The amount of medication that has been dispensed. Includes unit of measure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system"
                },
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "MedicationDispense.daysSupply",
              "short": "Days Supply",
              "definition": "The amount of medication expressed as a timing amount.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationDispense.medication[x]",
              "short": "What medication was supplied",
              "definition": "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.",
              "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.  Note: do not use Medication.name to describe the dispensed medication. When the only available information is a text description of the medication, Medication.code.text should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-2-Dispense/Give Code"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PRD].role"
                }
              ]
            },
            {
              "path": "MedicationDispense.whenPrepared",
              "short": "Dispense processing time",
              "definition": "The time when the dispensed product was packaged and reviewed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-3-Date/Time Dispensed"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime[xmi:type=IVL_TS].low"
                }
              ]
            },
            {
              "path": "MedicationDispense.whenHandedOver",
              "short": "When product was given out",
              "definition": "The time the dispensed product was provided to the patient or their representative.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-3-Date/Time Dispensed"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime[xmi:type=IVL_TS].high"
                }
              ]
            },
            {
              "path": "MedicationDispense.destination",
              "short": "Where the medication was sent",
              "definition": "Identification of the facility/location where the medication was shipped to, as part of the dispense event.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-13 Dispense-to Location; RXD-30 Dispense to Pharmacy; RXD-31 Dispense to Pharmacy Address"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=DST].role"
                }
              ]
            },
            {
              "path": "MedicationDispense.receiver",
              "short": "Who collected the medication",
              "definition": "Identifies the person who picked up the medication.  This will usually be a patient or their caregiver, but some cases exist where it can be a healthcare professional.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=RCV].role"
                }
              ]
            },
            {
              "path": "MedicationDispense.note",
              "short": "Information about the dispense",
              "definition": "Extra information about the dispense that could not be conveyed in the other attributes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-9 Dispense Notes"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction",
              "short": "Medicine administration instructions to the patient/caregiver",
              "definition": "Indicates how the medication is to be used by the patient.",
              "comments": "When the dose or rate is intended to change over the entire administration period (e.g. Tapering dose prescriptions), multiple instances of dosage instructions will need to be supplied to convey the different doses/rates.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.text",
              "short": "Dosage Instructions",
              "definition": "Free text dosage instructions can be used for cases where the instructions are too complex to code. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationDispense.dosageInstruction.additionalInstructions",
              "short": "E.g. \"Take with food\"",
              "definition": "Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes identifying additional instructions such as \"take with water\" or \"avoid operating heavy machinery\""
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.timing",
              "short": "When medication should be administered",
              "definition": "The timing schedule for giving the medication to the patient.  The Schedule data type allows many different expressions.  For example, \"Every  8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\";  \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.asNeeded[x]",
              "short": "Take \"as needed\" f(or x)",
              "definition": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).  \n\nSpecifically if 'boolean' datatype is selected, then the following logic applies:  If set to True, this indicates that the medication is only taken when needed, within the specified schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "boolean: .outboundRelationship[typeCode=PRCN].negationInd (inversed - so negationInd = true means asNeeded=false  CodeableConcept: .outboundRelationship[typCode=PRCN].target[classCode=OBS, moodCode=EVN, isCriterionInd=true, code=\"Assertion\"].value"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.site[x]",
              "short": "Body site to administer to",
              "definition": "A coded specification of the anatomic site where the medication first enters the body.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/BodySite"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the site location the medicine enters into or onto the body",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/approach-site-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-2-Administration Site"
                },
                {
                  "identity": "rim",
                  "map": ".approachSiteCode"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.route",
              "short": "How drug should enter body",
              "definition": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/route-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-1-Route"
                },
                {
                  "identity": "rim",
                  "map": ".routeCode"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.method",
              "short": "Technique for administering medication",
              "definition": "A coded value indicating the method by which the medication is intended to be or was introduced into or on the body.",
              "comments": "This attribute will most often NOT be populated.  It is most commonly used for injections.  For example, Slow Push, Deep IV.  One of the reasons this attribute is not used often, is that the method is often pre-coordinated with the route and/or form of administration.  This means the codes used in route or form may pre-coordinate the method in the route code or the form code.  The implementation decision about what coding system to use for route or form code will determine how frequently the method code will be populated e.g. if route or form code pre-coordinate method code, then this attribute will not be populated often; if there is no pre-coordination then method code may  be used frequently.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the technique by which the medicine is administered"
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-4-Administration Method"
                },
                {
                  "identity": "rim",
                  "map": ".methodCode"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.dose[x]",
              "short": "Amount of medication per dose",
              "definition": "The amount of therapeutic or other substance given at one administration event.",
              "comments": "Note that this specifies the quantity of the specified medication, not the quantity of active ingredient(s).  The prescribed strength can be calculated by multiplying the doseQuantity by the strength of each active ingredient in the prescribed Medication. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Range"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-23-Give Rate Amount / RXE-24.1-Give Rate Units.code / RXE-24.3-Give Rate Units.name of coding system"
                },
                {
                  "identity": "rim",
                  "map": ".doseQuantity"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.rate[x]",
              "short": "Amount of medication per unit of time",
              "definition": "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                },
                {
                  "code": "Range"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-22-Give Per (Time Unit)"
                },
                {
                  "identity": "rim",
                  "map": ".rateQuantity"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.maxDosePerPeriod",
              "short": "Upper limit on medication per unit of time",
              "definition": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time,  e.g. 1000mg in 24 hours.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-4-Give Amount - Maximum / RXE-5-Give Units"
                },
                {
                  "identity": "rim",
                  "map": ".maxDoseQuantity"
                }
              ]
            },
            {
              "path": "MedicationDispense.substitution",
              "short": "Deals with substitution of one medicine for another",
              "definition": "Indicates whether or not substitution was made as part of the dispense.  In some cases substitution will be expected but does not happen, in other cases substitution is not expected but does happen.  This block explains what substitution did or did not happen and why.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=SUBST, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "MedicationDispense.substitution.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationDispense.substitution.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationDispense.substitution.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationDispense.substitution.type",
              "short": "Type of substitution",
              "definition": "A code signifying whether a different drug was dispensed from what was prescribed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXO-9-Allow Substitutions / RXE-9-Substitution Status"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "MedicationDispense.substitution.reason",
              "short": "Why was substitution made",
              "definition": "Indicates the reason for the substitution of (or lack of substitution) from what was prescribed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".reasonCode"
                }
              ]
            },
            {
              "path": "MedicationDispense.substitution.responsibleParty",
              "short": "Who is responsible for the substitution",
              "definition": "The person or organization that has primary responsibility for the substitution.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].role[classCode=ASSIGN]"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "MedicationDispense",
              "short": "Dispensing a medication to a named patient",
              "definition": "Indicates that a medication product is to be or has been dispensed for a named person/patient.  This includes a description of the medication product (supply) provided and the instructions for administering the medication.  The medication dispense is the result of a pharmacy system responding to a medication order.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared"
                    }
                  ],
                  "key": "mdd-1",
                  "severity": "error",
                  "human": "whenHandedOver cannot be before whenPrepared",
                  "xpath": "not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value >= f:whenPrepared/@value)"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Supply[moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "MedicationDispense.identifier",
              "short": "External identifier",
              "definition": "Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "MedicationDispense.status",
              "short": "in-progress | on-hold | completed | entered-in-error | stopped",
              "definition": "A code specifying the state of the set of dispense events.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A code specifying the state of the dispense event.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-dispense-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".status"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "MedicationDispense.patient",
              "short": "Who the dispense is for",
              "definition": "A link to a resource representing the person to whom the medication will be given.",
              "comments": "SubstanceAdministration->subject->Patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "MedicationDispense.dispenser",
              "short": "Practitioner responsible for dispensing medication",
              "definition": "The individual responsible for dispensing the medication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-10-Dispensing Provider / PRT-5-Participation Person: PRT-4-Participation='DP' (RXD-10 is deprecated)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].role[classCode=ASSIGN]"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "MedicationDispense.authorizingPrescription",
              "short": "Medication order that authorizes the dispense",
              "definition": "Indicates the medication order that is being dispensed against.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-2 Placer Order Number"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=FLFS].target[moodCode=RQO]"
                }
              ]
            },
            {
              "path": "MedicationDispense.type",
              "short": "Trial fill, partial fill, emergency fill, etc.",
              "definition": "Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActPharmacySupplyType"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-33-Dispense Type"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "MedicationDispense.quantity",
              "short": "Amount dispensed",
              "definition": "The amount of medication that has been dispensed. Includes unit of measure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system"
                },
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "MedicationDispense.daysSupply",
              "short": "Days Supply",
              "definition": "The amount of medication expressed as a timing amount.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationDispense.medication[x]",
              "short": "What medication was supplied",
              "definition": "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.",
              "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.  Note: do not use Medication.name to describe the dispensed medication. When the only available information is a text description of the medication, Medication.code.text should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-2-Dispense/Give Code"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PRD].role"
                }
              ]
            },
            {
              "path": "MedicationDispense.whenPrepared",
              "short": "Dispense processing time",
              "definition": "The time when the dispensed product was packaged and reviewed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-3-Date/Time Dispensed"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime[xmi:type=IVL_TS].low"
                }
              ]
            },
            {
              "path": "MedicationDispense.whenHandedOver",
              "short": "When product was given out",
              "definition": "The time the dispensed product was provided to the patient or their representative.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-3-Date/Time Dispensed"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime[xmi:type=IVL_TS].high"
                }
              ]
            },
            {
              "path": "MedicationDispense.destination",
              "short": "Where the medication was sent",
              "definition": "Identification of the facility/location where the medication was shipped to, as part of the dispense event.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-13 Dispense-to Location; RXD-30 Dispense to Pharmacy; RXD-31 Dispense to Pharmacy Address"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=DST].role"
                }
              ]
            },
            {
              "path": "MedicationDispense.receiver",
              "short": "Who collected the medication",
              "definition": "Identifies the person who picked up the medication.  This will usually be a patient or their caregiver, but some cases exist where it can be a healthcare professional.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=RCV].role"
                }
              ]
            },
            {
              "path": "MedicationDispense.note",
              "short": "Information about the dispense",
              "definition": "Extra information about the dispense that could not be conveyed in the other attributes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-9 Dispense Notes"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction",
              "short": "Medicine administration instructions to the patient/caregiver",
              "definition": "Indicates how the medication is to be used by the patient.",
              "comments": "When the dose or rate is intended to change over the entire administration period (e.g. Tapering dose prescriptions), multiple instances of dosage instructions will need to be supplied to convey the different doses/rates.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.text",
              "short": "Dosage Instructions",
              "definition": "Free text dosage instructions can be used for cases where the instructions are too complex to code. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationDispense.dosageInstruction.additionalInstructions",
              "short": "E.g. \"Take with food\"",
              "definition": "Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes identifying additional instructions such as \"take with water\" or \"avoid operating heavy machinery\""
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.timing",
              "short": "When medication should be administered",
              "definition": "The timing schedule for giving the medication to the patient.  The Schedule data type allows many different expressions.  For example, \"Every  8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\";  \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.asNeeded[x]",
              "short": "Take \"as needed\" f(or x)",
              "definition": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).  \n\nSpecifically if 'boolean' datatype is selected, then the following logic applies:  If set to True, this indicates that the medication is only taken when needed, within the specified schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "boolean: .outboundRelationship[typeCode=PRCN].negationInd (inversed - so negationInd = true means asNeeded=false  CodeableConcept: .outboundRelationship[typCode=PRCN].target[classCode=OBS, moodCode=EVN, isCriterionInd=true, code=\"Assertion\"].value"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.site[x]",
              "short": "Body site to administer to",
              "definition": "A coded specification of the anatomic site where the medication first enters the body.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/BodySite"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the site location the medicine enters into or onto the body",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/approach-site-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-2-Administration Site"
                },
                {
                  "identity": "rim",
                  "map": ".approachSiteCode"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.route",
              "short": "How drug should enter body",
              "definition": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/route-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-1-Route"
                },
                {
                  "identity": "rim",
                  "map": ".routeCode"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.method",
              "short": "Technique for administering medication",
              "definition": "A coded value indicating the method by which the medication is intended to be or was introduced into or on the body.",
              "comments": "This attribute will most often NOT be populated.  It is most commonly used for injections.  For example, Slow Push, Deep IV.  One of the reasons this attribute is not used often, is that the method is often pre-coordinated with the route and/or form of administration.  This means the codes used in route or form may pre-coordinate the method in the route code or the form code.  The implementation decision about what coding system to use for route or form code will determine how frequently the method code will be populated e.g. if route or form code pre-coordinate method code, then this attribute will not be populated often; if there is no pre-coordination then method code may  be used frequently.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the technique by which the medicine is administered"
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-4-Administration Method"
                },
                {
                  "identity": "rim",
                  "map": ".methodCode"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.dose[x]",
              "short": "Amount of medication per dose",
              "definition": "The amount of therapeutic or other substance given at one administration event.",
              "comments": "Note that this specifies the quantity of the specified medication, not the quantity of active ingredient(s).  The prescribed strength can be calculated by multiplying the doseQuantity by the strength of each active ingredient in the prescribed Medication. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Range"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-23-Give Rate Amount / RXE-24.1-Give Rate Units.code / RXE-24.3-Give Rate Units.name of coding system"
                },
                {
                  "identity": "rim",
                  "map": ".doseQuantity"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.rate[x]",
              "short": "Amount of medication per unit of time",
              "definition": "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                },
                {
                  "code": "Range"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-22-Give Per (Time Unit)"
                },
                {
                  "identity": "rim",
                  "map": ".rateQuantity"
                }
              ]
            },
            {
              "path": "MedicationDispense.dosageInstruction.maxDosePerPeriod",
              "short": "Upper limit on medication per unit of time",
              "definition": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time,  e.g. 1000mg in 24 hours.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-4-Give Amount - Maximum / RXE-5-Give Units"
                },
                {
                  "identity": "rim",
                  "map": ".maxDoseQuantity"
                }
              ]
            },
            {
              "path": "MedicationDispense.substitution",
              "short": "Deals with substitution of one medicine for another",
              "definition": "Indicates whether or not substitution was made as part of the dispense.  In some cases substitution will be expected but does not happen, in other cases substitution is not expected but does happen.  This block explains what substitution did or did not happen and why.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=SUBST, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "MedicationDispense.substitution.type",
              "short": "Type of substitution",
              "definition": "A code signifying whether a different drug was dispensed from what was prescribed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXO-9-Allow Substitutions / RXE-9-Substitution Status"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "MedicationDispense.substitution.reason",
              "short": "Why was substitution made",
              "definition": "Indicates the reason for the substitution of (or lack of substitution) from what was prescribed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".reasonCode"
                }
              ]
            },
            {
              "path": "MedicationDispense.substitution.responsibleParty",
              "short": "Who is responsible for the substitution",
              "definition": "The person or organization that has primary responsibility for the substitution.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].role[classCode=ASSIGN]"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicationOrder",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "MedicationOrder",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/MedicationOrder",
        "name": "MedicationOrder",
        "status": "draft",
        "publisher": "Health Level Seven International (Pharmacy)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/medication/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for MedicationOrder Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "MedicationOrder",
              "short": "Prescription of medication to for patient",
              "definition": "An order for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationOrder\" rather than \"MedicationPrescription\" to generalize the use across inpatient and outpatient settings as well as for care plans, etc.",
              "alias": [
                "Prescription"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "CombinedMedicationRequest"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "MedicationOrder.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationOrder.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationOrder.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "MedicationOrder.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "MedicationOrder.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "MedicationOrder.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationOrder.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationOrder.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationOrder.identifier",
              "short": "External identifier",
              "definition": "External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created.  This is particularly important where FHIR only provides part of an entire workflow process where records have to be tracked through an entire system.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number"
                },
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "MedicationOrder.dateWritten",
              "short": "When prescription was authorized",
              "definition": "The date (and perhaps time) when the prescription was written.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction"
                },
                {
                  "identity": "rim",
                  "map": "author.time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "MedicationOrder.status",
              "short": "active | on-hold | completed | entered-in-error | stopped | draft",
              "definition": "A code specifying the state of the order.  Generally this will be active or completed state.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A code specifying the state of the prescribing event. Describes the lifecycle of the prescription.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-order-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "MedicationOrder.dateEnded",
              "short": "When prescription was stopped",
              "definition": "The date (and perhaps time) when the prescription was stopped.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationOrder.reasonEnded",
              "short": "Why prescription was stopped",
              "definition": "The reason why the prescription was stopped, if it was.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes indicating why the medication was terminated; e.g. Adverse reaction, medication change, issue resolved, etc."
              }
            },
            {
              "path": "MedicationOrder.patient",
              "short": "Who prescription is for",
              "definition": "A link to a resource representing the person to whom the medication will be given.",
              "comments": "SubstanceAdministration->subject->Patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List"
                },
                {
                  "identity": "rim",
                  "map": "subject.role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "MedicationOrder.prescriber",
              "short": "Who ordered the medication(s)",
              "definition": "The healthcare professional responsible for authorizing the prescription.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Treatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)"
                },
                {
                  "identity": "rim",
                  "map": "author.role"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "MedicationOrder.encounter",
              "short": "Created during encounter/admission/stay",
              "definition": "A link to a resource that identifies the particular occurrence of contact between patient and health care provider.",
              "comments": "SubstanceAdministration->component->EncounterEvent.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19-Visit Number"
                },
                {
                  "identity": "rim",
                  "map": "componentOf.patientEncounter"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "MedicationOrder.reason[x]",
              "short": "Reason or indication for writing the prescription",
              "definition": "Can be the reason or the indication for writing the prescription.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes indicating why the medication was ordered.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-16-Order Control Code Reason /RXE-27-Give Indication/RXO-20-Indication / RXD-21-Indication / RXG-22-Indication / RXA-19-Indication"
                },
                {
                  "identity": "rim",
                  "map": "reason.observation or reason.observation[code=ASSERTION].value"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "MedicationOrder.note",
              "short": "Information about the prescription",
              "definition": "Extra information about the prescription that could not be conveyed by the other attributes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationOrder.medication[x]",
              "short": "Medication to be taken",
              "definition": "Identifies the medication being administered. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.",
              "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.  Note: do not use Medication.name to describe the prescribed medication. When the only available information is a text description of the medication, Medication.code.text should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code"
                },
                {
                  "identity": "rim",
                  "map": "consumable.administrableMedication"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction",
              "short": "How medication should be taken",
              "definition": "Indicates how the medication is to be used by the patient.",
              "comments": "When the dose or rate is intended to change over the entire administration period, e.g. Tapering dose prescriptions, multiple instances of dosage instructions will need to be supplied to convey the different doses/rates. Another common example in institutional settings is 'titration' of an IV medication dose to maintain a specific stated hemodynamic value or range e.g. drug x to be administered to maintain AM (arterial mean) greater than 65.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "component.substanceAdministrationRequest"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.text",
              "short": "Dosage instructions expressed as text",
              "definition": "Free text dosage instructions can be used for cases where the instructions are too complex to code.  The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated.  If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-7.2-Provider's Administration Instructions.text / RXO-7.2-Provider's Administration Instructions.text / TQ1-10-Condition Text / TQ1-11-Text Instruction"
                },
                {
                  "identity": "rim",
                  "map": "text"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.additionalInstructions",
              "short": "Supplemental instructions - e.g. \"with meals\"",
              "definition": "Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes identifying additional instructions such as \"take with water\" or \"avoid operating heavy machinery\"."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-7.2-Provider's Administration Instructions.text / RXO-7.2-Provider's Administration Instructions.text / TQ1-10-Condition Text / TQ1-11-Text Instruction"
                },
                {
                  "identity": "rim",
                  "map": "component.substanceAdministrationRequest.text"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.timing",
              "short": "When medication should be administered",
              "definition": "The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions. For example: \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".",
              "comments": "This attribute may not always be populated while the DosageInstruction.text is expected to be populated.  If both are populated, then the DosageInstruction.text should reflect the content of the Dosage.timing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "TQ1-X / ORC Quantity/timing"
                },
                {
                  "identity": "rim",
                  "map": "effectiveTime"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.asNeeded[x]",
              "short": "Take \"as needed\" (for x)",
              "definition": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).",
              "comments": "Specifically if 'boolean' datatype is selected, then the following logic applies:  If set to True, this indicates that the medication is only taken when needed, within the specified schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false  CodeableConcept: precondition.observationEventCriterion[code=\"Assertion\"].value"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.site[x]",
              "short": "Body site to administer to",
              "definition": "A coded specification of the anatomic site where the medication first enters the body.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/BodySite"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the site location the medicine enters into or onto the body.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/approach-site-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-2-Administration Site"
                },
                {
                  "identity": "rim",
                  "map": "approachSiteCode"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.route",
              "short": "How drug should enter body",
              "definition": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/route-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-1-Route"
                },
                {
                  "identity": "rim",
                  "map": "routeCode"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.method",
              "short": "Technique for administering medication",
              "definition": "A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections.  For examples, Slow Push; Deep IV.",
              "comments": "Terminologies used often pre-coordinate this term with the route and or form of administration.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the technique by which the medicine is administered."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-4-Administration Method"
                },
                {
                  "identity": "rim",
                  "map": "methodCode"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.dose[x]",
              "short": "Amount of medication per dose",
              "definition": "The amount of therapeutic or other substance given at one administration event.",
              "comments": "Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Range"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-23-Give Rate Amount / RXE-24.1-Give Rate Units.code / RXE-24.3-Give Rate Units.name of coding system"
                },
                {
                  "identity": "rim",
                  "map": "doseQuantity"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.rate[x]",
              "short": "Amount of medication per unit of time",
              "definition": "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.",
              "comments": "It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationOrder with an updated rate, or captured with a new MedicationOrder with the new rate.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                },
                {
                  "code": "Range"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-22-Give Per (Time Unit)"
                },
                {
                  "identity": "rim",
                  "map": "rateQuantity"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.maxDosePerPeriod",
              "short": "Upper limit on medication per unit of time",
              "definition": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time.  For example, 1000mg in 24 hours.",
              "comments": "This is intended for use as an adjunct to the dosage when there is an upper cap.  For example \"2 tablets every 4 hours to a maximum of 8/day\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-4-Give Amount - Maximum / RXE-5-Give Units"
                },
                {
                  "identity": "rim",
                  "map": "maxDoseQuantity"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest",
              "short": "Medication supply authorization",
              "definition": "Indicates the specific details for the dispense or medication supply part of a medication order (also known as a Medication Prescription).  Note that this information is NOT always sent with the order.  There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "component.supplyEvent"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.medication[x]",
              "short": "Product to be supplied",
              "definition": "Identifies the medication being administered. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.",
              "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
                },
                {
                  "identity": "rim",
                  "map": "consumable.role"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.validityPeriod",
              "short": "Time period supply is authorized for",
              "definition": "This indicates the validity period of a prescription (stale dating the Prescription).",
              "comments": "It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations.",
              "requirements": "Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "effectiveTime"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.numberOfRepeatsAllowed",
              "short": "Number of refills authorized",
              "definition": "An integer indicating the number of additional times (aka refills or repeats) the patient can receive the prescribed medication.   Usage Notes: This integer does NOT include the original order dispense.   This means that if an order indicates dispense 30 tablets plus  \"3 repeats\", then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets.",
              "comments": "If displaying \"number of authorized refills\", subtract 1 from this number.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-12-Number of Refills"
                },
                {
                  "identity": "rim",
                  "map": "repeatNumber"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.quantity",
              "short": "Amount of medication to supply per dispense",
              "definition": "The amount that is to be dispensed for one fill.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system"
                },
                {
                  "identity": "rim",
                  "map": "quantity"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.expectedSupplyDuration",
              "short": "Number of days supply per dispense",
              "definition": "Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last.",
              "comments": "In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Duration"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "expectedUseTime"
                }
              ]
            },
            {
              "path": "MedicationOrder.substitution",
              "short": "Any restrictions on medication substitution",
              "definition": "Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "subjectOf.substitutionPersmission"
                }
              ]
            },
            {
              "path": "MedicationOrder.substitution.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationOrder.substitution.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationOrder.substitution.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationOrder.substitution.type",
              "short": "generic | formulary +",
              "definition": "A code signifying whether a different drug should be dispensed from what was prescribed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXO-9-Allow Substitutions / RXE-9-Substitution Status"
                },
                {
                  "identity": "rim",
                  "map": "code"
                }
              ]
            },
            {
              "path": "MedicationOrder.substitution.reason",
              "short": "Why should (not) substitution be made",
              "definition": "Indicates the reason for the substitution, or why substitution must or must not be performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-9 Substition status"
                },
                {
                  "identity": "rim",
                  "map": "reasonCode"
                }
              ]
            },
            {
              "path": "MedicationOrder.priorPrescription",
              "short": "An order/prescription that this supersedes",
              "definition": "A link to a resource representing an earlier order or prescription that this order supersedes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "MedicationOrder",
              "short": "Prescription of medication to for patient",
              "definition": "An order for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationOrder\" rather than \"MedicationPrescription\" to generalize the use across inpatient and outpatient settings as well as for care plans, etc.",
              "alias": [
                "Prescription"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "CombinedMedicationRequest"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "MedicationOrder.identifier",
              "short": "External identifier",
              "definition": "External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created.  This is particularly important where FHIR only provides part of an entire workflow process where records have to be tracked through an entire system.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number"
                },
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "MedicationOrder.dateWritten",
              "short": "When prescription was authorized",
              "definition": "The date (and perhaps time) when the prescription was written.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction"
                },
                {
                  "identity": "rim",
                  "map": "author.time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "MedicationOrder.status",
              "short": "active | on-hold | completed | entered-in-error | stopped | draft",
              "definition": "A code specifying the state of the order.  Generally this will be active or completed state.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A code specifying the state of the prescribing event. Describes the lifecycle of the prescription.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-order-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "MedicationOrder.dateEnded",
              "short": "When prescription was stopped",
              "definition": "The date (and perhaps time) when the prescription was stopped.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationOrder.reasonEnded",
              "short": "Why prescription was stopped",
              "definition": "The reason why the prescription was stopped, if it was.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes indicating why the medication was terminated; e.g. Adverse reaction, medication change, issue resolved, etc."
              }
            },
            {
              "path": "MedicationOrder.patient",
              "short": "Who prescription is for",
              "definition": "A link to a resource representing the person to whom the medication will be given.",
              "comments": "SubstanceAdministration->subject->Patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List"
                },
                {
                  "identity": "rim",
                  "map": "subject.role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "MedicationOrder.prescriber",
              "short": "Who ordered the medication(s)",
              "definition": "The healthcare professional responsible for authorizing the prescription.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Treatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)"
                },
                {
                  "identity": "rim",
                  "map": "author.role"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "MedicationOrder.encounter",
              "short": "Created during encounter/admission/stay",
              "definition": "A link to a resource that identifies the particular occurrence of contact between patient and health care provider.",
              "comments": "SubstanceAdministration->component->EncounterEvent.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19-Visit Number"
                },
                {
                  "identity": "rim",
                  "map": "componentOf.patientEncounter"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "MedicationOrder.reason[x]",
              "short": "Reason or indication for writing the prescription",
              "definition": "Can be the reason or the indication for writing the prescription.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes indicating why the medication was ordered.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-16-Order Control Code Reason /RXE-27-Give Indication/RXO-20-Indication / RXD-21-Indication / RXG-22-Indication / RXA-19-Indication"
                },
                {
                  "identity": "rim",
                  "map": "reason.observation or reason.observation[code=ASSERTION].value"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "MedicationOrder.note",
              "short": "Information about the prescription",
              "definition": "Extra information about the prescription that could not be conveyed by the other attributes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationOrder.medication[x]",
              "short": "Medication to be taken",
              "definition": "Identifies the medication being administered. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.",
              "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.  Note: do not use Medication.name to describe the prescribed medication. When the only available information is a text description of the medication, Medication.code.text should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code"
                },
                {
                  "identity": "rim",
                  "map": "consumable.administrableMedication"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction",
              "short": "How medication should be taken",
              "definition": "Indicates how the medication is to be used by the patient.",
              "comments": "When the dose or rate is intended to change over the entire administration period, e.g. Tapering dose prescriptions, multiple instances of dosage instructions will need to be supplied to convey the different doses/rates. Another common example in institutional settings is 'titration' of an IV medication dose to maintain a specific stated hemodynamic value or range e.g. drug x to be administered to maintain AM (arterial mean) greater than 65.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "component.substanceAdministrationRequest"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.text",
              "short": "Dosage instructions expressed as text",
              "definition": "Free text dosage instructions can be used for cases where the instructions are too complex to code.  The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated.  If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-7.2-Provider's Administration Instructions.text / RXO-7.2-Provider's Administration Instructions.text / TQ1-10-Condition Text / TQ1-11-Text Instruction"
                },
                {
                  "identity": "rim",
                  "map": "text"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.additionalInstructions",
              "short": "Supplemental instructions - e.g. \"with meals\"",
              "definition": "Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes identifying additional instructions such as \"take with water\" or \"avoid operating heavy machinery\"."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-7.2-Provider's Administration Instructions.text / RXO-7.2-Provider's Administration Instructions.text / TQ1-10-Condition Text / TQ1-11-Text Instruction"
                },
                {
                  "identity": "rim",
                  "map": "component.substanceAdministrationRequest.text"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.timing",
              "short": "When medication should be administered",
              "definition": "The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions. For example: \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".",
              "comments": "This attribute may not always be populated while the DosageInstruction.text is expected to be populated.  If both are populated, then the DosageInstruction.text should reflect the content of the Dosage.timing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "TQ1-X / ORC Quantity/timing"
                },
                {
                  "identity": "rim",
                  "map": "effectiveTime"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.asNeeded[x]",
              "short": "Take \"as needed\" (for x)",
              "definition": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).",
              "comments": "Specifically if 'boolean' datatype is selected, then the following logic applies:  If set to True, this indicates that the medication is only taken when needed, within the specified schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false  CodeableConcept: precondition.observationEventCriterion[code=\"Assertion\"].value"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.site[x]",
              "short": "Body site to administer to",
              "definition": "A coded specification of the anatomic site where the medication first enters the body.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/BodySite"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the site location the medicine enters into or onto the body.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/approach-site-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-2-Administration Site"
                },
                {
                  "identity": "rim",
                  "map": "approachSiteCode"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.route",
              "short": "How drug should enter body",
              "definition": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/route-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-1-Route"
                },
                {
                  "identity": "rim",
                  "map": "routeCode"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.method",
              "short": "Technique for administering medication",
              "definition": "A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections.  For examples, Slow Push; Deep IV.",
              "comments": "Terminologies used often pre-coordinate this term with the route and or form of administration.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the technique by which the medicine is administered."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXR-4-Administration Method"
                },
                {
                  "identity": "rim",
                  "map": "methodCode"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.dose[x]",
              "short": "Amount of medication per dose",
              "definition": "The amount of therapeutic or other substance given at one administration event.",
              "comments": "Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Range"
                },
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-23-Give Rate Amount / RXE-24.1-Give Rate Units.code / RXE-24.3-Give Rate Units.name of coding system"
                },
                {
                  "identity": "rim",
                  "map": "doseQuantity"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.rate[x]",
              "short": "Amount of medication per unit of time",
              "definition": "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.",
              "comments": "It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationOrder with an updated rate, or captured with a new MedicationOrder with the new rate.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                },
                {
                  "code": "Range"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-22-Give Per (Time Unit)"
                },
                {
                  "identity": "rim",
                  "map": "rateQuantity"
                }
              ]
            },
            {
              "path": "MedicationOrder.dosageInstruction.maxDosePerPeriod",
              "short": "Upper limit on medication per unit of time",
              "definition": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time.  For example, 1000mg in 24 hours.",
              "comments": "This is intended for use as an adjunct to the dosage when there is an upper cap.  For example \"2 tablets every 4 hours to a maximum of 8/day\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-4-Give Amount - Maximum / RXE-5-Give Units"
                },
                {
                  "identity": "rim",
                  "map": "maxDoseQuantity"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest",
              "short": "Medication supply authorization",
              "definition": "Indicates the specific details for the dispense or medication supply part of a medication order (also known as a Medication Prescription).  Note that this information is NOT always sent with the order.  There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "component.supplyEvent"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.medication[x]",
              "short": "Product to be supplied",
              "definition": "Identifies the medication being administered. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.",
              "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
                },
                {
                  "identity": "rim",
                  "map": "consumable.role"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.validityPeriod",
              "short": "Time period supply is authorized for",
              "definition": "This indicates the validity period of a prescription (stale dating the Prescription).",
              "comments": "It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations.",
              "requirements": "Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "effectiveTime"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.numberOfRepeatsAllowed",
              "short": "Number of refills authorized",
              "definition": "An integer indicating the number of additional times (aka refills or repeats) the patient can receive the prescribed medication.   Usage Notes: This integer does NOT include the original order dispense.   This means that if an order indicates dispense 30 tablets plus  \"3 repeats\", then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets.",
              "comments": "If displaying \"number of authorized refills\", subtract 1 from this number.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "positiveInt"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-12-Number of Refills"
                },
                {
                  "identity": "rim",
                  "map": "repeatNumber"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.quantity",
              "short": "Amount of medication to supply per dispense",
              "definition": "The amount that is to be dispensed for one fill.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system"
                },
                {
                  "identity": "rim",
                  "map": "quantity"
                }
              ]
            },
            {
              "path": "MedicationOrder.dispenseRequest.expectedSupplyDuration",
              "short": "Number of days supply per dispense",
              "definition": "Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last.",
              "comments": "In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Duration"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "expectedUseTime"
                }
              ]
            },
            {
              "path": "MedicationOrder.substitution",
              "short": "Any restrictions on medication substitution",
              "definition": "Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "subjectOf.substitutionPersmission"
                }
              ]
            },
            {
              "path": "MedicationOrder.substitution.type",
              "short": "generic | formulary +",
              "definition": "A code signifying whether a different drug should be dispensed from what was prescribed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXO-9-Allow Substitutions / RXE-9-Substitution Status"
                },
                {
                  "identity": "rim",
                  "map": "code"
                }
              ]
            },
            {
              "path": "MedicationOrder.substitution.reason",
              "short": "Why should (not) substitution be made",
              "definition": "Indicates the reason for the substitution, or why substitution must or must not be performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-9 Substition status"
                },
                {
                  "identity": "rim",
                  "map": "reasonCode"
                }
              ]
            },
            {
              "path": "MedicationOrder.priorPrescription",
              "short": "An order/prescription that this supersedes",
              "definition": "A link to a resource representing an earlier order or prescription that this order supersedes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/MedicationOrder"
                  ]
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "MedicationStatement",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
        "name": "MedicationStatement",
        "status": "draft",
        "publisher": "Health Level Seven International (Pharmacy)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/medication/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for MedicationStatement Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "MedicationStatement",
              "short": "Record of medication being taken by a patient",
              "definition": "A record of a medication that is being consumed by a patient.   A MedicationStatement may indicate that the patient may be taking the medication now, or has taken the medication in the past or will be taking the medication in the future.  The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician.  A common scenario where this information is captured is during the history taking process during a patient visit or stay.   The medication information may come from e.g. the patient's memory, from a prescription bottle,  or from a list of medications the patient, clinician or other party maintains \r\rThe primary difference between a medication statement and a medication administration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication.  A medication statement is often, if not always, less specific.  There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise.  As stated earlier, the medication statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains.  Medication administration is more formal and is not missing detailed information.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "reasonForUse[x].empty() or wasNotTaken = false"
                    }
                  ],
                  "key": "mst-2",
                  "severity": "error",
                  "human": "Reason for use is only permitted if wasNotTaken is false",
                  "xpath": "not(exists(*[starts-with(local-name(.), 'reasonForUse')]) and f:wasNotTaken/@value=true())"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "reasonNotTaken.empty() or wasNotTaken = true"
                    }
                  ],
                  "key": "mst-1",
                  "severity": "error",
                  "human": "Reason not taken is only permitted if wasNotTaken is true",
                  "xpath": "not(exists(f:reasonNotTaken) and f:wasNotTaken/@value=false())"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "MedicationStatement.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationStatement.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationStatement.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "MedicationStatement.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "MedicationStatement.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "MedicationStatement.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationStatement.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationStatement.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationStatement.identifier",
              "short": "External identifier",
              "definition": "External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource.  The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event.  Particularly important if these records have to be updated.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration.id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "MedicationStatement.patient",
              "short": "Who is/was taking  the medication",
              "definition": "The person or animal who is/was taking the medication.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List"
                },
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration->subject->Patient"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "MedicationStatement.informationSource",
              "definition": "The person who provided the information about the taking of this medication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.source"
                }
              ]
            },
            {
              "path": "MedicationStatement.dateAsserted",
              "short": "When the statement was asserted?",
              "definition": "The date when the medication statement was asserted by the information source.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationStatement.status",
              "short": "active | completed | entered-in-error | intended",
              "definition": "A code representing the patient or other source's judgment about the state of the medication used that this statement is about.  Generally this will be active or completed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A set of codes indicating the current status of a MedicationStatement.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-statement-status"
                }
              }
            },
            {
              "path": "MedicationStatement.wasNotTaken",
              "short": "True if medication is/was not being taken",
              "definition": "Set this to true if the record is saying that the medication was NOT taken.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "If this is missing, then the medication was taken",
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration.actionNegationInd"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "MedicationStatement.reasonNotTaken",
              "short": "True if asserting medication was not given",
              "definition": "A code indicating why the medication was not taken.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "mst-1"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A set of codes indicating the reason why the MedicationAdministration is negated.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration->Reason->Observation->Value"
                }
              ]
            },
            {
              "path": "MedicationStatement.reasonForUse[x]",
              "definition": "A reason for why the medication is being/was taken.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes identifying why the medication is being taken.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              }
            },
            {
              "path": "MedicationStatement.effective[x]",
              "short": "Over what period was medication consumed?",
              "definition": "The interval of time during which it is being asserted that the patient was taking the medication (or was not taking, when the wasNotGiven element is true).",
              "comments": "If the medication is still being taken at the time the statement is recorded, the \"end\" date will be omitted.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration.effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "MedicationStatement.note",
              "short": "Further information about the statement",
              "definition": "Provides extra information about the medication statement that is not conveyed by the other attributes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationStatement.supportingInformation",
              "short": "Additional supporting information",
              "definition": "Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement.",
              "comments": "Likely references would be to MedicationOrder, MedicationDispense, Claim, Observation or QuestionnaireAnswers.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationStatement.medication[x]",
              "short": "What medication was taken",
              "definition": "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.",
              "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.  Note: do not use Medication.name to describe the medication this statement concerns. When the only available information is a text description of the medication, Medication.code.text should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration>Component>SubstanceAdministrationRequest.consumable"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage",
              "short": "Details of how medication was taken",
              "definition": "Indicates how the medication is/was used by the patient.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration>Component>SubstanceAdministrationRequest"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.text",
              "short": "Reported dosage information",
              "definition": "Free text dosage information as reported about a patient's medication use. When coded dosage information is present, the free text may still be present for display to humans.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationStatement.dosage.timing",
              "short": "When/how often was medication taken",
              "definition": "The timing schedule for giving the medication to the patient.  The Schedule data type allows many different expressions, for example.  \"Every  8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\";  \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.asNeeded[x]",
              "short": "Take \"as needed\" (for x)",
              "definition": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).  \n\nSpecifically if 'boolean' datatype is selected, then the following logic applies:  If set to True, this indicates that the medication is only taken when needed, within the specified schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "boolean: .outboundRelationship[typeCode=PRCN].negationInd (inversed - so negationInd = true means asNeeded=false  CodeableConcept: .outboundRelationship[typCode=PRCN].target[classCode=OBS, moodCode=EVN, isCriterionInd=true, code=\"Assertion\"].value"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.site[x]",
              "short": "Where (on body) medication is/was administered",
              "definition": "A coded specification of or a reference to the anatomic site where the medication first enters the body.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/BodySite"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the site location the medicine enters into or onto the body.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/approach-site-codes"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".approachSiteCode"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.route",
              "short": "How the medication entered the body",
              "definition": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/route-codes"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".routeCode"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.method",
              "short": "Technique used to administer medication",
              "definition": "A coded value indicating the method by which the medication is intended to be or was introduced into or on the body.  This attribute will most often NOT be populated.  It is most commonly used for injections.  For example, Slow Push, Deep IV.",
              "comments": "One of the reasons this attribute is not used often, is that the method is often pre-coordinated with the route and/or form of administration.  This means the codes used in route or form may pre-coordinate the method in the route code or the form code.  The implementation decision about what coding system to use for route or form code will determine how frequently the method code will be populated e.g. if route or form code pre-coordinate method code, then this attribute will not be populated often; if there is no pre-coordination then method code may  be used frequently.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the technique by which the medicine is administered."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".methodCode"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.quantity[x]",
              "short": "Amount administered in one dose",
              "definition": "The amount of therapeutic or other substance given at one administration event.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                },
                {
                  "code": "Range"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".doseQuantity"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.rate[x]",
              "short": "Dose quantity per unit of time",
              "definition": "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                },
                {
                  "code": "Range"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".rateQuantity"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.maxDosePerPeriod",
              "short": "Maximum dose that was consumed per unit of time",
              "definition": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time.  For example, 1000mg in 24 hours.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".maxDoseQuantity"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "MedicationStatement",
              "short": "Record of medication being taken by a patient",
              "definition": "A record of a medication that is being consumed by a patient.   A MedicationStatement may indicate that the patient may be taking the medication now, or has taken the medication in the past or will be taking the medication in the future.  The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician.  A common scenario where this information is captured is during the history taking process during a patient visit or stay.   The medication information may come from e.g. the patient's memory, from a prescription bottle,  or from a list of medications the patient, clinician or other party maintains \r\rThe primary difference between a medication statement and a medication administration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication.  A medication statement is often, if not always, less specific.  There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise.  As stated earlier, the medication statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains.  Medication administration is more formal and is not missing detailed information.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "reasonForUse[x].empty() or wasNotTaken = false"
                    }
                  ],
                  "key": "mst-2",
                  "severity": "error",
                  "human": "Reason for use is only permitted if wasNotTaken is false",
                  "xpath": "not(exists(*[starts-with(local-name(.), 'reasonForUse')]) and f:wasNotTaken/@value=true())"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "reasonNotTaken.empty() or wasNotTaken = true"
                    }
                  ],
                  "key": "mst-1",
                  "severity": "error",
                  "human": "Reason not taken is only permitted if wasNotTaken is true",
                  "xpath": "not(exists(f:reasonNotTaken) and f:wasNotTaken/@value=false())"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration"
                },
                {
                  "identity": "w5",
                  "map": "clinical.medication"
                }
              ]
            },
            {
              "path": "MedicationStatement.identifier",
              "short": "External identifier",
              "definition": "External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource.  The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event.  Particularly important if these records have to be updated.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration.id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "MedicationStatement.patient",
              "short": "Who is/was taking  the medication",
              "definition": "The person or animal who is/was taking the medication.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List"
                },
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration->subject->Patient"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "MedicationStatement.informationSource",
              "definition": "The person who provided the information about the taking of this medication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.source"
                }
              ]
            },
            {
              "path": "MedicationStatement.dateAsserted",
              "short": "When the statement was asserted?",
              "definition": "The date when the medication statement was asserted by the information source.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationStatement.status",
              "short": "active | completed | entered-in-error | intended",
              "definition": "A code representing the patient or other source's judgment about the state of the medication used that this statement is about.  Generally this will be active or completed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A set of codes indicating the current status of a MedicationStatement.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/medication-statement-status"
                }
              }
            },
            {
              "path": "MedicationStatement.wasNotTaken",
              "short": "True if medication is/was not being taken",
              "definition": "Set this to true if the record is saying that the medication was NOT taken.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "If this is missing, then the medication was taken",
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration.actionNegationInd"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "MedicationStatement.reasonNotTaken",
              "short": "True if asserting medication was not given",
              "definition": "A code indicating why the medication was not taken.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "mst-1"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A set of codes indicating the reason why the MedicationAdministration is negated.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration->Reason->Observation->Value"
                }
              ]
            },
            {
              "path": "MedicationStatement.reasonForUse[x]",
              "definition": "A reason for why the medication is being/was taken.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes identifying why the medication is being taken.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              }
            },
            {
              "path": "MedicationStatement.effective[x]",
              "short": "Over what period was medication consumed?",
              "definition": "The interval of time during which it is being asserted that the patient was taking the medication (or was not taking, when the wasNotGiven element is true).",
              "comments": "If the medication is still being taken at the time the statement is recorded, the \"end\" date will be omitted.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration.effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "MedicationStatement.note",
              "short": "Further information about the statement",
              "definition": "Provides extra information about the medication statement that is not conveyed by the other attributes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationStatement.supportingInformation",
              "short": "Additional supporting information",
              "definition": "Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement.",
              "comments": "Likely references would be to MedicationOrder, MedicationDispense, Claim, Observation or QuestionnaireAnswers.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationStatement.medication[x]",
              "short": "What medication was taken",
              "definition": "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.",
              "comments": "If only a code is specified, then it needs to be a code for a specific product.  If more information is required, then the use of the medication resource is recommended.  Note: do not use Medication.name to describe the medication this statement concerns. When the only available information is a text description of the medication, Medication.code.text should be used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration>Component>SubstanceAdministrationRequest.consumable"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage",
              "short": "Details of how medication was taken",
              "definition": "Indicates how the medication is/was used by the patient.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SubstanceAdministration>Component>SubstanceAdministrationRequest"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.text",
              "short": "Reported dosage information",
              "definition": "Free text dosage information as reported about a patient's medication use. When coded dosage information is present, the free text may still be present for display to humans.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MedicationStatement.dosage.timing",
              "short": "When/how often was medication taken",
              "definition": "The timing schedule for giving the medication to the patient.  The Schedule data type allows many different expressions, for example.  \"Every  8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\";  \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.asNeeded[x]",
              "short": "Take \"as needed\" (for x)",
              "definition": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).  \n\nSpecifically if 'boolean' datatype is selected, then the following logic applies:  If set to True, this indicates that the medication is only taken when needed, within the specified schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "boolean: .outboundRelationship[typeCode=PRCN].negationInd (inversed - so negationInd = true means asNeeded=false  CodeableConcept: .outboundRelationship[typCode=PRCN].target[classCode=OBS, moodCode=EVN, isCriterionInd=true, code=\"Assertion\"].value"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.site[x]",
              "short": "Where (on body) medication is/was administered",
              "definition": "A coded specification of or a reference to the anatomic site where the medication first enters the body.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/BodySite"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the site location the medicine enters into or onto the body.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/approach-site-codes"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".approachSiteCode"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.route",
              "short": "How the medication entered the body",
              "definition": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/route-codes"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".routeCode"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.method",
              "short": "Technique used to administer medication",
              "definition": "A coded value indicating the method by which the medication is intended to be or was introduced into or on the body.  This attribute will most often NOT be populated.  It is most commonly used for injections.  For example, Slow Push, Deep IV.",
              "comments": "One of the reasons this attribute is not used often, is that the method is often pre-coordinated with the route and/or form of administration.  This means the codes used in route or form may pre-coordinate the method in the route code or the form code.  The implementation decision about what coding system to use for route or form code will determine how frequently the method code will be populated e.g. if route or form code pre-coordinate method code, then this attribute will not be populated often; if there is no pre-coordination then method code may  be used frequently.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the technique by which the medicine is administered."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".methodCode"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.quantity[x]",
              "short": "Amount administered in one dose",
              "definition": "The amount of therapeutic or other substance given at one administration event.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                },
                {
                  "code": "Range"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".doseQuantity"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.rate[x]",
              "short": "Dose quantity per unit of time",
              "definition": "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                },
                {
                  "code": "Range"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".rateQuantity"
                }
              ]
            },
            {
              "path": "MedicationStatement.dosage.maxDosePerPeriod",
              "short": "Maximum dose that was consumed per unit of time",
              "definition": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time.  For example, 1000mg in 24 hours.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".maxDoseQuantity"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/MessageHeader-process-message",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "MessageHeader-process-message",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/MessageHeader-process-message",
        "name": "Process Message",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "This operation accepts a message, processes it according to the definition of the event in the message header, and returns a one or more response messages.  This  operation is described in detail [on the messaging page](messaging.html#process)",
        "code": "process-message",
        "notes": "This operation does not use the parameters resource; the parameters \"async\" and \"response-url\" always go in the URL, if they are used, and the message parameter is always the body of the HTTP message",
        "system": true,
        "instance": false,
        "parameter": [
          {
            "name": "content",
            "use": "in",
            "min": 1,
            "max": "1",
            "documentation": "The message to process (or, if using asynchronous messaging, it may be a response message to accept)",
            "type": "Bundle"
          },
          {
            "name": "async",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "If 'true' the message is processed using the asynchronous messaging pattern",
            "type": "boolean"
          },
          {
            "name": "response-url",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A URL to submit response messages to, if asynchronous messaging is being used, and if the MessageHeader.source.endpoint is not the appropriate place to submit responses",
            "type": "uri"
          },
          {
            "name": "return",
            "use": "out",
            "min": 0,
            "max": "1",
            "documentation": "A response message, if synchronous messaging is being used (mandatory in this case). For asynchronous messaging, there is no return value",
            "type": "Bundle"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/MessageHeader",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "MessageHeader",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/MessageHeader",
        "name": "MessageHeader",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for MessageHeader Resource",
        "requirements": "Many implementations are not prepared to use REST and need a messaging based infrastructure.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "MessageHeader",
              "short": "A resource that describes a message that is exchanged between systems",
              "definition": "The header for a message exchange that is either requesting or responding to an action.  The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH / MSA / ERR"
                },
                {
                  "identity": "rim",
                  "map": "Message"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.exchange"
                }
              ]
            },
            {
              "path": "MessageHeader.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MessageHeader.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "MessageHeader.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "MessageHeader.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "MessageHeader.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "MessageHeader.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MessageHeader.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MessageHeader.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MessageHeader.timestamp",
              "short": "Time that the message was sent",
              "definition": "The time that the message was sent.",
              "requirements": "Allows limited detection of out-of-order and delayed transmission.  Also supports audit.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH-7"
                },
                {
                  "identity": "rim",
                  "map": "./creationTime[isNormalDatatype()]"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "MessageHeader.event",
              "short": "Code for the event this message represents",
              "definition": "Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value \"http://hl7.org/fhir/message-events\".",
              "requirements": "Drives the behavior associated with this message.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "One of the message events defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/message-events"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH-9.2"
                },
                {
                  "identity": "rim",
                  "map": "./payload[classCode=\"CACT\" and moodCode=\"EVN\" and isNormalAct()]/code[isNormalDatatype()]/code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "MessageHeader.response",
              "short": "If this is a reply to prior message",
              "definition": "Information about the message that this message is a response to.  Only present if this message is a response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSA"
                },
                {
                  "identity": "rim",
                  "map": "./conveyedAcknowledgement"
                }
              ]
            },
            {
              "path": "MessageHeader.response.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MessageHeader.response.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MessageHeader.response.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MessageHeader.response.identifier",
              "short": "Id of original message",
              "definition": "The id of the message that this message is a response to.",
              "requirements": "Allows receiver to know what message is being responded to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSA-2"
                },
                {
                  "identity": "rim",
                  "map": "./acknowledges.id[isNormalDatatype()]"
                }
              ]
            },
            {
              "path": "MessageHeader.response.code",
              "short": "ok | transient-error | fatal-error",
              "definition": "Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not.",
              "comments": "This is a generic response to the request message. Specific data for the response will be found in MessageHeader.data.",
              "requirements": "Allows the sender of the acknowledge message to know if the request was successful or if action is needed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The kind of response to a message",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/response-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSA-1"
                },
                {
                  "identity": "rim",
                  "map": "./typeCode[isNormalDatatype()]"
                }
              ]
            },
            {
              "path": "MessageHeader.response.details",
              "short": "Specific list of hints/warnings/errors",
              "definition": "Full details of any issues found in the message.",
              "comments": "This SHALL be contained in the bundle. If any of the issues are errors, the response code SHALL be an error.",
              "requirements": "Allows the sender of the message to determine what the specific issues are.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/OperationOutcome"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR"
                },
                {
                  "identity": "rim",
                  "map": "AcknowledgementDetail or Observation[classCode=\"ALRT\" and moodCode=\"EVN\"]"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "MessageSource"
                }
              ],
              "path": "MessageHeader.source",
              "short": "Message Source Application",
              "definition": "The source application from which this message originated.",
              "requirements": "Allows replies, supports audit.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "unique(./communicationFunction[typeCode=\"SND\"])"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "MessageHeader.source.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MessageHeader.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MessageHeader.source.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MessageHeader.source.name",
              "short": "Name of system",
              "definition": "Human-readable name for the source system.",
              "requirements": "May be used to support audit.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH-3"
                },
                {
                  "identity": "rim",
                  "map": "unique(./entity[determinerCode=\"INST\" and classCode=\"DEV\"]/name[type='ST' and isNormalDatatype()])"
                }
              ]
            },
            {
              "path": "MessageHeader.source.software",
              "short": "Name of software running the system",
              "definition": "May include configuration or other information useful in debugging.",
              "requirements": "Supports audit and possibly interface engine behavior.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SFT-3 ( +SFT-1)"
                },
                {
                  "identity": "rim",
                  "map": "unique(./entity[determinerCode=\"INST\" and classCode=\"DEV\"]/softwareName[isNormalDatatype()])"
                }
              ]
            },
            {
              "path": "MessageHeader.source.version",
              "short": "Version of software running",
              "definition": "Can convey versions of multiple systems in situations where a message passes through multiple hands.",
              "requirements": "Supports audit and possibly interface engine behavior.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SFT-2"
                },
                {
                  "identity": "rim",
                  "map": "(Not supported)"
                }
              ]
            },
            {
              "path": "MessageHeader.source.contact",
              "short": "Human contact for problems",
              "definition": "An e-mail, phone, website or other contact point to use to resolve issues with message communications.",
              "requirements": "Allows escalation of technical issues.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "(MSH-22?)"
                },
                {
                  "identity": "rim",
                  "map": "unique(./entity[determinerCode=\"INST\" and classCode=\"DEV\"]/scopesRole[normalRole() and classCode=\"CON\" and layer[classCode=\"PSN\"]/telecom[isNormalDatatype()])"
                }
              ]
            },
            {
              "path": "MessageHeader.source.endpoint",
              "short": "Actual message source address or id",
              "definition": "Identifies the routing target to send acknowledgements to.",
              "comments": "The id may be a non-resolvable URI for systems that do not use standard network-based addresses.",
              "requirements": "Identifies where to send responses, may influence security permissions.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH-24"
                },
                {
                  "identity": "rim",
                  "map": "./telecom[isNormalDatatype()]"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "MessageDestination"
                }
              ],
              "path": "MessageHeader.destination",
              "short": "Message Destination Application(s)",
              "definition": "The destination application which the message is intended for.",
              "comments": "There SHOULD be at least one destination, but in some circumstances, the source system is unaware of any particular destination system.",
              "requirements": "Indicates where message is to be sent for routing purposes.  Allows verification of \"am I the intended recipient\".",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./communicationFunction[typeCode=\"RCV\"]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "MessageHeader.destination.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MessageHeader.destination.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "MessageHeader.destination.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "MessageHeader.destination.name",
              "short": "Name of system",
              "definition": "Human-readable name for the target system.",
              "requirements": "May be used for routing of response and/or to support audit.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH-5"
                },
                {
                  "identity": "rim",
                  "map": "unique(./entity[determinerCode=\"INST\" and (classCode=(\"DEV\", \"PSN\", \"ORG\"]/name[type='ST' and isNormalDatatype()])"
                }
              ]
            },
            {
              "path": "MessageHeader.destination.target",
              "short": "Particular delivery destination within the destination",
              "definition": "Identifies the target end system in situations where the initial message transmission is to an intermediary system.",
              "requirements": "Supports multi-hop routing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "unique(./entity[determinerCode=\"INST\" and (classCode=(\"DEV\", \"PSN\", \"ORG\"]"
                }
              ]
            },
            {
              "path": "MessageHeader.destination.endpoint",
              "short": "Actual destination address or id",
              "definition": "Indicates where the message should be routed to.",
              "comments": "The id may be a non-resolvable URI for systems that do not use standard network-based addresses.",
              "requirements": "Identifies where to route the message.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH-25 (or MSH-6)"
                },
                {
                  "identity": "rim",
                  "map": "./telecom"
                }
              ]
            },
            {
              "path": "MessageHeader.enterer",
              "short": "The source of the data entry",
              "definition": "The person or device that performed the data entry leading to this message. Where there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions.",
              "comments": "Usually only for the request, but can be used in a response.",
              "requirements": "Need to know for audit/traceback requirements and possibly for authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "EVN-5 / ORC-10 / PRT-5:PRT-4='EP' / ROL where ROL.3 is EP or ORC.10"
                },
                {
                  "identity": "rim",
                  "map": "unique(./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/participation[typeCode=\"ENT\" and isNormalParticipation]/role[classCode=\"ASSIGNED\" and isNormalRole()]/player[isNormalEntity() and classCode=(\"DEV\", \"PSN\") and determinerCode=\"INST\"])"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "MessageHeader.author",
              "short": "The source of the decision",
              "definition": "The logical author of the message - the person or device that decided the described event should happen. Where there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions.",
              "comments": "Usually only for the request, but can be used in a response.",
              "requirements": "Need to know for audit/traceback requirements and possibly for authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-19 / PRT-5:PRT-4='AUT' / ROL where ROL.3 is IP or ORC.12"
                },
                {
                  "identity": "rim",
                  "map": "unique(./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/participation[isHighest(priorityCode) and typeCode=\"AUT\" and isNormalParticipation]/role[classCode=\"ASSIGNED\" and isNormalRole()]/player[isNormalEntity() and classCode=(\"DEV\", \"PSN\") and determinerCode=\"INST\"])"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "MessageHeader.receiver",
              "short": "Intended \"real-world\" recipient for the data",
              "definition": "Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.",
              "requirements": "Allows routing beyond just the application level.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRT-5:PRT-4='WAYR' / PRT-8:PRT-4='WAYR'"
                },
                {
                  "identity": "rim",
                  "map": "Not directly supported.  Could be shared using attentionLine.value with an appropriate keyWordText"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "MessageHeader.responsible",
              "short": "Final responsibility for event",
              "definition": "The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party.",
              "comments": "Usually only for the request, but can be used in a response.",
              "requirements": "Need to know for audit/traceback requirements and possibly for authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-12 /  PRT-5:PRT-4='OP' /  PRT-8:PRT-4='OP' / ROL where ROL.3 is RO or ORC.11"
                },
                {
                  "identity": "rim",
                  "map": "unique(./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/participation[isHighest(priorityCode) and typeCode=\"RESP\" and isNormalParticipation]/role[classCode=\"ASSIGNED\" and isNormalRole()]/player[isNormalEntity() and classCode=\"PSN\" and determinerCode=\"INST\"] or ./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/participation[isHighest(priorityCode) and typeCode=\"RESP\" and isNormalParticipation]/role[classCode=\"ASSIGNED\" and isNormalRole()]/scoper[isNormalEntity() and classCode=\"ORG\" and determinerCode=\"INST\"])"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "MessageHeader.reason",
              "short": "Cause of event",
              "definition": "Coded indication of the cause for the event - indicates  a reason for the occurrence of the event that is a focus of this message.",
              "requirements": "Need to be able to track why resources are being changed and report in the audit log/history of the resource.  May affect authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Reason for event occurrence",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/message-reason-encounter"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "EVN.4 / ORC.16 / OBR-31-reason for study / BPO-13-BP indication for use / RXO-20-indication / RXE-27-give indication / RXD-21-indication / RXG-22-indication / RXA-19-indication"
                },
                {
                  "identity": "rim",
                  "map": "unique(./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/reasonCode[isNormalDatatype()])"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "MessageHeader.data",
              "short": "The actual content of the message",
              "definition": "The actual data of the message - a reference to the root/focus class of the event.",
              "comments": "The data is defined where the transaction type is defined. The transaction data is always included in the bundle that is the full message.  Only the root resource is specified.  The resources it references should be contained in the bundle but are not also listed here.  Multiple repetitions are allowed to cater for merges and other situations with multiple focal targets.",
              "requirements": "Every message event is about actual data, a single resource, that is identified in the definition of the event, and perhaps some or all linked resources.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "unique(./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/participation[typeCode=\"SUBJ\" and isNormalParticipation]/role or ./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/outboundRelationship[typeCode=\"SBJ\" and isNormalActRelatoinship]/target)"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "MessageHeader",
              "short": "A resource that describes a message that is exchanged between systems",
              "definition": "The header for a message exchange that is either requesting or responding to an action.  The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH / MSA / ERR"
                },
                {
                  "identity": "rim",
                  "map": "Message"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.exchange"
                }
              ]
            },
            {
              "path": "MessageHeader.timestamp",
              "short": "Time that the message was sent",
              "definition": "The time that the message was sent.",
              "requirements": "Allows limited detection of out-of-order and delayed transmission.  Also supports audit.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH-7"
                },
                {
                  "identity": "rim",
                  "map": "./creationTime[isNormalDatatype()]"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "MessageHeader.event",
              "short": "Code for the event this message represents",
              "definition": "Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value \"http://hl7.org/fhir/message-events\".",
              "requirements": "Drives the behavior associated with this message.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "preferred",
                "description": "One of the message events defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/message-events"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH-9.2"
                },
                {
                  "identity": "rim",
                  "map": "./payload[classCode=\"CACT\" and moodCode=\"EVN\" and isNormalAct()]/code[isNormalDatatype()]/code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "MessageHeader.response",
              "short": "If this is a reply to prior message",
              "definition": "Information about the message that this message is a response to.  Only present if this message is a response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSA"
                },
                {
                  "identity": "rim",
                  "map": "./conveyedAcknowledgement"
                }
              ]
            },
            {
              "path": "MessageHeader.response.identifier",
              "short": "Id of original message",
              "definition": "The id of the message that this message is a response to.",
              "requirements": "Allows receiver to know what message is being responded to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSA-2"
                },
                {
                  "identity": "rim",
                  "map": "./acknowledges.id[isNormalDatatype()]"
                }
              ]
            },
            {
              "path": "MessageHeader.response.code",
              "short": "ok | transient-error | fatal-error",
              "definition": "Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not.",
              "comments": "This is a generic response to the request message. Specific data for the response will be found in MessageHeader.data.",
              "requirements": "Allows the sender of the acknowledge message to know if the request was successful or if action is needed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The kind of response to a message",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/response-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSA-1"
                },
                {
                  "identity": "rim",
                  "map": "./typeCode[isNormalDatatype()]"
                }
              ]
            },
            {
              "path": "MessageHeader.response.details",
              "short": "Specific list of hints/warnings/errors",
              "definition": "Full details of any issues found in the message.",
              "comments": "This SHALL be contained in the bundle. If any of the issues are errors, the response code SHALL be an error.",
              "requirements": "Allows the sender of the message to determine what the specific issues are.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/OperationOutcome"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR"
                },
                {
                  "identity": "rim",
                  "map": "AcknowledgementDetail or Observation[classCode=\"ALRT\" and moodCode=\"EVN\"]"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "MessageSource"
                }
              ],
              "path": "MessageHeader.source",
              "short": "Message Source Application",
              "definition": "The source application from which this message originated.",
              "requirements": "Allows replies, supports audit.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "unique(./communicationFunction[typeCode=\"SND\"])"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "MessageHeader.source.name",
              "short": "Name of system",
              "definition": "Human-readable name for the source system.",
              "requirements": "May be used to support audit.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH-3"
                },
                {
                  "identity": "rim",
                  "map": "unique(./entity[determinerCode=\"INST\" and classCode=\"DEV\"]/name[type='ST' and isNormalDatatype()])"
                }
              ]
            },
            {
              "path": "MessageHeader.source.software",
              "short": "Name of software running the system",
              "definition": "May include configuration or other information useful in debugging.",
              "requirements": "Supports audit and possibly interface engine behavior.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SFT-3 ( +SFT-1)"
                },
                {
                  "identity": "rim",
                  "map": "unique(./entity[determinerCode=\"INST\" and classCode=\"DEV\"]/softwareName[isNormalDatatype()])"
                }
              ]
            },
            {
              "path": "MessageHeader.source.version",
              "short": "Version of software running",
              "definition": "Can convey versions of multiple systems in situations where a message passes through multiple hands.",
              "requirements": "Supports audit and possibly interface engine behavior.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SFT-2"
                },
                {
                  "identity": "rim",
                  "map": "(Not supported)"
                }
              ]
            },
            {
              "path": "MessageHeader.source.contact",
              "short": "Human contact for problems",
              "definition": "An e-mail, phone, website or other contact point to use to resolve issues with message communications.",
              "requirements": "Allows escalation of technical issues.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "(MSH-22?)"
                },
                {
                  "identity": "rim",
                  "map": "unique(./entity[determinerCode=\"INST\" and classCode=\"DEV\"]/scopesRole[normalRole() and classCode=\"CON\" and layer[classCode=\"PSN\"]/telecom[isNormalDatatype()])"
                }
              ]
            },
            {
              "path": "MessageHeader.source.endpoint",
              "short": "Actual message source address or id",
              "definition": "Identifies the routing target to send acknowledgements to.",
              "comments": "The id may be a non-resolvable URI for systems that do not use standard network-based addresses.",
              "requirements": "Identifies where to send responses, may influence security permissions.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH-24"
                },
                {
                  "identity": "rim",
                  "map": "./telecom[isNormalDatatype()]"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "MessageDestination"
                }
              ],
              "path": "MessageHeader.destination",
              "short": "Message Destination Application(s)",
              "definition": "The destination application which the message is intended for.",
              "comments": "There SHOULD be at least one destination, but in some circumstances, the source system is unaware of any particular destination system.",
              "requirements": "Indicates where message is to be sent for routing purposes.  Allows verification of \"am I the intended recipient\".",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./communicationFunction[typeCode=\"RCV\"]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "MessageHeader.destination.name",
              "short": "Name of system",
              "definition": "Human-readable name for the target system.",
              "requirements": "May be used for routing of response and/or to support audit.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH-5"
                },
                {
                  "identity": "rim",
                  "map": "unique(./entity[determinerCode=\"INST\" and (classCode=(\"DEV\", \"PSN\", \"ORG\"]/name[type='ST' and isNormalDatatype()])"
                }
              ]
            },
            {
              "path": "MessageHeader.destination.target",
              "short": "Particular delivery destination within the destination",
              "definition": "Identifies the target end system in situations where the initial message transmission is to an intermediary system.",
              "requirements": "Supports multi-hop routing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "unique(./entity[determinerCode=\"INST\" and (classCode=(\"DEV\", \"PSN\", \"ORG\"]"
                }
              ]
            },
            {
              "path": "MessageHeader.destination.endpoint",
              "short": "Actual destination address or id",
              "definition": "Indicates where the message should be routed to.",
              "comments": "The id may be a non-resolvable URI for systems that do not use standard network-based addresses.",
              "requirements": "Identifies where to route the message.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "MSH-25 (or MSH-6)"
                },
                {
                  "identity": "rim",
                  "map": "./telecom"
                }
              ]
            },
            {
              "path": "MessageHeader.enterer",
              "short": "The source of the data entry",
              "definition": "The person or device that performed the data entry leading to this message. Where there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions.",
              "comments": "Usually only for the request, but can be used in a response.",
              "requirements": "Need to know for audit/traceback requirements and possibly for authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "EVN-5 / ORC-10 / PRT-5:PRT-4='EP' / ROL where ROL.3 is EP or ORC.10"
                },
                {
                  "identity": "rim",
                  "map": "unique(./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/participation[typeCode=\"ENT\" and isNormalParticipation]/role[classCode=\"ASSIGNED\" and isNormalRole()]/player[isNormalEntity() and classCode=(\"DEV\", \"PSN\") and determinerCode=\"INST\"])"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "MessageHeader.author",
              "short": "The source of the decision",
              "definition": "The logical author of the message - the person or device that decided the described event should happen. Where there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions.",
              "comments": "Usually only for the request, but can be used in a response.",
              "requirements": "Need to know for audit/traceback requirements and possibly for authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-19 / PRT-5:PRT-4='AUT' / ROL where ROL.3 is IP or ORC.12"
                },
                {
                  "identity": "rim",
                  "map": "unique(./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/participation[isHighest(priorityCode) and typeCode=\"AUT\" and isNormalParticipation]/role[classCode=\"ASSIGNED\" and isNormalRole()]/player[isNormalEntity() and classCode=(\"DEV\", \"PSN\") and determinerCode=\"INST\"])"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "MessageHeader.receiver",
              "short": "Intended \"real-world\" recipient for the data",
              "definition": "Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.",
              "requirements": "Allows routing beyond just the application level.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRT-5:PRT-4='WAYR' / PRT-8:PRT-4='WAYR'"
                },
                {
                  "identity": "rim",
                  "map": "Not directly supported.  Could be shared using attentionLine.value with an appropriate keyWordText"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "MessageHeader.responsible",
              "short": "Final responsibility for event",
              "definition": "The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party.",
              "comments": "Usually only for the request, but can be used in a response.",
              "requirements": "Need to know for audit/traceback requirements and possibly for authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-12 /  PRT-5:PRT-4='OP' /  PRT-8:PRT-4='OP' / ROL where ROL.3 is RO or ORC.11"
                },
                {
                  "identity": "rim",
                  "map": "unique(./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/participation[isHighest(priorityCode) and typeCode=\"RESP\" and isNormalParticipation]/role[classCode=\"ASSIGNED\" and isNormalRole()]/player[isNormalEntity() and classCode=\"PSN\" and determinerCode=\"INST\"] or ./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/participation[isHighest(priorityCode) and typeCode=\"RESP\" and isNormalParticipation]/role[classCode=\"ASSIGNED\" and isNormalRole()]/scoper[isNormalEntity() and classCode=\"ORG\" and determinerCode=\"INST\"])"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "MessageHeader.reason",
              "short": "Cause of event",
              "definition": "Coded indication of the cause for the event - indicates  a reason for the occurrence of the event that is a focus of this message.",
              "requirements": "Need to be able to track why resources are being changed and report in the audit log/history of the resource.  May affect authorization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Reason for event occurrence",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/message-reason-encounter"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "EVN.4 / ORC.16 / OBR-31-reason for study / BPO-13-BP indication for use / RXO-20-indication / RXE-27-give indication / RXD-21-indication / RXG-22-indication / RXA-19-indication"
                },
                {
                  "identity": "rim",
                  "map": "unique(./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/reasonCode[isNormalDatatype()])"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "MessageHeader.data",
              "short": "The actual content of the message",
              "definition": "The actual data of the message - a reference to the root/focus class of the event.",
              "comments": "The data is defined where the transaction type is defined. The transaction data is always included in the bundle that is the full message.  Only the root resource is specified.  The resources it references should be contained in the bundle but are not also listed here.  Multiple repetitions are allowed to cater for merges and other situations with multiple focal targets.",
              "requirements": "Every message event is about actual data, a single resource, that is identified in the definition of the event, and perhaps some or all linked resources.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "unique(./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/participation[typeCode=\"SUBJ\" and isNormalParticipation]/role or ./controlAct[classCode=\"CACT\" and classCode=\"EVN\" and isNormalAct()]/outboundRelationship[typeCode=\"SBJ\" and isNormalActRelatoinship]/target)"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ModuleDefinition",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ModuleDefinition",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ModuleDefinition",
        "name": "ModuleDefinition",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Decision Support)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ModuleDefinition Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ModuleDefinition",
              "short": "Defines the data requirements information for a quality artifact",
              "definition": "The ModuleDefinition resource defines the data requirements for a quality artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "ModuleDefinition.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ModuleDefinition.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ModuleDefinition.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ModuleDefinition.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ModuleDefinition.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ModuleDefinition.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleDefinition.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleDefinition.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleDefinition.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ModuleDefinition.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ModuleDefinition.model",
              "definition": "A model reference used by the content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.model.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.model.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.model.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleDefinition.model.name",
              "definition": "The name of the model.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.model.identifier",
              "definition": "The identifier of the model.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.model.version",
              "definition": "The version of the model.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.library",
              "short": "A library referenced by the module",
              "definition": "A library referenced by the module. The reference must consist of either an id, or a document reference.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.library.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.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 element. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleDefinition.library.name",
              "short": "The local name for the library",
              "definition": "The local name for the library reference. If no local name is provided, the name of the referenced library is assumed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.library.identifier",
              "definition": "The identifier of the library.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.library.version",
              "definition": "The version of the library.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.library.document[x]",
              "definition": "A reference to the library.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleDefinition"
                  ]
                }
              ]
            },
            {
              "path": "ModuleDefinition.codeSystem",
              "definition": "A code system definition used within the knowledge module.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.codeSystem.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.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 element. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleDefinition.codeSystem.name",
              "definition": "The local name for the code system.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.codeSystem.identifier",
              "definition": "The code system uri.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.codeSystem.version",
              "definition": "The code system version, if any.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.valueSet",
              "definition": "A value set definition used by the knowledge module.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.valueSet.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.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 element. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleDefinition.valueSet.name",
              "definition": "The local name for the value set.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.valueSet.identifier",
              "definition": "The value set uri.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.valueSet.version",
              "definition": "The version of the value set, if any.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.valueSet.codeSystem",
              "definition": "The code systems in use within the value set. These must refer to previously defined code systems within this knowledge module or a referenced library.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.parameter",
              "definition": "Parameters to the module.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.parameter.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.parameter.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleDefinition.parameter.name",
              "definition": "The name of the parameter.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "ModuleDefinition.parameter.use",
              "definition": "Whether the parameter is input or output for the module.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Whether the parameter is input or output",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-use"
                }
              }
            },
            {
              "path": "ModuleDefinition.parameter.documentation",
              "definition": "A brief description of the parameter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.parameter.type",
              "definition": "The type of the parameter.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of the parameter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-type"
                }
              }
            },
            {
              "path": "ModuleDefinition.parameter.profile",
              "definition": "The profile of the parameter, if any.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "ModuleDefinition.data",
              "short": "Describes a required data item",
              "definition": "Describes a required data item for evaluation in terms of the type of data, and optional code- or date-based filters of the data.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.type",
              "short": "The type of the required data",
              "definition": "The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of the parameter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-type"
                }
              }
            },
            {
              "path": "ModuleDefinition.data.profile",
              "short": "The profile of the required data",
              "definition": "The profile of the required data, specified as the uri of the profile definition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.mustSupport",
              "short": "Indicates that specific structure elements are referenced by the knowledge module",
              "definition": "Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.codeFilter",
              "definition": "Code filters for the required data, if any.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.codeFilter.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.codeFilter.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.codeFilter.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.codeFilter.path",
              "short": "The code-valued attribute of the filter",
              "definition": "The code-valued attribute of the filter. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant. The path must resolve to an element of type code, Coding, or CodeableConcept.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.codeFilter.valueSet[x]",
              "short": "The valueset for the code filter",
              "definition": "The valueset for the code filter. The valueSet or codeableConcept elements are exclusive. If valueSet is specified, the filter will return only those data items for which the value of the code-valued element specified in the path is a member of the specified valueset.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ValueSet"
                  ]
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.codeFilter.codeableConcept",
              "short": "The codeableConcepts for the filter",
              "definition": "The codeable concept for the code filter. Only one of valueSet or codeableConcept may be specified. If codeableConcepts are given, the filter will return only those data items for which the code-valued attribute specified by the path has a value that is one of the specified codeable concepts.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.dateFilter",
              "definition": "Date filters for the required data, if any.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.dateFilter.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.dateFilter.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.dateFilter.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.dateFilter.path",
              "short": "The date-valued attribute of the filter",
              "definition": "The date-valued attribute of the filter. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant. The path must resolve to an element of type dateTime, Period, Schedule, or Timing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.dateFilter.value[x]",
              "short": "The value of the filter, as a Period or dateTime value",
              "definition": "The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ModuleDefinition",
              "short": "Defines the data requirements information for a quality artifact",
              "definition": "The ModuleDefinition resource defines the data requirements for a quality artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "ModuleDefinition.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ModuleDefinition.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ModuleDefinition.model",
              "definition": "A model reference used by the content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.model.name",
              "definition": "The name of the model.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.model.identifier",
              "definition": "The identifier of the model.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.model.version",
              "definition": "The version of the model.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.library",
              "short": "A library referenced by the module",
              "definition": "A library referenced by the module. The reference must consist of either an id, or a document reference.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.library.name",
              "short": "The local name for the library",
              "definition": "The local name for the library reference. If no local name is provided, the name of the referenced library is assumed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.library.identifier",
              "definition": "The identifier of the library.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.library.version",
              "definition": "The version of the library.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.library.document[x]",
              "definition": "A reference to the library.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleDefinition"
                  ]
                }
              ]
            },
            {
              "path": "ModuleDefinition.codeSystem",
              "definition": "A code system definition used within the knowledge module.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.codeSystem.name",
              "definition": "The local name for the code system.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.codeSystem.identifier",
              "definition": "The code system uri.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.codeSystem.version",
              "definition": "The code system version, if any.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.valueSet",
              "definition": "A value set definition used by the knowledge module.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.valueSet.name",
              "definition": "The local name for the value set.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.valueSet.identifier",
              "definition": "The value set uri.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.valueSet.version",
              "definition": "The version of the value set, if any.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.valueSet.codeSystem",
              "definition": "The code systems in use within the value set. These must refer to previously defined code systems within this knowledge module or a referenced library.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.parameter",
              "definition": "Parameters to the module.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.parameter.name",
              "definition": "The name of the parameter.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "ModuleDefinition.parameter.use",
              "definition": "Whether the parameter is input or output for the module.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Whether the parameter is input or output",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-use"
                }
              }
            },
            {
              "path": "ModuleDefinition.parameter.documentation",
              "definition": "A brief description of the parameter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.parameter.type",
              "definition": "The type of the parameter.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of the parameter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-type"
                }
              }
            },
            {
              "path": "ModuleDefinition.parameter.profile",
              "definition": "The profile of the parameter, if any.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "ModuleDefinition.data",
              "short": "Describes a required data item",
              "definition": "Describes a required data item for evaluation in terms of the type of data, and optional code- or date-based filters of the data.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.type",
              "short": "The type of the required data",
              "definition": "The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of the parameter",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-type"
                }
              }
            },
            {
              "path": "ModuleDefinition.data.profile",
              "short": "The profile of the required data",
              "definition": "The profile of the required data, specified as the uri of the profile definition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.mustSupport",
              "short": "Indicates that specific structure elements are referenced by the knowledge module",
              "definition": "Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.codeFilter",
              "definition": "Code filters for the required data, if any.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.codeFilter.path",
              "short": "The code-valued attribute of the filter",
              "definition": "The code-valued attribute of the filter. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant. The path must resolve to an element of type code, Coding, or CodeableConcept.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.codeFilter.valueSet[x]",
              "short": "The valueset for the code filter",
              "definition": "The valueset for the code filter. The valueSet or codeableConcept elements are exclusive. If valueSet is specified, the filter will return only those data items for which the value of the code-valued element specified in the path is a member of the specified valueset.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ValueSet"
                  ]
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.codeFilter.codeableConcept",
              "short": "The codeableConcepts for the filter",
              "definition": "The codeable concept for the code filter. Only one of valueSet or codeableConcept may be specified. If codeableConcepts are given, the filter will return only those data items for which the code-valued attribute specified by the path has a value that is one of the specified codeable concepts.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.dateFilter",
              "definition": "Date filters for the required data, if any.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.dateFilter.path",
              "short": "The date-valued attribute of the filter",
              "definition": "The date-valued attribute of the filter. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant. The path must resolve to an element of type dateTime, Period, Schedule, or Timing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleDefinition.data.dateFilter.value[x]",
              "short": "The value of the filter, as a Period or dateTime value",
              "definition": "The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ModuleMetadata",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ModuleMetadata",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ModuleMetadata",
        "name": "ModuleMetadata",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Decision Support)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ModuleMetadata Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ModuleMetadata",
              "short": "Defines common metadata used by quality artifacts",
              "definition": "The ModuleMetadata resource defines the common metadata elements used by quality improvement artifacts. This information includes descriptive and topical metadata to enable repository searches, as well as governance and evidentiary support information.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "ModuleMetadata.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ModuleMetadata.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ModuleMetadata.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ModuleMetadata.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ModuleMetadata.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ModuleMetadata.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleMetadata.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleMetadata.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleMetadata.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ModuleMetadata.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ModuleMetadata.title",
              "definition": "A short, descriptive title for the module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ModuleMetadata.type",
              "short": "module | library | decision-support-rule | documentation-template | order-set",
              "definition": "Identifies the type of knowledge module, such as a rule, library, documentation template, or measure.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The type of knowledge module being described",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/module-metadata-type"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "ModuleMetadata.status",
              "short": "draft | test | active | inactive",
              "definition": "The status of the module.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the knowledge module",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/module-metadata-status"
                }
              }
            },
            {
              "path": "ModuleMetadata.description",
              "definition": "A description of the module from the consumer perspective.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.purpose",
              "definition": "A brief description of the purpose of the module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.usage",
              "definition": "Notes about usage of the module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.publicationDate",
              "definition": "The date on which the module was published.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ]
            },
            {
              "path": "ModuleMetadata.lastReviewDate",
              "definition": "The date on which the module content was last reviewed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ]
            },
            {
              "path": "ModuleMetadata.effectivePeriod",
              "definition": "The period during which the module content is effective.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "path": "ModuleMetadata.coverage",
              "definition": "Specifies various attributes of the patient population for whom and/or environment of care in which, the knowledge module is applicable.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleMetadata.coverage.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleMetadata.coverage.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleMetadata.coverage.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleMetadata.coverage.focus",
              "short": "patient-gender | patient-age-group | clinical-focus | target-user | workflow-setting | workflow-task | clinical-venue",
              "definition": "Specifies the focus of the coverage attribute.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Specifies clinical metadata that can be used to retrieve, index and/or categorize the knowledge artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/module-metadata-focus-type"
                }
              }
            },
            {
              "path": "ModuleMetadata.coverage.description",
              "definition": "Provides an optional description of the coverage attribute.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.coverage.value",
              "definition": "Provides a value for the coverage attribute. Different values are appropriate in different focus areas, as specified in the description of values for focus.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "ModuleMetadata.topic",
              "definition": "Clinical topics related to the content of the module.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "ModuleMetadata.keyword",
              "definition": "Keywords associated with the module.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.contributor",
              "definition": "A contributor to the content of the module.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleMetadata.contributor.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleMetadata.contributor.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleMetadata.contributor.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleMetadata.contributor.type",
              "short": "author | editor | reviewer | endorser",
              "definition": "The type of contributor.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of contributor",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/module-metadata-contributor"
                }
              }
            },
            {
              "path": "ModuleMetadata.contributor.party",
              "definition": "The contributor.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Person"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ]
            },
            {
              "path": "ModuleMetadata.publisher",
              "definition": "The organization responsible for publishing the module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ]
            },
            {
              "path": "ModuleMetadata.steward",
              "definition": "The organization responsible for stewardship of the module content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ]
            },
            {
              "path": "ModuleMetadata.rightsDeclaration",
              "definition": "The legal rights declaration for the module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.relatedResource",
              "definition": "Related resources such as additional documentation, supporting evidence, or bibliographic references.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleMetadata.relatedResource.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleMetadata.relatedResource.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ModuleMetadata.relatedResource.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ModuleMetadata.relatedResource.type",
              "short": "documentation | evidence | citation | predecessor | successor | derived-from",
              "definition": "The type of related resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of related resource for the module",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/module-metadata-resource-type"
                }
              }
            },
            {
              "path": "ModuleMetadata.relatedResource.uri",
              "definition": "The uri of the related resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ModuleMetadata.relatedResource.description",
              "definition": "A brief description of the related resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.relatedResource.document",
              "definition": "The document being referenced.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ModuleMetadata",
              "short": "Defines common metadata used by quality artifacts",
              "definition": "The ModuleMetadata resource defines the common metadata elements used by quality improvement artifacts. This information includes descriptive and topical metadata to enable repository searches, as well as governance and evidentiary support information.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "ModuleMetadata.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ModuleMetadata.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ModuleMetadata.title",
              "definition": "A short, descriptive title for the module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ModuleMetadata.type",
              "short": "module | library | decision-support-rule | documentation-template | order-set",
              "definition": "Identifies the type of knowledge module, such as a rule, library, documentation template, or measure.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The type of knowledge module being described",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/module-metadata-type"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "ModuleMetadata.status",
              "short": "draft | test | active | inactive",
              "definition": "The status of the module.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the knowledge module",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/module-metadata-status"
                }
              }
            },
            {
              "path": "ModuleMetadata.description",
              "definition": "A description of the module from the consumer perspective.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.purpose",
              "definition": "A brief description of the purpose of the module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.usage",
              "definition": "Notes about usage of the module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.publicationDate",
              "definition": "The date on which the module was published.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ]
            },
            {
              "path": "ModuleMetadata.lastReviewDate",
              "definition": "The date on which the module content was last reviewed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ]
            },
            {
              "path": "ModuleMetadata.effectivePeriod",
              "definition": "The period during which the module content is effective.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "path": "ModuleMetadata.coverage",
              "definition": "Specifies various attributes of the patient population for whom and/or environment of care in which, the knowledge module is applicable.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleMetadata.coverage.focus",
              "short": "patient-gender | patient-age-group | clinical-focus | target-user | workflow-setting | workflow-task | clinical-venue",
              "definition": "Specifies the focus of the coverage attribute.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Specifies clinical metadata that can be used to retrieve, index and/or categorize the knowledge artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/module-metadata-focus-type"
                }
              }
            },
            {
              "path": "ModuleMetadata.coverage.description",
              "definition": "Provides an optional description of the coverage attribute.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.coverage.value",
              "definition": "Provides a value for the coverage attribute. Different values are appropriate in different focus areas, as specified in the description of values for focus.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "ModuleMetadata.topic",
              "definition": "Clinical topics related to the content of the module.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "ModuleMetadata.keyword",
              "definition": "Keywords associated with the module.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.contributor",
              "definition": "A contributor to the content of the module.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleMetadata.contributor.type",
              "short": "author | editor | reviewer | endorser",
              "definition": "The type of contributor.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of contributor",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/module-metadata-contributor"
                }
              }
            },
            {
              "path": "ModuleMetadata.contributor.party",
              "definition": "The contributor.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Person"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ]
            },
            {
              "path": "ModuleMetadata.publisher",
              "definition": "The organization responsible for publishing the module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ]
            },
            {
              "path": "ModuleMetadata.steward",
              "definition": "The organization responsible for stewardship of the module content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ]
            },
            {
              "path": "ModuleMetadata.rightsDeclaration",
              "definition": "The legal rights declaration for the module.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.relatedResource",
              "definition": "Related resources such as additional documentation, supporting evidence, or bibliographic references.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "ModuleMetadata.relatedResource.type",
              "short": "documentation | evidence | citation | predecessor | successor | derived-from",
              "definition": "The type of related resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of related resource for the module",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/module-metadata-resource-type"
                }
              }
            },
            {
              "path": "ModuleMetadata.relatedResource.uri",
              "definition": "The uri of the related resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "ModuleMetadata.relatedResource.description",
              "definition": "A brief description of the related resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "ModuleMetadata.relatedResource.document",
              "definition": "The document being referenced.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/NamingSystem",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "NamingSystem",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/NamingSystem",
        "name": "NamingSystem",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for NamingSystem Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "NamingSystem",
              "short": "System of unique identification",
              "definition": "A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc.  Represents a \"System\" used within the Identifier and Coding data types.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "uniqueId.where(preferred = true).distinct(type)"
                    }
                  ],
                  "key": "nsd-2",
                  "severity": "error",
                  "human": "Can't have more than one preferred identifier for a type",
                  "xpath": "not(exists(for $type in distinct-values(f:uniqueId/f:type/@value) return if (count(f:uniqueId[f:type/@value=$type and f:preferred/@value=true()])>1) then $type else ()))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "replacedBy.empty() or status = 'retired'"
                    }
                  ],
                  "key": "nsd-3",
                  "severity": "error",
                  "human": "Can only have replacedBy if naming system is retired",
                  "xpath": "not(f:replacedBy) or f:status/@value='retired'"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "kind != 'root' or uniqueId in ('uuid' | 'ruid')"
                    }
                  ],
                  "key": "nsd-1",
                  "severity": "error",
                  "human": "Root systems cannot have uuid or sid identifiers",
                  "xpath": "not(f:kind/@value='root' and f:uniqueId/f:type/@value=('uuid', 'ruid'))"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "conformance.terminology"
                }
              ]
            },
            {
              "path": "NamingSystem.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "NamingSystem.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "NamingSystem.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "NamingSystem.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "NamingSystem.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "NamingSystem.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NamingSystem.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NamingSystem.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NamingSystem.name",
              "short": "Human-readable label",
              "definition": "The descriptive name of this particular identifier type or code system.",
              "comments": "The\"symbolic name\" for an OID would be captured as an extension.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "NamingSystem.status",
              "short": "draft | active | retired",
              "definition": "Indicates whether the naming system is \"ready for use\" or not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "NamingSystem.kind",
              "short": "codesystem | identifier | root",
              "definition": "Indicates the purpose for the naming system - what kinds of things does it make unique?",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Identifies the purpose of the naming system.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/namingsystem-type"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "NamingSystem.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the naming system.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the naming system.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "NamingSystem.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "NamingSystem.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NamingSystem.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NamingSystem.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NamingSystem.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the naming system.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "NamingSystem.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "NamingSystem.responsible",
              "short": "Who maintains system namespace?",
              "definition": "The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision.",
              "comments": "This is the primary organization.  Responsibility for some aspects of a namespace may be delegated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "NamingSystem.date",
              "short": "Publication Date(/time)",
              "definition": "The date  (and optionally time) when the system was registered or published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the registration changes.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "NamingSystem.type",
              "short": "e.g. driver,  provider,  patient, bank etc.",
              "definition": "Categorizes a naming system for easier search by grouping related naming systems.",
              "comments": "This will most commonly be used for identifier namespaces, but categories could potentially be useful for code systems and authorities as well.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/identifier-type"
                }
              }
            },
            {
              "path": "NamingSystem.description",
              "short": "What does naming system identify?",
              "definition": "Details about what the namespace identifies including scope, granularity, version labeling, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "NamingSystem.useContext",
              "short": "Content intends to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of naming systems.",
              "requirements": "Assist in searching for appropriate content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              }
            },
            {
              "path": "NamingSystem.usage",
              "short": "How/where is it used",
              "definition": "Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "NamingSystem.uniqueId",
              "short": "Unique identifiers used for system",
              "definition": "Indicates how the system may be identified when referenced in electronic exchange.",
              "comments": "Multiple identifiers may exist, either due to duplicate registration, regional rules, needs of different communication technologies, etc.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "NamingSystem.uniqueId.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NamingSystem.uniqueId.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NamingSystem.uniqueId.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NamingSystem.uniqueId.type",
              "short": "oid | uuid | uri | other",
              "definition": "Identifies the unique identifier scheme used for this particular identifier.",
              "comments": "Different identifier types may be used in different types of communications (OIDs for v3, URIs for FHIR, etc.).  Other includes RUIDs from v3, standard v2 code name strings, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Identifies the style of unique identifier used to identify a namespace.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/namingsystem-identifier-type"
                }
              }
            },
            {
              "path": "NamingSystem.uniqueId.value",
              "short": "The unique identifier",
              "definition": "The string that should be sent over the wire to identify the code system or identifier system.",
              "comments": "If the value is a URI intended for use as FHIR system identifier, the URI should not contain \"\\\" or \"?\" or \",\" since this makes escaping very difficult.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "NamingSystem.uniqueId.preferred",
              "short": "Is this the id that should be used for this type",
              "definition": "Indicates whether this identifier is the \"preferred\" identifier of this type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "If there are multiple ids, and one is labelled \"preferred\", then the assumption is that the others are not preferred. In the absence of any id marked as preferred, no inference can be drawn"
            },
            {
              "path": "NamingSystem.uniqueId.period",
              "short": "When is identifier valid?",
              "definition": "Identifies the period of time over which this identifier is considered appropriate to refer to the naming system.  Outside of this window, the identifier might be non-deterministic.",
              "comments": "Within a registry, a given identifier should only be \"active\" for a single namespace at a time.  (Ideally, an identifier should only ever be associated with a single namespace across all time).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "path": "NamingSystem.replacedBy",
              "short": "Use this instead",
              "definition": "For naming systems that are retired, indicates the naming system that should be used in their place (if any).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/NamingSystem"
                  ]
                }
              ],
              "condition": [
                "nsd-3"
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "NamingSystem",
              "short": "System of unique identification",
              "definition": "A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc.  Represents a \"System\" used within the Identifier and Coding data types.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "uniqueId.where(preferred = true).distinct(type)"
                    }
                  ],
                  "key": "nsd-2",
                  "severity": "error",
                  "human": "Can't have more than one preferred identifier for a type",
                  "xpath": "not(exists(for $type in distinct-values(f:uniqueId/f:type/@value) return if (count(f:uniqueId[f:type/@value=$type and f:preferred/@value=true()])>1) then $type else ()))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "replacedBy.empty() or status = 'retired'"
                    }
                  ],
                  "key": "nsd-3",
                  "severity": "error",
                  "human": "Can only have replacedBy if naming system is retired",
                  "xpath": "not(f:replacedBy) or f:status/@value='retired'"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "kind != 'root' or uniqueId in ('uuid' | 'ruid')"
                    }
                  ],
                  "key": "nsd-1",
                  "severity": "error",
                  "human": "Root systems cannot have uuid or sid identifiers",
                  "xpath": "not(f:kind/@value='root' and f:uniqueId/f:type/@value=('uuid', 'ruid'))"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "conformance.terminology"
                }
              ]
            },
            {
              "path": "NamingSystem.name",
              "short": "Human-readable label",
              "definition": "The descriptive name of this particular identifier type or code system.",
              "comments": "The\"symbolic name\" for an OID would be captured as an extension.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "NamingSystem.status",
              "short": "draft | active | retired",
              "definition": "Indicates whether the naming system is \"ready for use\" or not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "NamingSystem.kind",
              "short": "codesystem | identifier | root",
              "definition": "Indicates the purpose for the naming system - what kinds of things does it make unique?",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Identifies the purpose of the naming system.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/namingsystem-type"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "NamingSystem.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the naming system.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the naming system.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "NamingSystem.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "NamingSystem.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the naming system.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "NamingSystem.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "NamingSystem.responsible",
              "short": "Who maintains system namespace?",
              "definition": "The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision.",
              "comments": "This is the primary organization.  Responsibility for some aspects of a namespace may be delegated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "NamingSystem.date",
              "short": "Publication Date(/time)",
              "definition": "The date  (and optionally time) when the system was registered or published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the registration changes.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "NamingSystem.type",
              "short": "e.g. driver,  provider,  patient, bank etc.",
              "definition": "Categorizes a naming system for easier search by grouping related naming systems.",
              "comments": "This will most commonly be used for identifier namespaces, but categories could potentially be useful for code systems and authorities as well.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/identifier-type"
                }
              }
            },
            {
              "path": "NamingSystem.description",
              "short": "What does naming system identify?",
              "definition": "Details about what the namespace identifies including scope, granularity, version labeling, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "NamingSystem.useContext",
              "short": "Content intends to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of naming systems.",
              "requirements": "Assist in searching for appropriate content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              }
            },
            {
              "path": "NamingSystem.usage",
              "short": "How/where is it used",
              "definition": "Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "NamingSystem.uniqueId",
              "short": "Unique identifiers used for system",
              "definition": "Indicates how the system may be identified when referenced in electronic exchange.",
              "comments": "Multiple identifiers may exist, either due to duplicate registration, regional rules, needs of different communication technologies, etc.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "NamingSystem.uniqueId.type",
              "short": "oid | uuid | uri | other",
              "definition": "Identifies the unique identifier scheme used for this particular identifier.",
              "comments": "Different identifier types may be used in different types of communications (OIDs for v3, URIs for FHIR, etc.).  Other includes RUIDs from v3, standard v2 code name strings, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Identifies the style of unique identifier used to identify a namespace.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/namingsystem-identifier-type"
                }
              }
            },
            {
              "path": "NamingSystem.uniqueId.value",
              "short": "The unique identifier",
              "definition": "The string that should be sent over the wire to identify the code system or identifier system.",
              "comments": "If the value is a URI intended for use as FHIR system identifier, the URI should not contain \"\\\" or \"?\" or \",\" since this makes escaping very difficult.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "NamingSystem.uniqueId.preferred",
              "short": "Is this the id that should be used for this type",
              "definition": "Indicates whether this identifier is the \"preferred\" identifier of this type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "If there are multiple ids, and one is labelled \"preferred\", then the assumption is that the others are not preferred. In the absence of any id marked as preferred, no inference can be drawn"
            },
            {
              "path": "NamingSystem.uniqueId.period",
              "short": "When is identifier valid?",
              "definition": "Identifies the period of time over which this identifier is considered appropriate to refer to the naming system.  Outside of this window, the identifier might be non-deterministic.",
              "comments": "Within a registry, a given identifier should only be \"active\" for a single namespace at a time.  (Ideally, an identifier should only ever be associated with a single namespace across all time).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ]
            },
            {
              "path": "NamingSystem.replacedBy",
              "short": "Use this instead",
              "definition": "For naming systems that are retired, indicates the naming system that should be used in their place (if any).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/NamingSystem"
                  ]
                }
              ],
              "condition": [
                "nsd-3"
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "NutritionOrder",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
        "name": "NutritionOrder",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for NutritionOrder Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "NutritionOrder",
              "short": "A request for a diet, formula or nutritional supplement",
              "definition": "A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident.",
              "comments": "Referenced by an Order Request (workflow).",
              "alias": [
                "Diet Order",
                "Diet",
                "Nutritional Supplement",
                "Enteral Nutrition"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "oralDiet or supplement or enteralFormula"
                    }
                  ],
                  "key": "nor-1",
                  "severity": "warning",
                  "human": "Nutrition Order SHALL contain either Oral Diet , Supplement, or Enteral Formula class",
                  "xpath": "exists(f:oralDiet) or exists(f:supplement) or exists(f:enteralFormula)"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SupplyRequest"
                },
                {
                  "identity": "w5",
                  "map": "clinical.careprovision"
                }
              ]
            },
            {
              "path": "NutritionOrder.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "NutritionOrder.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "NutritionOrder.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "NutritionOrder.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "NutritionOrder.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "NutritionOrder.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.patient",
              "short": "The person who requires the diet, formula or nutritional supplement",
              "definition": "The person (patient) who needs the nutrition order for an oral diet, nutritional supplement and/or enteral or formula feeding.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "NutritionOrder.orderer",
              "short": "Who ordered the diet, formula or nutritional supplement",
              "definition": "The practitioner that holds legal responsibility for ordering the diet, nutritional supplement, or formula feedings.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "NutritionOrder.identifier",
              "short": "Identifiers assigned to this order",
              "definition": "Identifiers assigned to this order by the order sender or by the order receiver.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "NutritionOrder.encounter",
              "short": "The encounter associated with this nutrition order",
              "definition": "An encounter that provides additional information about the healthcare context in which this request is made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "NutritionOrder.dateTime",
              "short": "Date and time the nutrition order was requested",
              "definition": "The date and time that this nutrition order was requested.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "author.time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "NutritionOrder.status",
              "short": "proposed | draft | planned | requested | active | on-hold | completed | cancelled",
              "definition": "The workflow status of the nutrition order/request.",
              "comments": "Typically the system placing the order sets the status to \"requested\". Thereafter, the order is maintained by the receiver that updates the status as the request is handled.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Codes specifying the state of the request. Describes the lifecycle of the nutrition order.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/nutrition-order-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "NutritionOrder.allergyIntolerance",
              "short": "List of the patient's food and nutrition-related allergies and intolerances",
              "definition": "A link to a record of allergies or intolerances  which should be included in the nutrition order.",
              "comments": "Information on a patient's food allergies and intolerances, inform healthcare personnel about the type of foods that the patient should receive or consume.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=RSON].target[classCode=OBS, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "NutritionOrder.foodPreferenceModifier",
              "short": "Order-specific modifier about the type of food that should be given",
              "definition": "This modifier is used to convey order-specific modifiers about the type of food that should be given. These can be derived from patient allergies, intolerances, or preferences such as Halal, Vegan or Kosher. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings.",
              "comments": "Information on a patient's food preferences that inform healthcare personnel about the food that the patient should receive or consume.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Medical, cultural or ethical food preferences to help with catering requirements",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-diet"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship [typeCode =COMP], target [classCode=PROC, moodCode=EVN, code=NutritionModificationType]"
                }
              ]
            },
            {
              "path": "NutritionOrder.excludeFoodModifier",
              "short": "Order-specific modifier about the type of food that should not be given",
              "definition": "This modifier is used to convey order-specific modifiers about the type of food that should NOT be given. These can be derived from patient allergies, intolerances, or preferences such as No Red Meat, No Soy or No Wheat or  Gluten-Free.  While it should not be necessary to repeat allergy or intolerance information captured in the referenced allergyIntolerance resource in the excludeFoodModifier, this element may be used to convey additional specificity related to foods that should be eliminated from the patient’s diet for any reason.  This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings.",
              "comments": "Information on a patient's food allergies and intolerances, and preferences inform healthcare personnel about the type  of foods that the patient should receive or consume.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes used to indicate the type of food that should NOT be given to the patient.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/food-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet",
              "short": "Oral diet components",
              "definition": "Diet given orally in contrast to enteral (tube) feeding.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "nor-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "oralDiet .outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=OralDietSupplyType]"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.type",
              "short": "Type of oral diet or diet restrictions that describe what can be consumed orally",
              "definition": "The kind of diet or dietary restriction such as fiber restricted diet or diabetic diet.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes used to indicate the type of diet being ordered for a patient.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diet-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.schedule",
              "short": "Scheduled frequency of diet",
              "definition": "The time period and frequency at which the diet should be given.",
              "alias": [
                "frequency"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".expectedUseTime"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.nutrient",
              "short": "Required  nutrient modifications",
              "definition": "Class that defines the quantity and type of nutrient modifications required for the oral diet.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.nutrient.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.nutrient.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.nutrient.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.nutrient.modifier",
              "short": "Type of nutrient that is being modified",
              "definition": "The nutrient that is being modified such as carbohydrate or sodium.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes for types of nutrient that is being modified such as carbohydrate or sodium.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/nutrient-code"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.nutrient.amount",
              "short": "Quantity of the specified nutrient",
              "definition": "The quantity of the specified nutrient to include in diet.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.texture",
              "short": "Required  texture modifications",
              "definition": "Class that describes any texture modifications required for the patient to safely consume various types of solid foods.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship [typeCode =COMP], target [classCode=PROC, moodCode=EVN, code=DietTextureModificationType]"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.texture.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.texture.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.texture.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.texture.modifier",
              "short": "Code to indicate how to alter the texture of the foods, e.g. pureed",
              "definition": "Any texture modifications (for solid foods) that should be made, e.g. easy to chew, chopped, ground, and pureed.",
              "comments": "Coupled with the foodType (Meat).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes for food consistency types or texture modifications to apply to foods.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/texture-code"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.texture.foodType",
              "short": "Concepts that are used to identify an entity that is ingested for nutritional purposes",
              "definition": "The food type(s) (e.g. meats, all foods)  that the texture modification applies to.  This could be all foods types.",
              "comments": "Coupled with the textureModifier; could be (All Foods).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes for types of foods that are texture modified.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/modified-foodtype"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind; .code"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.fluidConsistencyType",
              "short": "The required consistency of fluids and liquids provided to the patient",
              "definition": "The required consistency (e.g. honey-thick, nectar-thick, thin, thickened.) of liquids or fluids served to the patient.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes used to represent the consistency of fluids and liquids provided to the patient.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/consistency-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code  (Not differentiated from dietTextureModificationType in HL7 v3)"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.instruction",
              "short": "Instructions or additional information about the oral diet",
              "definition": "Free text or additional instructions or information pertaining to the oral diet.",
              "comments": "Free text dosage instructions can be used for cases where the instructions are too complex to code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement",
              "short": "Supplement components",
              "definition": "Oral nutritional products given in order to add further nutritional value to the patient's diet.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "nor-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=SUPPLEMENT]"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.type",
              "short": "Type of supplement product requested",
              "definition": "The kind of nutritional supplement product required such as a high protein or pediatric clear liquid supplement.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for nutritional supplements to be provided to the patient",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplement-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind; .code (NutritionalSupplementType)"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.productName",
              "short": "Product or brand name of the nutritional supplement",
              "definition": "The product or brand name of the nutritional supplement such as \"Acme Protein Shake\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.schedule",
              "short": "Scheduled frequency of supplement",
              "definition": "The time period and frequency at which the supplement(s) should be given.",
              "alias": [
                "frequency"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.quantity",
              "short": "Amount of the nutritional supplement",
              "definition": "The amount of the nutritional supplement to be given.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.instruction",
              "short": "Instructions or additional information about the oral supplement",
              "definition": "Free text or additional instructions or information pertaining to the oral supplement.",
              "comments": "Free text dosage instructions can be used for cases where the instructions are too complex to code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula",
              "short": "Enteral formula components",
              "definition": "Feeding provided through the gastrointestinal tract via a tube, catheter, or stoma that delivers nutrition distal to the oral cavity.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "nor-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=FORMULA]"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.baseFormulaType",
              "short": "Type of enteral or infant formula",
              "definition": "The type of enteral or infant formula such as an adult standard formula with fiber or a soy-based infant formula.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for type of enteral formula to be administered to patient.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/entformula-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind; .code (NutritionalFormulaType)"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.baseFormulaProductName",
              "short": "Product or brand name of the enteral or infant formula",
              "definition": "The product or brand name of the enteral or infant formula product such as \"ACME Adult Standard Formula\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.additiveType",
              "short": "Type of modular component to add to the feeding",
              "definition": "Indicates the type of modular component such as protein, carbohydrate, fat or fiber to be provided in addition to or mixed with the base formula.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes for the type of modular component such as protein, carbohydrate or fiber to be provided in addition to or mixed with the base formula.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/entformula-additive"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A (not differentiated from NutritionalFormulaType in HL7 v3)"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.additiveProductName",
              "short": "Product or brand name of the modular additive",
              "definition": "The product or brand name of the type of modular component to be added to the formula.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.caloricDensity",
              "short": "Amount of energy per specified volume that is required",
              "definition": "The amount of energy (Calories) that the formula should provide per specified volume, typically per mL or fluid oz.  For example, an infant may require a formula that provides 24 Calories per fluid ounce or an adult may require an enteral formula that provides 1.5 Calorie/mL.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".quantity (caloricDensity)"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.routeofAdministration",
              "short": "How the formula should enter the patient's gastrointestinal tract",
              "definition": "The route or physiological path of administration into the patient's gastrointestinal  tract for purposes of providing the formula feeding, e.g. nasogastric tube.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Codes specifying the route of administration of enteral formula.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/enteral-route"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".routeCode"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administration",
              "short": "Formula feeding instruction as structured data",
              "definition": "Formula administration instructions as structured data.  This repeating structure allows for changing the administration rate or volume over time for both bolus and continuous feeding.  An example of this would be an instruction to increase the rate of continuous feeding every 2 hours.",
              "comments": "See implementation notes below for further discussion on how to order continuous vs bolus enteral feeding using this resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship [typeCode =COMP], target [classCode=SBADM, moodCode=RQO]"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administration.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administration.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administration.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administration.schedule",
              "short": "Scheduled frequency of enteral feeding",
              "definition": "The time period and frequency at which the enteral formula should be delivered to the patient.",
              "alias": [
                "frequency"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveUseTime"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administration.quantity",
              "short": "The volume of formula to provide",
              "definition": "The volume of formula to provide to the patient per the specified administration schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".doseQuantity"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administration.rate[x]",
              "short": "Speed with which the formula is provided per period of time",
              "definition": "The rate of administration of formula via a feeding pump, e.g. 60 mL per hour, according to the specified schedule.",
              "comments": "Ratio is used when the quantity value in the denominator is not \"1\", otherwise use Quantity. For example, the Ratio datatype is used for \"200 mL/4 hrs\" versus the Quantity datatype for \"50 mL/hr\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                },
                {
                  "code": "Ratio"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".rateQuantity"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.maxVolumeToDeliver",
              "short": "Upper limit on formula volume per unit of time",
              "definition": "The maximum total quantity of formula that may be administered to a subject over the period of time, e.g. 1440 mL over 24 hours.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".maxDoseQuantity"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administrationInstruction",
              "short": "Formula feeding instructions expressed as text",
              "definition": "Free text formula administration, feeding instructions or additional instructions or information.",
              "comments": "Free text dosage instructions can be used for cases where the instructions are too complex to code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "NutritionOrder",
              "short": "A request for a diet, formula or nutritional supplement",
              "definition": "A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident.",
              "comments": "Referenced by an Order Request (workflow).",
              "alias": [
                "Diet Order",
                "Diet",
                "Nutritional Supplement",
                "Enteral Nutrition"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "oralDiet or supplement or enteralFormula"
                    }
                  ],
                  "key": "nor-1",
                  "severity": "warning",
                  "human": "Nutrition Order SHALL contain either Oral Diet , Supplement, or Enteral Formula class",
                  "xpath": "exists(f:oralDiet) or exists(f:supplement) or exists(f:enteralFormula)"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "SupplyRequest"
                },
                {
                  "identity": "w5",
                  "map": "clinical.careprovision"
                }
              ]
            },
            {
              "path": "NutritionOrder.patient",
              "short": "The person who requires the diet, formula or nutritional supplement",
              "definition": "The person (patient) who needs the nutrition order for an oral diet, nutritional supplement and/or enteral or formula feeding.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "NutritionOrder.orderer",
              "short": "Who ordered the diet, formula or nutritional supplement",
              "definition": "The practitioner that holds legal responsibility for ordering the diet, nutritional supplement, or formula feedings.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "NutritionOrder.identifier",
              "short": "Identifiers assigned to this order",
              "definition": "Identifiers assigned to this order by the order sender or by the order receiver.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "NutritionOrder.encounter",
              "short": "The encounter associated with this nutrition order",
              "definition": "An encounter that provides additional information about the healthcare context in which this request is made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "NutritionOrder.dateTime",
              "short": "Date and time the nutrition order was requested",
              "definition": "The date and time that this nutrition order was requested.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "author.time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "NutritionOrder.status",
              "short": "proposed | draft | planned | requested | active | on-hold | completed | cancelled",
              "definition": "The workflow status of the nutrition order/request.",
              "comments": "Typically the system placing the order sets the status to \"requested\". Thereafter, the order is maintained by the receiver that updates the status as the request is handled.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Codes specifying the state of the request. Describes the lifecycle of the nutrition order.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/nutrition-order-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "NutritionOrder.allergyIntolerance",
              "short": "List of the patient's food and nutrition-related allergies and intolerances",
              "definition": "A link to a record of allergies or intolerances  which should be included in the nutrition order.",
              "comments": "Information on a patient's food allergies and intolerances, inform healthcare personnel about the type of foods that the patient should receive or consume.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=RSON].target[classCode=OBS, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "NutritionOrder.foodPreferenceModifier",
              "short": "Order-specific modifier about the type of food that should be given",
              "definition": "This modifier is used to convey order-specific modifiers about the type of food that should be given. These can be derived from patient allergies, intolerances, or preferences such as Halal, Vegan or Kosher. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings.",
              "comments": "Information on a patient's food preferences that inform healthcare personnel about the food that the patient should receive or consume.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Medical, cultural or ethical food preferences to help with catering requirements",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/encounter-diet"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship [typeCode =COMP], target [classCode=PROC, moodCode=EVN, code=NutritionModificationType]"
                }
              ]
            },
            {
              "path": "NutritionOrder.excludeFoodModifier",
              "short": "Order-specific modifier about the type of food that should not be given",
              "definition": "This modifier is used to convey order-specific modifiers about the type of food that should NOT be given. These can be derived from patient allergies, intolerances, or preferences such as No Red Meat, No Soy or No Wheat or  Gluten-Free.  While it should not be necessary to repeat allergy or intolerance information captured in the referenced allergyIntolerance resource in the excludeFoodModifier, this element may be used to convey additional specificity related to foods that should be eliminated from the patient’s diet for any reason.  This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings.",
              "comments": "Information on a patient's food allergies and intolerances, and preferences inform healthcare personnel about the type  of foods that the patient should receive or consume.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes used to indicate the type of food that should NOT be given to the patient.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/food-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet",
              "short": "Oral diet components",
              "definition": "Diet given orally in contrast to enteral (tube) feeding.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "nor-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "oralDiet .outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=OralDietSupplyType]"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.type",
              "short": "Type of oral diet or diet restrictions that describe what can be consumed orally",
              "definition": "The kind of diet or dietary restriction such as fiber restricted diet or diabetic diet.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes used to indicate the type of diet being ordered for a patient.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diet-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.schedule",
              "short": "Scheduled frequency of diet",
              "definition": "The time period and frequency at which the diet should be given.",
              "alias": [
                "frequency"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".expectedUseTime"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.nutrient",
              "short": "Required  nutrient modifications",
              "definition": "Class that defines the quantity and type of nutrient modifications required for the oral diet.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.nutrient.modifier",
              "short": "Type of nutrient that is being modified",
              "definition": "The nutrient that is being modified such as carbohydrate or sodium.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes for types of nutrient that is being modified such as carbohydrate or sodium.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/nutrient-code"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.nutrient.amount",
              "short": "Quantity of the specified nutrient",
              "definition": "The quantity of the specified nutrient to include in diet.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.texture",
              "short": "Required  texture modifications",
              "definition": "Class that describes any texture modifications required for the patient to safely consume various types of solid foods.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship [typeCode =COMP], target [classCode=PROC, moodCode=EVN, code=DietTextureModificationType]"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.texture.modifier",
              "short": "Code to indicate how to alter the texture of the foods, e.g. pureed",
              "definition": "Any texture modifications (for solid foods) that should be made, e.g. easy to chew, chopped, ground, and pureed.",
              "comments": "Coupled with the foodType (Meat).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes for food consistency types or texture modifications to apply to foods.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/texture-code"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.texture.foodType",
              "short": "Concepts that are used to identify an entity that is ingested for nutritional purposes",
              "definition": "The food type(s) (e.g. meats, all foods)  that the texture modification applies to.  This could be all foods types.",
              "comments": "Coupled with the textureModifier; could be (All Foods).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes for types of foods that are texture modified.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/modified-foodtype"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind; .code"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.fluidConsistencyType",
              "short": "The required consistency of fluids and liquids provided to the patient",
              "definition": "The required consistency (e.g. honey-thick, nectar-thick, thin, thickened.) of liquids or fluids served to the patient.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes used to represent the consistency of fluids and liquids provided to the patient.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/consistency-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code  (Not differentiated from dietTextureModificationType in HL7 v3)"
                }
              ]
            },
            {
              "path": "NutritionOrder.oralDiet.instruction",
              "short": "Instructions or additional information about the oral diet",
              "definition": "Free text or additional instructions or information pertaining to the oral diet.",
              "comments": "Free text dosage instructions can be used for cases where the instructions are too complex to code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement",
              "short": "Supplement components",
              "definition": "Oral nutritional products given in order to add further nutritional value to the patient's diet.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "nor-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=SUPPLEMENT]"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.type",
              "short": "Type of supplement product requested",
              "definition": "The kind of nutritional supplement product required such as a high protein or pediatric clear liquid supplement.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for nutritional supplements to be provided to the patient",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplement-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind; .code (NutritionalSupplementType)"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.productName",
              "short": "Product or brand name of the nutritional supplement",
              "definition": "The product or brand name of the nutritional supplement such as \"Acme Protein Shake\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.schedule",
              "short": "Scheduled frequency of supplement",
              "definition": "The time period and frequency at which the supplement(s) should be given.",
              "alias": [
                "frequency"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.quantity",
              "short": "Amount of the nutritional supplement",
              "definition": "The amount of the nutritional supplement to be given.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "NutritionOrder.supplement.instruction",
              "short": "Instructions or additional information about the oral supplement",
              "definition": "Free text or additional instructions or information pertaining to the oral supplement.",
              "comments": "Free text dosage instructions can be used for cases where the instructions are too complex to code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula",
              "short": "Enteral formula components",
              "definition": "Feeding provided through the gastrointestinal tract via a tube, catheter, or stoma that delivers nutrition distal to the oral cavity.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "nor-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=FORMULA]"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.baseFormulaType",
              "short": "Type of enteral or infant formula",
              "definition": "The type of enteral or infant formula such as an adult standard formula with fiber or a soy-based infant formula.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for type of enteral formula to be administered to patient.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/entformula-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind; .code (NutritionalFormulaType)"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.baseFormulaProductName",
              "short": "Product or brand name of the enteral or infant formula",
              "definition": "The product or brand name of the enteral or infant formula product such as \"ACME Adult Standard Formula\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.additiveType",
              "short": "Type of modular component to add to the feeding",
              "definition": "Indicates the type of modular component such as protein, carbohydrate, fat or fiber to be provided in addition to or mixed with the base formula.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes for the type of modular component such as protein, carbohydrate or fiber to be provided in addition to or mixed with the base formula.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/entformula-additive"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A (not differentiated from NutritionalFormulaType in HL7 v3)"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.additiveProductName",
              "short": "Product or brand name of the modular additive",
              "definition": "The product or brand name of the type of modular component to be added to the formula.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.caloricDensity",
              "short": "Amount of energy per specified volume that is required",
              "definition": "The amount of energy (Calories) that the formula should provide per specified volume, typically per mL or fluid oz.  For example, an infant may require a formula that provides 24 Calories per fluid ounce or an adult may require an enteral formula that provides 1.5 Calorie/mL.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".quantity (caloricDensity)"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.routeofAdministration",
              "short": "How the formula should enter the patient's gastrointestinal tract",
              "definition": "The route or physiological path of administration into the patient's gastrointestinal  tract for purposes of providing the formula feeding, e.g. nasogastric tube.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Codes specifying the route of administration of enteral formula.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/enteral-route"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".routeCode"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administration",
              "short": "Formula feeding instruction as structured data",
              "definition": "Formula administration instructions as structured data.  This repeating structure allows for changing the administration rate or volume over time for both bolus and continuous feeding.  An example of this would be an instruction to increase the rate of continuous feeding every 2 hours.",
              "comments": "See implementation notes below for further discussion on how to order continuous vs bolus enteral feeding using this resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship [typeCode =COMP], target [classCode=SBADM, moodCode=RQO]"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administration.schedule",
              "short": "Scheduled frequency of enteral feeding",
              "definition": "The time period and frequency at which the enteral formula should be delivered to the patient.",
              "alias": [
                "frequency"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveUseTime"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administration.quantity",
              "short": "The volume of formula to provide",
              "definition": "The volume of formula to provide to the patient per the specified administration schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".doseQuantity"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administration.rate[x]",
              "short": "Speed with which the formula is provided per period of time",
              "definition": "The rate of administration of formula via a feeding pump, e.g. 60 mL per hour, according to the specified schedule.",
              "comments": "Ratio is used when the quantity value in the denominator is not \"1\", otherwise use Quantity. For example, the Ratio datatype is used for \"200 mL/4 hrs\" versus the Quantity datatype for \"50 mL/hr\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                },
                {
                  "code": "Ratio"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".rateQuantity"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.maxVolumeToDeliver",
              "short": "Upper limit on formula volume per unit of time",
              "definition": "The maximum total quantity of formula that may be administered to a subject over the period of time, e.g. 1440 mL over 24 hours.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".maxDoseQuantity"
                }
              ]
            },
            {
              "path": "NutritionOrder.enteralFormula.administrationInstruction",
              "short": "Formula feeding instructions expressed as text",
              "definition": "Free text formula administration, feeding instructions or additional instructions or information.",
              "comments": "Free text dosage instructions can be used for cases where the instructions are too complex to code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Observation",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Observation",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 3
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Observation",
        "name": "Observation",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Observation Resource",
        "requirements": "Observations are a key aspect of healthcare.  This resource is used to capture those that do not require more sophisticated mechanisms.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Observation",
              "short": "Measurements and simple assertions",
              "definition": "Measurements and simple assertions made about a patient, device or other subject.",
              "comments": "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 lab reports, etc.",
              "alias": [
                "Vital Signs",
                "Measurement",
                "Results",
                "Tests"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "dataAbsentReason.empty() or value[x].empty()"
                    }
                  ],
                  "key": "obs-6",
                  "severity": "error",
                  "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
                  "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "component.where(code = $context.code).empty()"
                    }
                  ],
                  "key": "obs-7",
                  "severity": "error",
                  "human": "Component code SHALL not be same as observation code",
                  "xpath": "not(exists(f:component/f:code)) or count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Observation.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "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 may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Observation.identifier",
              "short": "Unique Id for this particular observation",
              "definition": "A unique identifier for the simple observation instance.",
              "requirements": "Allows observations to be distinguished and referenced.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX.21"
                },
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "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.",
              "requirements": "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Codes providing the status of an observation.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-status"
                }
              },
              "mapping": [
                {
                  "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\""
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Observation.category",
              "short": "Classification of  type of observation",
              "definition": "A code that classifies the general type of observation being made.  This is used  for searching, sorting and display purposes.",
              "comments": "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 Observation.code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes for high level observation categories .",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-category"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Observation.code",
              "short": "Type of observation (code / type)",
              "definition": "Describes what was observed. Sometimes this is called the observation \"name\".",
              "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes identifying names of simple observations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-3"
                },
                {
                  "identity": "rim",
                  "map": "code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Observation.subject",
              "short": "Who and/or what this is about",
              "definition": "The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed.  Comments: Indirect characteristics may be those of a specimen, fetus, donor,  other observer (for example a relative or EMT), or any observation made about the subject.",
              "comments": "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.\r\rIf the target of the observation is different than the subject, the general extension [observation-focal-subject](extension-observation-focal-subject.html).  may be used.  However, the distinction between the patient's own value for an observation versus that of the fetus, or the donor or blood product unit, etc., are often specified in the observation code.",
              "requirements": "Observations have no value if you don't know who or what they're about.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=SBJ]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "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.",
              "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1"
                },
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "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.",
              "comments": "At least a date should be present unless this observation is a historical report.",
              "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
                },
                {
                  "identity": "rim",
                  "map": "effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Observation.issued",
              "short": "Date/Time this was made available",
              "definition": "The date and time this observation was made available to providers, typically after the results have been reviewed and verified.",
              "comments": "Updated when the result is updated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "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]"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "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.",
              "comments": "Normally, an observation will have either a value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is derived). If a value is present, the datatype for this element should be determined by Observation.code. This element has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueString, valueRange, valueRatio, valueSampledData, valueAttachment, valueTime, valueDateTime, or valuePeriod. (The name format is \"'value' + the type name\" with a capital on the first letter of the type).\r\r\rIf the data element is usually coded or if the type associated with the Observation.value defines a coded value, use CodeableConcept instead of string datatype even if the value is uncoded text.  A value set is bound to the ValueCodeableConcept element.  For boolean values use valueCodeableConcept and select codes from [HL7 Version 2 Table 0136](v2/0136/index.html). These \"yes/no\" concepts can be mapped to the display name \"true/false\" or other mutually exclusive terms that may be needed.   For further discussion and examples see the  [notes section](observation.html#4.20.4) below.",
              "requirements": "An observation exists to have a value, though it may not if it is in error, or it represents a group of observations.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity"
                },
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "string"
                },
                {
                  "code": "Range"
                },
                {
                  "code": "Ratio"
                },
                {
                  "code": "SampledData"
                },
                {
                  "code": "Attachment"
                },
                {
                  "code": "time"
                },
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX.2, OBX.5, OBX.6"
                },
                {
                  "identity": "rim",
                  "map": "value"
                }
              ]
            },
            {
              "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.",
              "comments": "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\".   The 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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "obs-6"
              ],
              "binding": {
                "strength": "extensible",
                "description": "Codes specifying why the result (Observation.value[x]) is missing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "value.nullFlavor"
                }
              ]
            },
            {
              "path": "Observation.interpretation",
              "short": "High, low, normal, etc.",
              "definition": "The assessment made based on the result of the observation.  Intended as a simple compact code often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result. Otherwise known as abnormal flag.",
              "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Codes identifying interpretations of observations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-8"
                },
                {
                  "identity": "rim",
                  "map": "interpretationCode"
                }
              ]
            },
            {
              "path": "Observation.comments",
              "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.",
              "requirements": "Need to be able to provide free text additional information.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
                },
                {
                  "identity": "rim",
                  "map": "subjectOf.observationEvent[code=\"annotation\"].value"
                }
              ]
            },
            {
              "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).",
              "comments": "Only used if not implicit in code found in Observation.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[ body-site-instance](extension-body-site-instance.html).",
              "requirements": "Knowing where the observation is made is important for tracking if multiple sites are possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-20"
                },
                {
                  "identity": "rim",
                  "map": "targetSiteCode"
                }
              ]
            },
            {
              "path": "Observation.method",
              "short": "How it was done",
              "definition": "Indicates the mechanism used to perform the observation.",
              "comments": "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Methods for simple observations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-methods"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-17"
                },
                {
                  "identity": "rim",
                  "map": "methodCode"
                }
              ]
            },
            {
              "path": "Observation.specimen",
              "short": "Specimen used for this observation",
              "definition": "The specimen that was used when this observation was made.",
              "comments": "Observations are not made on specimens themselves; they are made on a subject, but usually 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",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Specimen"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM segment"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=SPC].specimen"
                }
              ]
            },
            {
              "path": "Observation.device",
              "short": "(Measurement) Device",
              "definition": "The device used to generate the observation data.",
              "comments": "An extension should be used if further typing of the device is needed.  Devices used to support obtaining an observation can be represented using either extension or through the Observation.related element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-17 / PRT -10"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=DEV]"
                }
              ]
            },
            {
              "path": "Observation.referenceRange",
              "name": "referenceRange",
              "short": "Provides guide for interpretation",
              "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
              "comments": "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 may 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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "low or high or text"
                    }
                  ],
                  "key": "obs-3",
                  "severity": "error",
                  "human": "Must have at least a low or a high or text",
                  "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX.7"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "Observation.referenceRange.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Observation.referenceRange.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "condition": [
                "obs-3"
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-7"
                },
                {
                  "identity": "rim",
                  "map": "value:IVL_PQ.low"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "condition": [
                "obs-3"
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-7"
                },
                {
                  "identity": "rim",
                  "map": "value:IVL_PQ.high"
                }
              ]
            },
            {
              "path": "Observation.referenceRange.meaning",
              "short": "Indicates the meaning/use of this range of this range",
              "definition": "Code for the meaning of the reference range.",
              "comments": "This SHOULD be populated if there is more than one range.",
              "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, or perhaps what state this reference range applies to (i.e. age, hormonal cycles, etc.).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Code for the meaning of a reference range.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-10?"
                },
                {
                  "identity": "rim",
                  "map": "interpretationCode"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Range"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-7"
                },
                {
                  "identity": "rim",
                  "map": "value:ST"
                }
              ]
            },
            {
              "path": "Observation.related",
              "short": "Resource related to this observation",
              "definition": "A  reference to another resource (usually another Observation but could  also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code.",
              "comments": "For a discussion on the ways Observations can assembled in groups together see [Notes below](observation.html#4.20.4).",
              "requirements": "Normally, an observation will have either a value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and a set of related observations or sometimes QuestionnaireResponse  from which the measure is derived.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Relationships established by OBX-4 usage"
                },
                {
                  "identity": "rim",
                  "map": "outBoundRelationship"
                }
              ]
            },
            {
              "path": "Observation.related.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Observation.related.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Observation.related.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Observation.related.type",
              "short": "has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by",
              "definition": "A code specifying the kind of relationship that exists with the target resource.",
              "comments": "\"derived-from\" is only logical choice when referencing QuestionnaireAnswer resource.",
              "requirements": "A relationship type SHOULD be provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Codes specifying how two observations are related.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": ".typeCode"
                }
              ]
            },
            {
              "path": "Observation.related.target",
              "short": "Resource that is related to this one",
              "definition": "A reference to the observation or [[[QuestionnaireResponse]]] resource that is related to this observation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".targetObservation"
                }
              ]
            },
            {
              "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.",
              "comments": "For a discussion on the ways Observations can assembled in groups together see [Notes below](observation.html#4.20.4).",
              "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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "containment by OBX-4?"
                },
                {
                  "identity": "rim",
                  "map": "outBoundRelationship[typeCode=COMP]"
                }
              ]
            },
            {
              "path": "Observation.component.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Observation.component.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Observation.component.code",
              "short": "Type of component observation (code / type)",
              "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
              "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "obs-7"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes identifying names of simple observations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-3"
                },
                {
                  "identity": "rim",
                  "map": "code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "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.",
              "comments": "Normally, an observation will have either a value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is 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 boolean values use valueCodeableConcept and select codes from <http://hl7.org/fhir/ValueSet/v2-0136> (These \"yes/no\" concepts can be mapped to the display name \"true/false\" or other mutually exclusive terms that may be needed\").  The element, Observation.value[x], has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueRatio, valueChoice, valuePeriod, valueSampleData, or valueString (The name format is \"'value' + the type name\" with a capital on the first letter of the type).",
              "requirements": "An observation exists to have a value, though it may not if it is in error, or it represents a group of observations.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity"
                },
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "string"
                },
                {
                  "code": "Range"
                },
                {
                  "code": "Ratio"
                },
                {
                  "code": "SampledData"
                },
                {
                  "code": "Attachment"
                },
                {
                  "code": "time"
                },
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX.2, OBX.5, OBX.6"
                },
                {
                  "identity": "rim",
                  "map": "value"
                }
              ]
            },
            {
              "path": "Observation.component.dataAbsentReason",
              "short": "Why the component result is missing",
              "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
              "comments": "\"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\".   The 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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "obs-6"
              ],
              "binding": {
                "strength": "extensible",
                "description": "Codes specifying why the result (Observation.value[x]) is missing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "value.nullFlavor"
                }
              ]
            },
            {
              "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.",
              "comments": "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 may 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": "*",
              "nameReference": "referenceRange",
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX.7"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Observation",
              "short": "Measurements and simple assertions",
              "definition": "Measurements and simple assertions made about a patient, device or other subject.",
              "comments": "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 lab reports, etc.",
              "alias": [
                "Vital Signs",
                "Measurement",
                "Results",
                "Tests"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "dataAbsentReason.empty() or value[x].empty()"
                    }
                  ],
                  "key": "obs-6",
                  "severity": "error",
                  "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
                  "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "component.where(code = $context.code).empty()"
                    }
                  ],
                  "key": "obs-7",
                  "severity": "error",
                  "human": "Component code SHALL not be same as observation code",
                  "xpath": "not(exists(f:component/f:code)) or count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "Observation.identifier",
              "short": "Unique Id for this particular observation",
              "definition": "A unique identifier for the simple observation instance.",
              "requirements": "Allows observations to be distinguished and referenced.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX.21"
                },
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "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.",
              "requirements": "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Codes providing the status of an observation.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-status"
                }
              },
              "mapping": [
                {
                  "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\""
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Observation.category",
              "short": "Classification of  type of observation",
              "definition": "A code that classifies the general type of observation being made.  This is used  for searching, sorting and display purposes.",
              "comments": "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 Observation.code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes for high level observation categories .",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-category"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Observation.code",
              "short": "Type of observation (code / type)",
              "definition": "Describes what was observed. Sometimes this is called the observation \"name\".",
              "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes identifying names of simple observations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-3"
                },
                {
                  "identity": "rim",
                  "map": "code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Observation.subject",
              "short": "Who and/or what this is about",
              "definition": "The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed.  Comments: Indirect characteristics may be those of a specimen, fetus, donor,  other observer (for example a relative or EMT), or any observation made about the subject.",
              "comments": "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.\r\rIf the target of the observation is different than the subject, the general extension [observation-focal-subject](extension-observation-focal-subject.html).  may be used.  However, the distinction between the patient's own value for an observation versus that of the fetus, or the donor or blood product unit, etc., are often specified in the observation code.",
              "requirements": "Observations have no value if you don't know who or what they're about.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=SBJ]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "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.",
              "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1"
                },
                {
                  "identity": "rim",
                  "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "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.",
              "comments": "At least a date should be present unless this observation is a historical report.",
              "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
                },
                {
                  "identity": "rim",
                  "map": "effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Observation.issued",
              "short": "Date/Time this was made available",
              "definition": "The date and time this observation was made available to providers, typically after the results have been reviewed and verified.",
              "comments": "Updated when the result is updated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "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]"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "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.",
              "comments": "Normally, an observation will have either a value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is derived). If a value is present, the datatype for this element should be determined by Observation.code. This element has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueString, valueRange, valueRatio, valueSampledData, valueAttachment, valueTime, valueDateTime, or valuePeriod. (The name format is \"'value' + the type name\" with a capital on the first letter of the type).\r\r\rIf the data element is usually coded or if the type associated with the Observation.value defines a coded value, use CodeableConcept instead of string datatype even if the value is uncoded text.  A value set is bound to the ValueCodeableConcept element.  For boolean values use valueCodeableConcept and select codes from [HL7 Version 2 Table 0136](v2/0136/index.html). These \"yes/no\" concepts can be mapped to the display name \"true/false\" or other mutually exclusive terms that may be needed.   For further discussion and examples see the  [notes section](observation.html#4.20.4) below.",
              "requirements": "An observation exists to have a value, though it may not if it is in error, or it represents a group of observations.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity"
                },
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "string"
                },
                {
                  "code": "Range"
                },
                {
                  "code": "Ratio"
                },
                {
                  "code": "SampledData"
                },
                {
                  "code": "Attachment"
                },
                {
                  "code": "time"
                },
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX.2, OBX.5, OBX.6"
                },
                {
                  "identity": "rim",
                  "map": "value"
                }
              ]
            },
            {
              "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.",
              "comments": "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\".   The 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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "obs-6"
              ],
              "binding": {
                "strength": "extensible",
                "description": "Codes specifying why the result (Observation.value[x]) is missing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "value.nullFlavor"
                }
              ]
            },
            {
              "path": "Observation.interpretation",
              "short": "High, low, normal, etc.",
              "definition": "The assessment made based on the result of the observation.  Intended as a simple compact code often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result. Otherwise known as abnormal flag.",
              "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "Codes identifying interpretations of observations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-8"
                },
                {
                  "identity": "rim",
                  "map": "interpretationCode"
                }
              ]
            },
            {
              "path": "Observation.comments",
              "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.",
              "requirements": "Need to be able to provide free text additional information.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
                },
                {
                  "identity": "rim",
                  "map": "subjectOf.observationEvent[code=\"annotation\"].value"
                }
              ]
            },
            {
              "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).",
              "comments": "Only used if not implicit in code found in Observation.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[ body-site-instance](extension-body-site-instance.html).",
              "requirements": "Knowing where the observation is made is important for tracking if multiple sites are possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-20"
                },
                {
                  "identity": "rim",
                  "map": "targetSiteCode"
                }
              ]
            },
            {
              "path": "Observation.method",
              "short": "How it was done",
              "definition": "Indicates the mechanism used to perform the observation.",
              "comments": "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Methods for simple observations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-methods"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-17"
                },
                {
                  "identity": "rim",
                  "map": "methodCode"
                }
              ]
            },
            {
              "path": "Observation.specimen",
              "short": "Specimen used for this observation",
              "definition": "The specimen that was used when this observation was made.",
              "comments": "Observations are not made on specimens themselves; they are made on a subject, but usually 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",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Specimen"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM segment"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=SPC].specimen"
                }
              ]
            },
            {
              "path": "Observation.device",
              "short": "(Measurement) Device",
              "definition": "The device used to generate the observation data.",
              "comments": "An extension should be used if further typing of the device is needed.  Devices used to support obtaining an observation can be represented using either extension or through the Observation.related element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-17 / PRT -10"
                },
                {
                  "identity": "rim",
                  "map": "participation[typeCode=DEV]"
                }
              ]
            },
            {
              "path": "Observation.referenceRange",
              "name": "referenceRange",
              "short": "Provides guide for interpretation",
              "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
              "comments": "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 may 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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "low or high or text"
                    }
                  ],
                  "key": "obs-3",
                  "severity": "error",
                  "human": "Must have at least a low or a high or text",
                  "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX.7"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "condition": [
                "obs-3"
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-7"
                },
                {
                  "identity": "rim",
                  "map": "value:IVL_PQ.low"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "condition": [
                "obs-3"
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-7"
                },
                {
                  "identity": "rim",
                  "map": "value:IVL_PQ.high"
                }
              ]
            },
            {
              "path": "Observation.referenceRange.meaning",
              "short": "Indicates the meaning/use of this range of this range",
              "definition": "Code for the meaning of the reference range.",
              "comments": "This SHOULD be populated if there is more than one range.",
              "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, or perhaps what state this reference range applies to (i.e. age, hormonal cycles, etc.).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Code for the meaning of a reference range.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-10?"
                },
                {
                  "identity": "rim",
                  "map": "interpretationCode"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "Range"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-7"
                },
                {
                  "identity": "rim",
                  "map": "value:ST"
                }
              ]
            },
            {
              "path": "Observation.related",
              "short": "Resource related to this observation",
              "definition": "A  reference to another resource (usually another Observation but could  also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code.",
              "comments": "For a discussion on the ways Observations can assembled in groups together see [Notes below](observation.html#4.20.4).",
              "requirements": "Normally, an observation will have either a value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and a set of related observations or sometimes QuestionnaireResponse  from which the measure is derived.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Relationships established by OBX-4 usage"
                },
                {
                  "identity": "rim",
                  "map": "outBoundRelationship"
                }
              ]
            },
            {
              "path": "Observation.related.type",
              "short": "has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by",
              "definition": "A code specifying the kind of relationship that exists with the target resource.",
              "comments": "\"derived-from\" is only logical choice when referencing QuestionnaireAnswer resource.",
              "requirements": "A relationship type SHOULD be provided.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Codes specifying how two observations are related.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": ".typeCode"
                }
              ]
            },
            {
              "path": "Observation.related.target",
              "short": "Resource that is related to this one",
              "definition": "A reference to the observation or [[[QuestionnaireResponse]]] resource that is related to this observation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Observation"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".targetObservation"
                }
              ]
            },
            {
              "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.",
              "comments": "For a discussion on the ways Observations can assembled in groups together see [Notes below](observation.html#4.20.4).",
              "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": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "containment by OBX-4?"
                },
                {
                  "identity": "rim",
                  "map": "outBoundRelationship[typeCode=COMP]"
                }
              ]
            },
            {
              "path": "Observation.component.code",
              "short": "Type of component observation (code / type)",
              "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
              "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "obs-7"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes identifying names of simple observations.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-3"
                },
                {
                  "identity": "rim",
                  "map": "code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "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.",
              "comments": "Normally, an observation will have either a value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is 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 boolean values use valueCodeableConcept and select codes from <http://hl7.org/fhir/ValueSet/v2-0136> (These \"yes/no\" concepts can be mapped to the display name \"true/false\" or other mutually exclusive terms that may be needed\").  The element, Observation.value[x], has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueRatio, valueChoice, valuePeriod, valueSampleData, or valueString (The name format is \"'value' + the type name\" with a capital on the first letter of the type).",
              "requirements": "An observation exists to have a value, though it may not if it is in error, or it represents a group of observations.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity"
                },
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "string"
                },
                {
                  "code": "Range"
                },
                {
                  "code": "Ratio"
                },
                {
                  "code": "SampledData"
                },
                {
                  "code": "Attachment"
                },
                {
                  "code": "time"
                },
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX.2, OBX.5, OBX.6"
                },
                {
                  "identity": "rim",
                  "map": "value"
                }
              ]
            },
            {
              "path": "Observation.component.dataAbsentReason",
              "short": "Why the component result is missing",
              "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
              "comments": "\"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\".   The 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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "obs-6"
              ],
              "binding": {
                "strength": "extensible",
                "description": "Codes specifying why the result (Observation.value[x]) is missing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "value.nullFlavor"
                }
              ]
            },
            {
              "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.",
              "comments": "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 may 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": "*",
              "nameReference": "referenceRange",
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX.7"
                },
                {
                  "identity": "rim",
                  "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/OperationDefinition",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "OperationDefinition",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/OperationDefinition",
        "name": "OperationDefinition",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for OperationDefinition Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "OperationDefinition",
              "short": "Definition of an operation or a named query",
              "definition": "A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "conformance.behavior"
                }
              ]
            },
            {
              "path": "OperationDefinition.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OperationDefinition.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OperationDefinition.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "OperationDefinition.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "OperationDefinition.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "OperationDefinition.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OperationDefinition.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OperationDefinition.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OperationDefinition.url",
              "short": "Logical URL to reference this operation definition",
              "definition": "An absolute URL that is used to identify this operation definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this operation definition is (or will be) published.",
              "comments": "Can be a urn:uuid: or a urn:oid:.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "OperationDefinition.version",
              "short": "Logical id for this version of the operation definition",
              "definition": "The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.",
              "requirements": "There may be multiple resource versions of the profile that have this same identifier. The resource version id will change for technical reasons, whereas the stated version number needs to be under the author's control.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "OperationDefinition.name",
              "short": "Informal name for this operation",
              "definition": "A free text natural language name identifying the operation.",
              "comments": "Not expected to be globally unique.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OperationDefinition.status",
              "short": "draft | active | retired",
              "definition": "The status of the profile.",
              "requirements": "Allows filtering of profiles that are appropriate for use vs. not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "OperationDefinition.kind",
              "short": "operation | query",
              "definition": "Whether this is an operation or a named query.",
              "comments": "Named queries are invoked differently, and have different capabilities.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Whether an operation is a normal operation or a query.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-kind"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "OperationDefinition.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "requirements": "Allows filtering of profiles that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "OperationDefinition.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the operation definition.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the operation definition.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "OperationDefinition.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OperationDefinition.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "OperationDefinition.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "OperationDefinition.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OperationDefinition.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the operation definition.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OperationDefinition.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OperationDefinition.date",
              "short": "Date for this version of the operation definition",
              "definition": "The date this version of the operation definition was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the Operation Definition changes.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "OperationDefinition.description",
              "short": "Natural language description of the operation",
              "definition": "A free text natural language description of the profile and its use.",
              "comments": "This field can be used for things such as why the profile was written, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc.  It is *not* a rendering of the profile as conveyed in Profile.text. This item SHOULD be populated unless the information is available from context.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OperationDefinition.requirements",
              "short": "Why is this needed?",
              "definition": "Explains why this operation definition is needed and why it's been constrained as it has.",
              "comments": "This element does not describe the usage of the operation definition (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",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OperationDefinition.idempotent",
              "short": "Whether content is unchanged by operation",
              "definition": "Operations that are idempotent (see [HTTP specification definition of idempotent](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)) may be invoked by performing an HTTP GET operation instead of a POST.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "OperationDefinition.code",
              "short": "Name used to invoke the operation",
              "definition": "The name used to invoke the operation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "OperationDefinition.notes",
              "short": "Additional information about use",
              "definition": "Additional information about how to use this operation or named query.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OperationDefinition.base",
              "short": "Marks this as a profile of the base",
              "definition": "Indicates that this operation definition is a constraining profile on the base.",
              "comments": "A constrained profile can make optional parameters required or not used and clarify documentation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                  ]
                }
              ]
            },
            {
              "path": "OperationDefinition.system",
              "short": "Invoke at the system level?",
              "definition": "Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "OperationDefinition.type",
              "short": "Invoke at resource level for these type",
              "definition": "Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a resource type for the context).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "OperationDefinition.instance",
              "short": "Invoke on an instance?",
              "definition": "Indicates whether this operation can be invoked on a particular instance of one of the given types.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter",
              "name": "parameter",
              "short": "Parameters for the operation/query",
              "definition": "The parameters for the operation/query.",
              "comments": "Query Definitions only have one output parameter, named \"result\". This may not be described, but can be to allow a profile to be defined.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "type or part"
                    }
                  ],
                  "key": "opd-1",
                  "severity": "error",
                  "human": "Either a type must be provided, or parts",
                  "xpath": "exists(f:type) or exists(f:part)"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "OperationDefinition.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.name",
              "short": "Name in Parameters.parameter.name or in URL",
              "definition": "The name of used to identify the parameter.",
              "comments": "This name must be a token (start with a letter in a..z, and only contain letters, numerals, and underscore.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.use",
              "short": "in | out",
              "definition": "Whether this is an input or an output parameter.",
              "comments": "If a parameter name is used for both an input and an output parameter, the parameter should be defined twice.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Whether an operation parameter is an input or an output parameter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-use"
                }
              }
            },
            {
              "path": "OperationDefinition.parameter.min",
              "short": "Minimum Cardinality",
              "definition": "The minimum number of times this parameter SHALL appear in the request or response.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.max",
              "short": "Maximum Cardinality (a number or *)",
              "definition": "The maximum number of times this element is permitted to appear in the request or response.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.documentation",
              "short": "Description of meaning/use",
              "definition": "Describes the meaning or use of this parameter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.type",
              "short": "What type this parameter has",
              "definition": "The type for this parameter.",
              "comments": "if there is no stated parameter, then the parameter is a \"Tuple\" type and must have at least one part defined.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "condition": [
                "opd-1"
              ],
              "binding": {
                "strength": "required",
                "description": "The type of a parameter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-type"
                }
              }
            },
            {
              "path": "OperationDefinition.parameter.profile",
              "short": "Profile on the type",
              "definition": "A profile the specifies the rules that this parameter must conform to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.binding",
              "short": "ValueSet details if this is coded",
              "definition": "Binds to a value set if this parameter is coded (code, Coding, CodeableConcept).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.binding.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.binding.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.binding.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.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.",
              "comments": "For further discussion, see [[[Using Terminologies]]].",
              "alias": [
                "conformance",
                "extensibility"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Indication of the degree of conformance expectations associated with a binding.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/binding-strength"
                }
              }
            },
            {
              "path": "OperationDefinition.parameter.binding.valueSet[x]",
              "short": "Source of value set",
              "definition": "Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.",
              "comments": "For value sets with a referenceResource, the display can contain the value set description.  The reference may be version-specific or not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ValueSet"
                  ]
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.part",
              "short": "Parts of a Tuple Parameter",
              "definition": "The parts of a Tuple Parameter.",
              "comments": "Query Definitions only have one output parameter, named \"result\". This may not be described, but can be to allow a profile to be defined.",
              "min": 0,
              "max": "*",
              "nameReference": "parameter",
              "condition": [
                "opd-1"
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "OperationDefinition",
              "short": "Definition of an operation or a named query",
              "definition": "A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "conformance.behavior"
                }
              ]
            },
            {
              "path": "OperationDefinition.url",
              "short": "Logical URL to reference this operation definition",
              "definition": "An absolute URL that is used to identify this operation definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this operation definition is (or will be) published.",
              "comments": "Can be a urn:uuid: or a urn:oid:.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "OperationDefinition.version",
              "short": "Logical id for this version of the operation definition",
              "definition": "The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.",
              "requirements": "There may be multiple resource versions of the profile that have this same identifier. The resource version id will change for technical reasons, whereas the stated version number needs to be under the author's control.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "OperationDefinition.name",
              "short": "Informal name for this operation",
              "definition": "A free text natural language name identifying the operation.",
              "comments": "Not expected to be globally unique.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OperationDefinition.status",
              "short": "draft | active | retired",
              "definition": "The status of the profile.",
              "requirements": "Allows filtering of profiles that are appropriate for use vs. not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "OperationDefinition.kind",
              "short": "operation | query",
              "definition": "Whether this is an operation or a named query.",
              "comments": "Named queries are invoked differently, and have different capabilities.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Whether an operation is a normal operation or a query.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-kind"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "OperationDefinition.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "requirements": "Allows filtering of profiles that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "OperationDefinition.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the operation definition.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the operation definition.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "OperationDefinition.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OperationDefinition.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the operation definition.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OperationDefinition.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OperationDefinition.date",
              "short": "Date for this version of the operation definition",
              "definition": "The date this version of the operation definition was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the Operation Definition changes.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "OperationDefinition.description",
              "short": "Natural language description of the operation",
              "definition": "A free text natural language description of the profile and its use.",
              "comments": "This field can be used for things such as why the profile was written, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc.  It is *not* a rendering of the profile as conveyed in Profile.text. This item SHOULD be populated unless the information is available from context.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OperationDefinition.requirements",
              "short": "Why is this needed?",
              "definition": "Explains why this operation definition is needed and why it's been constrained as it has.",
              "comments": "This element does not describe the usage of the operation definition (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",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OperationDefinition.idempotent",
              "short": "Whether content is unchanged by operation",
              "definition": "Operations that are idempotent (see [HTTP specification definition of idempotent](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)) may be invoked by performing an HTTP GET operation instead of a POST.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "OperationDefinition.code",
              "short": "Name used to invoke the operation",
              "definition": "The name used to invoke the operation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "OperationDefinition.notes",
              "short": "Additional information about use",
              "definition": "Additional information about how to use this operation or named query.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OperationDefinition.base",
              "short": "Marks this as a profile of the base",
              "definition": "Indicates that this operation definition is a constraining profile on the base.",
              "comments": "A constrained profile can make optional parameters required or not used and clarify documentation.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                  ]
                }
              ]
            },
            {
              "path": "OperationDefinition.system",
              "short": "Invoke at the system level?",
              "definition": "Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "OperationDefinition.type",
              "short": "Invoke at resource level for these type",
              "definition": "Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a resource type for the context).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "OperationDefinition.instance",
              "short": "Invoke on an instance?",
              "definition": "Indicates whether this operation can be invoked on a particular instance of one of the given types.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter",
              "name": "parameter",
              "short": "Parameters for the operation/query",
              "definition": "The parameters for the operation/query.",
              "comments": "Query Definitions only have one output parameter, named \"result\". This may not be described, but can be to allow a profile to be defined.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "type or part"
                    }
                  ],
                  "key": "opd-1",
                  "severity": "error",
                  "human": "Either a type must be provided, or parts",
                  "xpath": "exists(f:type) or exists(f:part)"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.name",
              "short": "Name in Parameters.parameter.name or in URL",
              "definition": "The name of used to identify the parameter.",
              "comments": "This name must be a token (start with a letter in a..z, and only contain letters, numerals, and underscore.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.use",
              "short": "in | out",
              "definition": "Whether this is an input or an output parameter.",
              "comments": "If a parameter name is used for both an input and an output parameter, the parameter should be defined twice.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Whether an operation parameter is an input or an output parameter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-use"
                }
              }
            },
            {
              "path": "OperationDefinition.parameter.min",
              "short": "Minimum Cardinality",
              "definition": "The minimum number of times this parameter SHALL appear in the request or response.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.max",
              "short": "Maximum Cardinality (a number or *)",
              "definition": "The maximum number of times this element is permitted to appear in the request or response.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.documentation",
              "short": "Description of meaning/use",
              "definition": "Describes the meaning or use of this parameter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.type",
              "short": "What type this parameter has",
              "definition": "The type for this parameter.",
              "comments": "if there is no stated parameter, then the parameter is a \"Tuple\" type and must have at least one part defined.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "condition": [
                "opd-1"
              ],
              "binding": {
                "strength": "required",
                "description": "The type of a parameter.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-parameter-type"
                }
              }
            },
            {
              "path": "OperationDefinition.parameter.profile",
              "short": "Profile on the type",
              "definition": "A profile the specifies the rules that this parameter must conform to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                  ]
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.binding",
              "short": "ValueSet details if this is coded",
              "definition": "Binds to a value set if this parameter is coded (code, Coding, CodeableConcept).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.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.",
              "comments": "For further discussion, see [[[Using Terminologies]]].",
              "alias": [
                "conformance",
                "extensibility"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Indication of the degree of conformance expectations associated with a binding.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/binding-strength"
                }
              }
            },
            {
              "path": "OperationDefinition.parameter.binding.valueSet[x]",
              "short": "Source of value set",
              "definition": "Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.",
              "comments": "For value sets with a referenceResource, the display can contain the value set description.  The reference may be version-specific or not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ValueSet"
                  ]
                }
              ]
            },
            {
              "path": "OperationDefinition.parameter.part",
              "short": "Parts of a Tuple Parameter",
              "definition": "The parts of a Tuple Parameter.",
              "comments": "Query Definitions only have one output parameter, named \"result\". This may not be described, but can be to allow a profile to be defined.",
              "min": 0,
              "max": "*",
              "nameReference": "parameter",
              "condition": [
                "opd-1"
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/OperationOutcome",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "OperationOutcome",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/OperationOutcome",
        "name": "OperationOutcome",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for OperationOutcome Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "OperationOutcome",
              "short": "Information about the success/failure of an action",
              "definition": "A collection of error, warning or information messages that result from a system action.",
              "comments": "Can result from the failure of a REST call or be part of the response message returned from a request message.  If sent with extensions overriding particular issues, might even appear as part of a request message.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Grouping is handled through multiple repetitions from whatever context references the outcomes (no specific grouper required)"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.exchange"
                }
              ]
            },
            {
              "path": "OperationOutcome.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OperationOutcome.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OperationOutcome.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "OperationOutcome.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "OperationOutcome.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "OperationOutcome.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OperationOutcome.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OperationOutcome.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue",
              "short": "A single issue associated with the action",
              "definition": "An error, warning or information message that results from a system action.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR"
                },
                {
                  "identity": "rim",
                  "map": "AcknowledgementDetail or Observation[classCode=\"ALRT\" and moodCode=\"EVN\"]"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.severity",
              "short": "fatal | error | warning | information",
              "definition": "Indicates whether the issue indicates a variation from successful processing.",
              "comments": "This is labeled as \"Is Modifier\" because applications should not confuse hints and warnings with errors.",
              "requirements": "Indicates how relevant the issue is to the overall success of the action.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "How the issue affects the success of the action.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/issue-severity"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR-4"
                },
                {
                  "identity": "rim",
                  "map": "./typeCode[parent::AcknowledgmentDetail] or unique(./inboundRelationship[parent::Observation and typeCode='SUBJ' and isNormalActRelationship()]/source[classCode=\"OBS\" and moodCode=\"EVN\" and implies(code, ActCode#SEV and isNormalAct())/value[xsi:type=\"CD\"]"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.code",
              "short": "Error or warning code",
              "definition": "Describes the type of the issue. The system that creates an OperationOutcome SHALL choose the most applicable code from the IssueType value set, and may additional provide its own code for the error in the details element.",
              "requirements": "Expresses the issue in a human and computer-friendly way, allowing the requesting system to behave differently based on the type of issue.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A code that describes the type of issue.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/issue-type"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR-3"
                },
                {
                  "identity": "rim",
                  "map": "./code"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.details",
              "short": "Additional details about the error",
              "definition": "Additional details about the error. This may be a text description of the error, or a system code that identifies the error.",
              "comments": "A human readable description of the error issue SHOULD be placed in details.text.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that provides details as the exact issue.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-outcome"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR-5"
                },
                {
                  "identity": "rim",
                  "map": "./code"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.diagnostics",
              "short": "Additional diagnostic information about the issue",
              "definition": "Additional diagnostic information about the issue.  Typically, this may be a description of how a value is erroneous, or a stack dump to help trace the issue.",
              "comments": "Typically this field is used to provide troubleshooting information about the error.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR-8"
                },
                {
                  "identity": "rim",
                  "map": "./text[parent::AcknowledgmentDetail]"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.location",
              "short": "XPath of element(s) related to issue",
              "definition": "A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.",
              "comments": "The root of the XPath is the resource or bundle that generated OperationOutcome.  Each XPath SHALL resolve to a single node.  The XPath syntax is used whether the referenced instance is expressed in XML or JSON.",
              "requirements": "Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR-2"
                },
                {
                  "identity": "rim",
                  "map": "./location[parent::AcknowledgmentDetail]"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "OperationOutcome",
              "short": "Information about the success/failure of an action",
              "definition": "A collection of error, warning or information messages that result from a system action.",
              "comments": "Can result from the failure of a REST call or be part of the response message returned from a request message.  If sent with extensions overriding particular issues, might even appear as part of a request message.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Grouping is handled through multiple repetitions from whatever context references the outcomes (no specific grouper required)"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.exchange"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue",
              "short": "A single issue associated with the action",
              "definition": "An error, warning or information message that results from a system action.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR"
                },
                {
                  "identity": "rim",
                  "map": "AcknowledgementDetail or Observation[classCode=\"ALRT\" and moodCode=\"EVN\"]"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.severity",
              "short": "fatal | error | warning | information",
              "definition": "Indicates whether the issue indicates a variation from successful processing.",
              "comments": "This is labeled as \"Is Modifier\" because applications should not confuse hints and warnings with errors.",
              "requirements": "Indicates how relevant the issue is to the overall success of the action.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "How the issue affects the success of the action.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/issue-severity"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR-4"
                },
                {
                  "identity": "rim",
                  "map": "./typeCode[parent::AcknowledgmentDetail] or unique(./inboundRelationship[parent::Observation and typeCode='SUBJ' and isNormalActRelationship()]/source[classCode=\"OBS\" and moodCode=\"EVN\" and implies(code, ActCode#SEV and isNormalAct())/value[xsi:type=\"CD\"]"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.code",
              "short": "Error or warning code",
              "definition": "Describes the type of the issue. The system that creates an OperationOutcome SHALL choose the most applicable code from the IssueType value set, and may additional provide its own code for the error in the details element.",
              "requirements": "Expresses the issue in a human and computer-friendly way, allowing the requesting system to behave differently based on the type of issue.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A code that describes the type of issue.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/issue-type"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR-3"
                },
                {
                  "identity": "rim",
                  "map": "./code"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.details",
              "short": "Additional details about the error",
              "definition": "Additional details about the error. This may be a text description of the error, or a system code that identifies the error.",
              "comments": "A human readable description of the error issue SHOULD be placed in details.text.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that provides details as the exact issue.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/operation-outcome"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR-5"
                },
                {
                  "identity": "rim",
                  "map": "./code"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.diagnostics",
              "short": "Additional diagnostic information about the issue",
              "definition": "Additional diagnostic information about the issue.  Typically, this may be a description of how a value is erroneous, or a stack dump to help trace the issue.",
              "comments": "Typically this field is used to provide troubleshooting information about the error.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR-8"
                },
                {
                  "identity": "rim",
                  "map": "./text[parent::AcknowledgmentDetail]"
                }
              ]
            },
            {
              "path": "OperationOutcome.issue.location",
              "short": "XPath of element(s) related to issue",
              "definition": "A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.",
              "comments": "The root of the XPath is the resource or bundle that generated OperationOutcome.  Each XPath SHALL resolve to a single node.  The XPath syntax is used whether the referenced instance is expressed in XML or JSON.",
              "requirements": "Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ERR-2"
                },
                {
                  "identity": "rim",
                  "map": "./location[parent::AcknowledgmentDetail]"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Order",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Order",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Order",
        "name": "Order",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Order Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Order",
              "short": "A request to perform an action",
              "definition": "A request to perform an action.",
              "alias": [
                "Request"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "ControlAct[classCode=ACTN, moodCode=RQO]"
                },
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "Order.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Order.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Order.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Order.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Order.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Order.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Order.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Order.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Order.identifier",
              "short": "Identifiers assigned to this order by the orderer or by the receiver",
              "definition": "Identifiers assigned to this order by the orderer or by the receiver.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Order.date",
              "short": "When the order was made",
              "definition": "When the order was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-9"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Order.subject",
              "short": "Patient this order is about",
              "definition": "Patient this order is about.",
              "comments": "May be left blank if the request reference identifies the patient, or if the request is not associated with a patient.",
              "alias": [
                "Patient"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Order.source",
              "short": "Who initiated the order",
              "definition": "Who initiated the order.",
              "alias": [
                "Author",
                "Practitioner"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-12 / OBR-16 / RXO-14 / RXE-13 / PRT-5 (PRT-4-Participation='OP')"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.cause"
                }
              ]
            },
            {
              "path": "Order.target",
              "short": "Who is intended to fulfill the order",
              "definition": "Who is intended to fulfill the order.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Unclear: MSH-5 / IPC-7 / BPO-8 / RXO-32 / RXE-40 / RXD-30 / RXG-11 / RXG-27 / PRT-8 (PRT-4-participation in { 'AP', 'DP', 'PO', 'RT' })"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].role"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Order.reason[x]",
              "short": "Text - why the order was made",
              "definition": "Text - why the order was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Indicates the reason for seeking fulfillment of the order."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-16.2 / OBR-31.2 / BPO-13.2-BP / RXO-20.2 / RXE-27.2 / RXD-21.2 / RXG-22.2 / RXA-19.2"
                },
                {
                  "identity": "rim",
                  "map": ".reasonCode or .outboundRelationship[typeCode=RSON].target"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "Order.when",
              "short": "When order should be fulfilled",
              "definition": "When order should be fulfilled.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "code.empty() or schedule.empty()"
                    }
                  ],
                  "key": "ord-1",
                  "severity": "error",
                  "human": "Provide a code or a schedule, but not both",
                  "xpath": "exists(f:code) != exists(f:schedule)"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "TQ1, TQ2"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "Order.when.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Order.when.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Order.when.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Order.when.code",
              "short": "Code specifies when request should be done. The code may simply be a priority code",
              "definition": "Code specifies when request should be done. The code may simply be a priority code.",
              "comments": "This is usually a local code agreed in the context of the ordering workflow.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "ord-1"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "When a requested action should be performed  (e.g. STAT, daily, evenings, etc.)."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "GTS is a coded value"
                }
              ]
            },
            {
              "path": "Order.when.schedule",
              "short": "A formal schedule",
              "definition": "A formal schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "condition": [
                "ord-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "GTS is a complex schedule"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "Order.detail",
              "short": "What action is being ordered",
              "definition": "What action is being ordered.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SUBJ].target"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Order",
              "short": "A request to perform an action",
              "definition": "A request to perform an action.",
              "alias": [
                "Request"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "ControlAct[classCode=ACTN, moodCode=RQO]"
                },
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "Order.identifier",
              "short": "Identifiers assigned to this order by the orderer or by the receiver",
              "definition": "Identifiers assigned to this order by the orderer or by the receiver.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Order.date",
              "short": "When the order was made",
              "definition": "When the order was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-9"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Order.subject",
              "short": "Patient this order is about",
              "definition": "Patient this order is about.",
              "comments": "May be left blank if the request reference identifies the patient, or if the request is not associated with a patient.",
              "alias": [
                "Patient"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Order.source",
              "short": "Who initiated the order",
              "definition": "Who initiated the order.",
              "alias": [
                "Author",
                "Practitioner"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-12 / OBR-16 / RXO-14 / RXE-13 / PRT-5 (PRT-4-Participation='OP')"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.cause"
                }
              ]
            },
            {
              "path": "Order.target",
              "short": "Who is intended to fulfill the order",
              "definition": "Who is intended to fulfill the order.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Unclear: MSH-5 / IPC-7 / BPO-8 / RXO-32 / RXE-40 / RXD-30 / RXG-11 / RXG-27 / PRT-8 (PRT-4-participation in { 'AP', 'DP', 'PO', 'RT' })"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].role"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Order.reason[x]",
              "short": "Text - why the order was made",
              "definition": "Text - why the order was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Indicates the reason for seeking fulfillment of the order."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-16.2 / OBR-31.2 / BPO-13.2-BP / RXO-20.2 / RXE-27.2 / RXD-21.2 / RXG-22.2 / RXA-19.2"
                },
                {
                  "identity": "rim",
                  "map": ".reasonCode or .outboundRelationship[typeCode=RSON].target"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "Order.when",
              "short": "When order should be fulfilled",
              "definition": "When order should be fulfilled.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "code.empty() or schedule.empty()"
                    }
                  ],
                  "key": "ord-1",
                  "severity": "error",
                  "human": "Provide a code or a schedule, but not both",
                  "xpath": "exists(f:code) != exists(f:schedule)"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "TQ1, TQ2"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                }
              ]
            },
            {
              "path": "Order.when.code",
              "short": "Code specifies when request should be done. The code may simply be a priority code",
              "definition": "Code specifies when request should be done. The code may simply be a priority code.",
              "comments": "This is usually a local code agreed in the context of the ordering workflow.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "ord-1"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "When a requested action should be performed  (e.g. STAT, daily, evenings, etc.)."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "GTS is a coded value"
                }
              ]
            },
            {
              "path": "Order.when.schedule",
              "short": "A formal schedule",
              "definition": "A formal schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "condition": [
                "ord-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "GTS is a complex schedule"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "Order.detail",
              "short": "What action is being ordered",
              "definition": "What action is being ordered.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SUBJ].target"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/OrderResponse",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "OrderResponse",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/OrderResponse",
        "name": "OrderResponse",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for OrderResponse Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "OrderResponse",
              "short": "A response to an order",
              "definition": "A response to an order.",
              "comments": "There might be more than one response to an order.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "ControlAct[classCode=ACTN, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "OrderResponse.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OrderResponse.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OrderResponse.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "OrderResponse.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "OrderResponse.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "OrderResponse.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OrderResponse.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OrderResponse.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OrderResponse.identifier",
              "short": "Identifiers assigned to this order by the orderer or by the receiver",
              "definition": "Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "OrderResponse.request",
              "short": "The order that this is a response to",
              "definition": "A reference to the order that this is in response to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Order"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-2 / ORC-3, or OBR-2 | OBR-3"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationships[typeCode=FLFS].target"
                }
              ]
            },
            {
              "path": "OrderResponse.date",
              "short": "When the response was made",
              "definition": "The date and time at which this order response was made (created/posted).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-9"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "OrderResponse.who",
              "short": "Who made the response",
              "definition": "The person, organization, or device credited with making the response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Practitioner: ORC-19 | PRT / Organization: PRT"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "OrderResponse.orderStatus",
              "short": "pending | review | rejected | error | accepted | cancelled | replaced | aborted | completed",
              "definition": "What this response says about the status of the original order.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the response to an order.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/order-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-1 + ORC-5"
                },
                {
                  "identity": "rim",
                  "map": ".code (different trigger events for different outcomes)"
                }
              ]
            },
            {
              "path": "OrderResponse.description",
              "short": "Additional description of the response",
              "definition": "Additional description about the response - e.g. a text description provided by a human user when making decisions about the order.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-16.2.text"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "OrderResponse.fulfillment",
              "short": "Details of the outcome of performing the order",
              "definition": "Links to resources that provide details of the outcome of performing the order; e.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR+OBX[n] / RXE / RXD / RXG / RXA / BPX / BTX"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SUBJ]/target[moodCode=RQO]"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "OrderResponse",
              "short": "A response to an order",
              "definition": "A response to an order.",
              "comments": "There might be more than one response to an order.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "ControlAct[classCode=ACTN, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "OrderResponse.identifier",
              "short": "Identifiers assigned to this order by the orderer or by the receiver",
              "definition": "Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "OrderResponse.request",
              "short": "The order that this is a response to",
              "definition": "A reference to the order that this is in response to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Order"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-2 / ORC-3, or OBR-2 | OBR-3"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationships[typeCode=FLFS].target"
                }
              ]
            },
            {
              "path": "OrderResponse.date",
              "short": "When the response was made",
              "definition": "The date and time at which this order response was made (created/posted).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-9"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "OrderResponse.who",
              "short": "Who made the response",
              "definition": "The person, organization, or device credited with making the response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Practitioner: ORC-19 | PRT / Organization: PRT"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "OrderResponse.orderStatus",
              "short": "pending | review | rejected | error | accepted | cancelled | replaced | aborted | completed",
              "definition": "What this response says about the status of the original order.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the response to an order.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/order-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-1 + ORC-5"
                },
                {
                  "identity": "rim",
                  "map": ".code (different trigger events for different outcomes)"
                }
              ]
            },
            {
              "path": "OrderResponse.description",
              "short": "Additional description of the response",
              "definition": "Additional description about the response - e.g. a text description provided by a human user when making decisions about the order.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-16.2.text"
                },
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "OrderResponse.fulfillment",
              "short": "Details of the outcome of performing the order",
              "definition": "Links to resources that provide details of the outcome of performing the order; e.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR+OBX[n] / RXE / RXD / RXG / RXA / BPX / BTX"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SUBJ]/target[moodCode=RQO]"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/OrderSet",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "OrderSet",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/OrderSet",
        "name": "OrderSet",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Decision Support)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for OrderSet Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "OrderSet",
              "short": "The definition of an order set",
              "definition": "This resource allows for the definition of an order set as a sharable, consumable, and executable artifact in support of clinical decision support.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "OrderSet.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OrderSet.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OrderSet.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "OrderSet.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "OrderSet.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "OrderSet.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OrderSet.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OrderSet.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OrderSet.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "OrderSet.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OrderSet.moduleMetadata",
              "short": "The metadata for the orderset",
              "definition": "A reference to a ModuleMetadata resource containing metadata for the orderset.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleMetadata"
                  ]
                }
              ]
            },
            {
              "path": "OrderSet.library",
              "short": "Logic used by the orderset",
              "definition": "A reference to a Library resource containing any formal logic used by the orderset.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Library"
                  ]
                }
              ]
            },
            {
              "path": "OrderSet.item",
              "name": "item",
              "definition": "The definition of the items that make up the orderset.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "OrderSet.item.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "OrderSet.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "OrderSet.item.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OrderSet.item.identifier",
              "definition": "A unique identifier for the item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ]
            },
            {
              "path": "OrderSet.item.number",
              "definition": "A user-visible number for the item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OrderSet.item.title",
              "definition": "The title of the item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OrderSet.item.description",
              "definition": "A short description of the item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OrderSet.item.textEquivalent",
              "definition": "A text equivalent of the item in the orderset.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OrderSet.item.supportingEvidence",
              "definition": "Supporting evidence for the item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            },
            {
              "path": "OrderSet.item.documentation",
              "definition": "Supporting documentation for the  item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            },
            {
              "path": "OrderSet.item.participantType",
              "short": "patient | person | practitioner | related-person",
              "definition": "The type of participant in the item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of participant for an action in the orderset",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/order-set-participant"
                }
              }
            },
            {
              "path": "OrderSet.item.concept",
              "definition": "Concepts associated with the item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "OrderSet.item.type",
              "short": "create | update | remove | fire-event",
              "definition": "The type of item (create, update, remove).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The type of orderset item",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/order-set-item-type"
                }
              }
            },
            {
              "path": "OrderSet.item.groupingBehavior",
              "short": "visual-group | logical-group | sentence-group",
              "definition": "Defines organization behavior of a group: gives the reason why the items are grouped together.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Defines organization behavior of a group",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/grouping-behavior"
                }
              }
            },
            {
              "path": "OrderSet.item.selectionBehavior",
              "short": "any | all | all-or-none | exactly-one | at-most-one | one-or-more",
              "definition": "Defines selection behavior of a group: specifies the number of selectable items in the group that may be selected by the end user when the items of the group are displayed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Defines selection behavior of a group",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/selection-behavior"
                }
              }
            },
            {
              "path": "OrderSet.item.requiredBehavior",
              "short": "must | could | must-unless-documented",
              "definition": "Defines requiredness behavior for selecting an action or an action group; i.e., whether the action or action group is required or optional.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Defines requiredness behavior for selecting an action or an action group",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/required-behavior"
                }
              }
            },
            {
              "path": "OrderSet.item.precheckBehavior",
              "short": "yes | no",
              "definition": "Defines selection frequency behavior for an action or group; i.e., for most frequently selected items, the end-user system may provide convenience options in the UI (such as pre-selection) in order to (1) communicate to the end user what the most frequently selected item is, or should, be in a particular context, and (2) save the end user time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Defines selection frequency behavior for an action or group",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/precheck-behavior"
                }
              }
            },
            {
              "path": "OrderSet.item.cardinalityBehavior",
              "short": "single | multiple",
              "definition": "Defines behavior for an action or a group for how many times that item may be repeated, i.e., cardinality. For example, if a user is documenting lesions, the lesion element may be repeated several times, once for each occurrence of a lesion on the patient or tissue sample or image.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Defines behavior for an action or a group for how many times that item may be repeated",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/cardinality-behavior"
                }
              }
            },
            {
              "path": "OrderSet.item.resource",
              "definition": "The resource that is the target of the item (e.g. CommunicationRequest).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "OrderSet.item.customization",
              "definition": "Customizations that should be applied to the statically defined resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "OrderSet.item.customization.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "OrderSet.item.customization.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "OrderSet.item.customization.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "OrderSet.item.customization.path",
              "definition": "The path to the element to be customized.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OrderSet.item.customization.expression",
              "definition": "An expression specifying the value of the customized element.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OrderSet.item.items",
              "definition": "Sub items for the orderable.",
              "min": 0,
              "max": "*",
              "nameReference": "item"
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "OrderSet",
              "short": "The definition of an order set",
              "definition": "This resource allows for the definition of an order set as a sharable, consumable, and executable artifact in support of clinical decision support.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "OrderSet.identifier",
              "short": "Logical identifier",
              "definition": "A logical identifier for the module such as the CMS or NQF identifiers for a measure artifact.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "OrderSet.version",
              "short": "The version of the module, if any",
              "definition": "The version of the module, if any. 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 modules, refer to the Decision Support Service specification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "OrderSet.moduleMetadata",
              "short": "The metadata for the orderset",
              "definition": "A reference to a ModuleMetadata resource containing metadata for the orderset.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ModuleMetadata"
                  ]
                }
              ]
            },
            {
              "path": "OrderSet.library",
              "short": "Logic used by the orderset",
              "definition": "A reference to a Library resource containing any formal logic used by the orderset.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Library"
                  ]
                }
              ]
            },
            {
              "path": "OrderSet.item",
              "name": "item",
              "definition": "The definition of the items that make up the orderset.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "OrderSet.item.identifier",
              "definition": "A unique identifier for the item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ]
            },
            {
              "path": "OrderSet.item.number",
              "definition": "A user-visible number for the item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OrderSet.item.title",
              "definition": "The title of the item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OrderSet.item.description",
              "definition": "A short description of the item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OrderSet.item.textEquivalent",
              "definition": "A text equivalent of the item in the orderset.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OrderSet.item.supportingEvidence",
              "definition": "Supporting evidence for the item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            },
            {
              "path": "OrderSet.item.documentation",
              "definition": "Supporting documentation for the  item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ]
            },
            {
              "path": "OrderSet.item.participantType",
              "short": "patient | person | practitioner | related-person",
              "definition": "The type of participant in the item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of participant for an action in the orderset",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/order-set-participant"
                }
              }
            },
            {
              "path": "OrderSet.item.concept",
              "definition": "Concepts associated with the item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ]
            },
            {
              "path": "OrderSet.item.type",
              "short": "create | update | remove | fire-event",
              "definition": "The type of item (create, update, remove).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The type of orderset item",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/order-set-item-type"
                }
              }
            },
            {
              "path": "OrderSet.item.groupingBehavior",
              "short": "visual-group | logical-group | sentence-group",
              "definition": "Defines organization behavior of a group: gives the reason why the items are grouped together.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Defines organization behavior of a group",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/grouping-behavior"
                }
              }
            },
            {
              "path": "OrderSet.item.selectionBehavior",
              "short": "any | all | all-or-none | exactly-one | at-most-one | one-or-more",
              "definition": "Defines selection behavior of a group: specifies the number of selectable items in the group that may be selected by the end user when the items of the group are displayed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Defines selection behavior of a group",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/selection-behavior"
                }
              }
            },
            {
              "path": "OrderSet.item.requiredBehavior",
              "short": "must | could | must-unless-documented",
              "definition": "Defines requiredness behavior for selecting an action or an action group; i.e., whether the action or action group is required or optional.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Defines requiredness behavior for selecting an action or an action group",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/required-behavior"
                }
              }
            },
            {
              "path": "OrderSet.item.precheckBehavior",
              "short": "yes | no",
              "definition": "Defines selection frequency behavior for an action or group; i.e., for most frequently selected items, the end-user system may provide convenience options in the UI (such as pre-selection) in order to (1) communicate to the end user what the most frequently selected item is, or should, be in a particular context, and (2) save the end user time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Defines selection frequency behavior for an action or group",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/precheck-behavior"
                }
              }
            },
            {
              "path": "OrderSet.item.cardinalityBehavior",
              "short": "single | multiple",
              "definition": "Defines behavior for an action or a group for how many times that item may be repeated, i.e., cardinality. For example, if a user is documenting lesions, the lesion element may be repeated several times, once for each occurrence of a lesion on the patient or tissue sample or image.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Defines behavior for an action or a group for how many times that item may be repeated",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/cardinality-behavior"
                }
              }
            },
            {
              "path": "OrderSet.item.resource",
              "definition": "The resource that is the target of the item (e.g. CommunicationRequest).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "OrderSet.item.customization",
              "definition": "Customizations that should be applied to the statically defined resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "OrderSet.item.customization.path",
              "definition": "The path to the element to be customized.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OrderSet.item.customization.expression",
              "definition": "An expression specifying the value of the customized element.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "OrderSet.item.items",
              "definition": "Sub items for the orderable.",
              "min": 0,
              "max": "*",
              "nameReference": "item"
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Organization",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Organization",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Organization",
        "name": "Organization",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Organization Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "servd",
            "uri": "http://www.omg.org/spec/ServD/1.0/",
            "name": "ServD"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Organization",
              "short": "A grouping of people or organizations with a common purpose",
              "definition": "A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action.  Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "identifier or name"
                    }
                  ],
                  "key": "org-1",
                  "severity": "error",
                  "human": "The organization SHALL at least have a name or an id, and possibly more than one",
                  "xpath": "count(f:identifier | f:name) > 0"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "(also see master files messages)"
                },
                {
                  "identity": "rim",
                  "map": "Organization(classCode=ORG, determinerCode=INST)"
                },
                {
                  "identity": "servd",
                  "map": "Organization"
                },
                {
                  "identity": "w5",
                  "map": "administrative.group"
                }
              ]
            },
            {
              "path": "Organization.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Organization.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Organization.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Organization.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Organization.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Organization.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Organization.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Organization.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Organization.identifier",
              "short": "Identifies this organization  across multiple systems",
              "definition": "Identifier for the organization that is used to identify the organization across multiple disparate systems.",
              "requirements": "Organizations are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the organization.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "condition": [
                "org-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "XON.10 / XON.3"
                },
                {
                  "identity": "rim",
                  "map": ".scopes[Role](classCode=IDENT)"
                },
                {
                  "identity": "servd",
                  "map": "./Identifiers"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Organization.active",
              "short": "Whether the organization's record is still in active use",
              "definition": "Whether the organization's record is still in active use.",
              "comments": "Default is true.",
              "requirements": "Need a flag to indicate a record is no longer to be used and should generally be hidden for the user in the UI.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": true,
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "No equivalent in HL7 v2"
                },
                {
                  "identity": "rim",
                  "map": ".status"
                },
                {
                  "identity": "servd",
                  "map": "./Status (however this concept in ServD more covers why the organization is active or not, could be delisted, deregistered, not operational yet) this could alternatively be derived from ./StartDate and ./EndDate and given a context date."
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Organization.type",
              "short": "Kind of organization",
              "definition": "The kind of organization that this is.",
              "comments": "Organizations can be corporations, wards, sections, clinical teams, government departments, etc. Note that code is generally a classifier of the type of organization; in many applications, codes are used to identity a particular organization (say, ward) as opposed to another of the same type - these are identifiers, not codes.",
              "requirements": "Need to be able to track the kind of organization that this is - different organization types have different uses.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Used to categorize the organization",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/organization-type"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "No equivalent in v2"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "servd",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Organization.name",
              "short": "Name used for the organization",
              "definition": "A name associated with the organization.",
              "requirements": "Need to use the name as the label of the organization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "org-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "XON.1"
                },
                {
                  "identity": "rim",
                  "map": ".name"
                },
                {
                  "identity": "servd",
                  "map": ".PreferredName/Name"
                }
              ]
            },
            {
              "path": "Organization.telecom",
              "short": "A contact detail for the organization",
              "definition": "A contact detail for the organization.",
              "comments": "The use code home is not to be used. Note that these contacts are not the contact details of people who are employed by or represent the organization, but official contacts for the organization itself.",
              "requirements": "Human contact for the organization.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "condition": [
                "org-3"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "telecom.where(use = 'home').empty()"
                    }
                  ],
                  "key": "org-3",
                  "severity": "error",
                  "human": "The telecom of an organization can never be of use 'home'",
                  "xpath": "count(f:use[@value='home']) = 0"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-22?"
                },
                {
                  "identity": "rim",
                  "map": ".telecom"
                },
                {
                  "identity": "servd",
                  "map": "./ContactPoints"
                }
              ]
            },
            {
              "path": "Organization.address",
              "short": "An address for the organization",
              "definition": "An address for the organization.",
              "comments": "Organization may have multiple addresses with different uses or applicable periods. The use code home is not to be used.",
              "requirements": "May need to keep track of the organization's addresses for contacting, billing or reporting requirements.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "condition": [
                "org-2"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "address.where(use = 'home').empty()"
                    }
                  ],
                  "key": "org-2",
                  "severity": "error",
                  "human": "An address of an organization can never be of use 'home'",
                  "xpath": "count(f:use[@value='home']) = 0"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-23?"
                },
                {
                  "identity": "rim",
                  "map": ".address"
                },
                {
                  "identity": "servd",
                  "map": "./PrimaryAddress and ./OtherAddresses"
                }
              ]
            },
            {
              "path": "Organization.partOf",
              "short": "The organization of which this organization forms a part",
              "definition": "The organization of which this organization forms a part.",
              "requirements": "Need to be able to track the hierarchy of organizations within an organization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "No equivalent in HL7 v2"
                },
                {
                  "identity": "rim",
                  "map": ".playedBy[classCode=Part].scoper"
                },
                {
                  "identity": "servd",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Organization.contact",
              "short": "Contact for the organization for a certain purpose",
              "definition": "Contact for the organization for a certain purpose.",
              "comments": "Where multiple contacts for the same purpose are provided there is a standard extension that can be used to determine which one is the preferred contact to use.",
              "requirements": "Need to keep track of assigned contact points within bigger organization.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".contactParty"
                }
              ]
            },
            {
              "path": "Organization.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Organization.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Organization.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Organization.contact.purpose",
              "short": "The type of contact",
              "definition": "Indicates a purpose for which the contact can be reached.",
              "requirements": "Need to distinguish between multiple contact persons.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The purpose for which you would contact a contact party",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contactentity-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./type"
                }
              ]
            },
            {
              "path": "Organization.contact.name",
              "short": "A name associated with the contact",
              "definition": "A name associated with the contact.",
              "requirements": "Need to be able to track the person by name.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "HumanName"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-5, PID-9"
                },
                {
                  "identity": "rim",
                  "map": "./name"
                }
              ]
            },
            {
              "path": "Organization.contact.telecom",
              "short": "Contact details (telephone, email, etc.)  for a contact",
              "definition": "A contact detail (e.g. a telephone number or an email address) by which the party may be contacted.",
              "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-13, PID-14"
                },
                {
                  "identity": "rim",
                  "map": "./telecom"
                }
              ]
            },
            {
              "path": "Organization.contact.address",
              "short": "Visiting or postal addresses for the contact",
              "definition": "Visiting or postal addresses for the contact.",
              "requirements": "May need to keep track of a contact party's address for contacting, billing or reporting requirements.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-11"
                },
                {
                  "identity": "rim",
                  "map": "./addr"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Organization",
              "short": "A grouping of people or organizations with a common purpose",
              "definition": "A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action.  Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "identifier or name"
                    }
                  ],
                  "key": "org-1",
                  "severity": "error",
                  "human": "The organization SHALL at least have a name or an id, and possibly more than one",
                  "xpath": "count(f:identifier | f:name) > 0"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "(also see master files messages)"
                },
                {
                  "identity": "rim",
                  "map": "Organization(classCode=ORG, determinerCode=INST)"
                },
                {
                  "identity": "servd",
                  "map": "Organization"
                },
                {
                  "identity": "w5",
                  "map": "administrative.group"
                }
              ]
            },
            {
              "path": "Organization.identifier",
              "short": "Identifies this organization  across multiple systems",
              "definition": "Identifier for the organization that is used to identify the organization across multiple disparate systems.",
              "requirements": "Organizations are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the organization.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "condition": [
                "org-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "XON.10 / XON.3"
                },
                {
                  "identity": "rim",
                  "map": ".scopes[Role](classCode=IDENT)"
                },
                {
                  "identity": "servd",
                  "map": "./Identifiers"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Organization.active",
              "short": "Whether the organization's record is still in active use",
              "definition": "Whether the organization's record is still in active use.",
              "comments": "Default is true.",
              "requirements": "Need a flag to indicate a record is no longer to be used and should generally be hidden for the user in the UI.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": true,
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "No equivalent in HL7 v2"
                },
                {
                  "identity": "rim",
                  "map": ".status"
                },
                {
                  "identity": "servd",
                  "map": "./Status (however this concept in ServD more covers why the organization is active or not, could be delisted, deregistered, not operational yet) this could alternatively be derived from ./StartDate and ./EndDate and given a context date."
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Organization.type",
              "short": "Kind of organization",
              "definition": "The kind of organization that this is.",
              "comments": "Organizations can be corporations, wards, sections, clinical teams, government departments, etc. Note that code is generally a classifier of the type of organization; in many applications, codes are used to identity a particular organization (say, ward) as opposed to another of the same type - these are identifiers, not codes.",
              "requirements": "Need to be able to track the kind of organization that this is - different organization types have different uses.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Used to categorize the organization",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/organization-type"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "No equivalent in v2"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "servd",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Organization.name",
              "short": "Name used for the organization",
              "definition": "A name associated with the organization.",
              "requirements": "Need to use the name as the label of the organization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "org-1"
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "XON.1"
                },
                {
                  "identity": "rim",
                  "map": ".name"
                },
                {
                  "identity": "servd",
                  "map": ".PreferredName/Name"
                }
              ]
            },
            {
              "path": "Organization.telecom",
              "short": "A contact detail for the organization",
              "definition": "A contact detail for the organization.",
              "comments": "The use code home is not to be used. Note that these contacts are not the contact details of people who are employed by or represent the organization, but official contacts for the organization itself.",
              "requirements": "Human contact for the organization.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "condition": [
                "org-3"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "telecom.where(use = 'home').empty()"
                    }
                  ],
                  "key": "org-3",
                  "severity": "error",
                  "human": "The telecom of an organization can never be of use 'home'",
                  "xpath": "count(f:use[@value='home']) = 0"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-22?"
                },
                {
                  "identity": "rim",
                  "map": ".telecom"
                },
                {
                  "identity": "servd",
                  "map": "./ContactPoints"
                }
              ]
            },
            {
              "path": "Organization.address",
              "short": "An address for the organization",
              "definition": "An address for the organization.",
              "comments": "Organization may have multiple addresses with different uses or applicable periods. The use code home is not to be used.",
              "requirements": "May need to keep track of the organization's addresses for contacting, billing or reporting requirements.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "condition": [
                "org-2"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "address.where(use = 'home').empty()"
                    }
                  ],
                  "key": "org-2",
                  "severity": "error",
                  "human": "An address of an organization can never be of use 'home'",
                  "xpath": "count(f:use[@value='home']) = 0"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-23?"
                },
                {
                  "identity": "rim",
                  "map": ".address"
                },
                {
                  "identity": "servd",
                  "map": "./PrimaryAddress and ./OtherAddresses"
                }
              ]
            },
            {
              "path": "Organization.partOf",
              "short": "The organization of which this organization forms a part",
              "definition": "The organization of which this organization forms a part.",
              "requirements": "Need to be able to track the hierarchy of organizations within an organization.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "No equivalent in HL7 v2"
                },
                {
                  "identity": "rim",
                  "map": ".playedBy[classCode=Part].scoper"
                },
                {
                  "identity": "servd",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Organization.contact",
              "short": "Contact for the organization for a certain purpose",
              "definition": "Contact for the organization for a certain purpose.",
              "comments": "Where multiple contacts for the same purpose are provided there is a standard extension that can be used to determine which one is the preferred contact to use.",
              "requirements": "Need to keep track of assigned contact points within bigger organization.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".contactParty"
                }
              ]
            },
            {
              "path": "Organization.contact.purpose",
              "short": "The type of contact",
              "definition": "Indicates a purpose for which the contact can be reached.",
              "requirements": "Need to distinguish between multiple contact persons.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The purpose for which you would contact a contact party",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/contactentity-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./type"
                }
              ]
            },
            {
              "path": "Organization.contact.name",
              "short": "A name associated with the contact",
              "definition": "A name associated with the contact.",
              "requirements": "Need to be able to track the person by name.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "HumanName"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-5, PID-9"
                },
                {
                  "identity": "rim",
                  "map": "./name"
                }
              ]
            },
            {
              "path": "Organization.contact.telecom",
              "short": "Contact details (telephone, email, etc.)  for a contact",
              "definition": "A contact detail (e.g. a telephone number or an email address) by which the party may be contacted.",
              "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-13, PID-14"
                },
                {
                  "identity": "rim",
                  "map": "./telecom"
                }
              ]
            },
            {
              "path": "Organization.contact.address",
              "short": "Visiting or postal addresses for the contact",
              "definition": "Visiting or postal addresses for the contact.",
              "requirements": "May need to keep track of a contact party's address for contacting, billing or reporting requirements.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-11"
                },
                {
                  "identity": "rim",
                  "map": "./addr"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/Patient-everything",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "Patient-everything",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/Patient-everything",
        "name": "Fetch Patient Record",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "This operation is used to return all the information related to the patient described in the resource on which this operation is invoked. The response is a bundle of type \"searchset\". At a minimum, the patient resource itself is returned, along with any other resources that the server has that are related to the patient, and that are available for the given user. The server also returns whatever resources are needed to support the records - e.g. linked practitioners, medications, locations, organizations etc. The principle intended use for this operation is to provide a patient with access to their entire record (e.g. \"Blue Button\").  The server SHOULD return at least all resources that it has that are in the patient compartment for the identified patient, and any resource referenced from those, including binaries and attachments. In the US Realm, at a mimimum, the resources returned SHALL include all the data covered by the meaningful use common data elements as defined in [DAF](daf/daf.html). Other applicable implementation guides may make additional rules about how much information that is returned",
        "code": "everything",
        "notes": "The key differences between this operation and simply searching the patient compartment are:  \n\n* unless the client requests otherwise, the server returns the entire result set in a single bundle (rather than using paging) \n* the server is responsible for determining what resources to return as included resources (rather than the client specifying which ones). This frees the client from needing to determine what it could or should ask for\n\nIt is assumed that the server has identified and secured the context appropriately, and can either associate the authorization context with a single patient, or determine whether the context has the rights to the nominated patient, if there is one. If there is no nominated patient (e.g. the operation is invoked at the system level) and the context is not associated with a single patient record, then the server should return an error. Specifying the relationship between the context, a user and patient records is outside the scope of this specification.",
        "system": false,
        "type": [
          "Patient"
        ],
        "instance": true,
        "parameter": [
          {
            "name": "start",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The date range relates to care dates, not record currency dates - e.g. all records relating to care provided in a certain date range. If no start date is provided, all records prior to the end date are in scope.",
            "type": "date"
          },
          {
            "name": "end",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The date range relates to care dates, not record currency dates - e.g. all records relating to care provided in a certain date range. If no end date is provided, all records subsequent to the start date are in scope.",
            "type": "date"
          },
          {
            "name": "return",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "The bundle type is \"searchset\"",
            "type": "Bundle"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Patient",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Patient",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 3
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Patient",
        "name": "Patient",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Patient Resource",
        "requirements": "Tracking patient is the center of the healthcare process.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "cda",
            "uri": "http://hl7.org/v3/cda",
            "name": "CDA (R2)"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "loinc",
            "uri": "http://loinc.org",
            "name": "LOINC"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Patient",
              "short": "Information about an individual or animal receiving health care services",
              "definition": "Demographics and other administrative information about an individual or animal receiving care or other health-related services.",
              "alias": [
                "SubjectOfCare Client Resident"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument.recordTarget.patientRole"
                },
                {
                  "identity": "rim",
                  "map": "Patient[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "administrative.individual"
                }
              ]
            },
            {
              "path": "Patient.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Patient.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Patient.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Patient.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Patient.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Patient.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Patient.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Patient.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Patient.identifier",
              "short": "An identifier for this patient",
              "definition": "An identifier for this patient.",
              "requirements": "Patients are almost always assigned specific numerical identifiers.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".id"
                },
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Patient.active",
              "short": "Whether this patient's record is in active use",
              "definition": "Whether this patient record is in active use.",
              "comments": "Default is true. If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.",
              "requirements": "Need to be able to mark a patient record as not to be used because it was created in error.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": true,
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Patient.name",
              "short": "A name associated with the patient",
              "definition": "A name associated with the individual.",
              "comments": "A patient may have multiple names with different uses or applicable periods. For animals, the name is a \"HumanName\" in the sense that is assigned and used by humans and has the same patterns.",
              "requirements": "Need to be able to track the patient by multiple names. Examples are your official name and a partner name.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "HumanName"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".patient.name"
                },
                {
                  "identity": "v2",
                  "map": "PID-5, PID-9"
                },
                {
                  "identity": "rim",
                  "map": "name"
                }
              ]
            },
            {
              "path": "Patient.telecom",
              "short": "A contact detail for the individual",
              "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.",
              "comments": "A Patient may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently and also to help with identification. The address may not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).",
              "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".telecom"
                },
                {
                  "identity": "v2",
                  "map": "PID-13, PID-14, PID-40"
                },
                {
                  "identity": "rim",
                  "map": "telecom"
                }
              ]
            },
            {
              "path": "Patient.gender",
              "short": "male | female | other | unknown",
              "definition": "Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.",
              "comments": "The gender may not match the biological sex as determined by genetics, or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than M and F, though the vast majority of systems and contexts only support M and F.  Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific gender aspect of interest (anatomical, chromosonal, social, etc.)  However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice.  Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosonal and other gender aspects.  For example, an alert about a hysterectomy on a male should be handled as a warning or overrideable error, not a \"hard\" error.",
              "requirements": "Needed for identification of the individual, in combination with (at least) name and birth date. Gender of individual drives many clinical processes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The gender of a person used for administrative purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/administrative-gender"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".patient.administrativeGenderCode"
                },
                {
                  "identity": "v2",
                  "map": "PID-8"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"
                }
              ]
            },
            {
              "path": "Patient.birthDate",
              "short": "The date of birth for the individual",
              "definition": "The date of birth for the individual.",
              "comments": "At least an estimated year should be provided as a guess if the real DOB is unknown  There is a standard extension \"patient-birthTime\" available that should be used where Time is required (such as in maternaty/infant care systems).",
              "requirements": "Age of the individual drives many clinical processes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "loinc",
                  "map": "21112-8"
                },
                {
                  "identity": "cda",
                  "map": ".patient.birthTime"
                },
                {
                  "identity": "v2",
                  "map": "PID-7"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime"
                }
              ]
            },
            {
              "path": "Patient.deceased[x]",
              "short": "Indicates if the individual is deceased or not",
              "definition": "Indicates if the individual is deceased or not.",
              "comments": "If there's no value in the instance it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive.",
              "requirements": "The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "dateTime"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "PID-30  (bool) and PID-29 (datetime)"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime"
                }
              ]
            },
            {
              "path": "Patient.address",
              "short": "Addresses for the individual",
              "definition": "Addresses for the individual.",
              "comments": "Patient may have multiple addresses with different uses or applicable periods.",
              "requirements": "May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".addr"
                },
                {
                  "identity": "v2",
                  "map": "PID-11"
                },
                {
                  "identity": "rim",
                  "map": "addr"
                }
              ]
            },
            {
              "path": "Patient.maritalStatus",
              "short": "Marital (civil) status of a patient",
              "definition": "This field contains a patient's most recent marital (civil) status.",
              "requirements": "Most, if not all systems capture it.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The domestic partnership status of a person.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/marital-status"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".patient.maritalStatusCode"
                },
                {
                  "identity": "v2",
                  "map": "PID-16"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN]/maritalStatusCode"
                }
              ]
            },
            {
              "path": "Patient.multipleBirth[x]",
              "short": "Whether patient is part of a multiple birth",
              "definition": "Indicates whether the patient is part of a multiple or indicates the actual birth order.",
              "requirements": "For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "integer"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "PID-24 (bool), PID-25 (integer)"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd,  player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber"
                }
              ]
            },
            {
              "path": "Patient.photo",
              "short": "Image of the patient",
              "definition": "Image of the patient.",
              "requirements": "Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "OBX-5 - needs a profile"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Contact"
                }
              ],
              "path": "Patient.contact",
              "short": "A contact party (e.g. guardian, partner, friend) for the patient",
              "definition": "A contact party (e.g. guardian, partner, friend) for the patient.",
              "comments": "Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact.",
              "requirements": "Need to track people you can contact about the patient.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "name or telecom or address or organization"
                    }
                  ],
                  "key": "pat-1",
                  "severity": "error",
                  "human": "SHALL at least contain a contact's details or a reference to an organization",
                  "xpath": "f:name or f:telecom or f:address or f:organization"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]"
                }
              ]
            },
            {
              "path": "Patient.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Patient.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Patient.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Patient.contact.relationship",
              "short": "The kind of relationship",
              "definition": "The nature of the relationship between the patient and the contact person.",
              "requirements": "Used to determine which contact person is the most relevant to approach, depending on circumstances.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The nature of the relationship between a patient and a contact person for that patient.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/patient-contact-relationship"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "NK1-7, NK1-3"
                },
                {
                  "identity": "rim",
                  "map": "code"
                }
              ]
            },
            {
              "path": "Patient.contact.name",
              "short": "A name associated with the contact person",
              "definition": "A name associated with the contact person.",
              "requirements": "Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "HumanName"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "NK1-2"
                },
                {
                  "identity": "rim",
                  "map": "name"
                }
              ]
            },
            {
              "path": "Patient.contact.telecom",
              "short": "A contact detail for the person",
              "definition": "A contact detail for the person, e.g. a telephone number or an email address.",
              "comments": "Contact may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification.",
              "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "NK1-5, NK1-6, NK1-40"
                },
                {
                  "identity": "rim",
                  "map": "telecom"
                }
              ]
            },
            {
              "path": "Patient.contact.address",
              "short": "Address for the contact person",
              "definition": "Address for the contact person.",
              "requirements": "Need to keep track where the contact person can be contacted per postal mail or visited.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "NK1-4"
                },
                {
                  "identity": "rim",
                  "map": "addr"
                }
              ]
            },
            {
              "path": "Patient.contact.gender",
              "short": "male | female | other | unknown",
              "definition": "Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.",
              "requirements": "Needed to address the person correctly.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The gender of a person used for administrative purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/administrative-gender"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "NK1-15"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"
                }
              ]
            },
            {
              "path": "Patient.contact.organization",
              "short": "Organization that is associated with the contact",
              "definition": "Organization on behalf of which the contact is acting or for which the contact is working.",
              "requirements": "For guardians or business related contacts, the organization is relevant.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "condition": [
                "pat-1"
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "NK1-13, NK1-30, NK1-31, NK1-32, NK1-41"
                },
                {
                  "identity": "rim",
                  "map": "scoper"
                }
              ]
            },
            {
              "path": "Patient.contact.period",
              "short": "The period during which this contact person or organization is valid to be contacted relating to this patient",
              "definition": "The period during which this contact person or organization is valid to be contacted relating to this patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "effectiveTime"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Animal"
                }
              ],
              "path": "Patient.animal",
              "short": "This patient is known to be an animal (non-human)",
              "definition": "This patient is known to be an animal.",
              "comments": "The animal element is labeled \"Is Modifier\" since patients may be non-human. Systems SHALL either handle patient details appropriately (e.g. inform users patient is not human) or reject declared animal records.   The absense of the animal element does not imply that the patient is a human. If a system requires such a positive assertion that the patient is human, an extension will be required.  (Do not use a species of homo-sapiens in animal species, as this would incorrectly infer that the patient is an animal).",
              "requirements": "Many clinical systems are extended to care for animal patients as well as human.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=ANM]"
                }
              ]
            },
            {
              "path": "Patient.animal.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Patient.animal.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Patient.animal.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Patient.animal.species",
              "short": "E.g. Dog, Cow",
              "definition": "Identifies the high level taxonomic categorization of the kind of animal.",
              "comments": "If the patient is non-human, at least a species SHALL be specified. Species SHALL be a widely recognised taxonomic classification.  It may or may not be Linnaean taxonomy and may or may not be at the level of species. If the level is finer than species--such as a breed code--the code system used SHALL allow inference of the species.  (The common example is that the word \"Hereford\" does not allow inference of the species Bos taurus, because there is a Hereford pig breed, but the SNOMED CT code for \"Hereford Cattle Breed\" does.).",
              "requirements": "Need to know what kind of animal.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The species of an animal.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/animal-species"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "PID-35"
                },
                {
                  "identity": "rim",
                  "map": "code"
                }
              ]
            },
            {
              "path": "Patient.animal.breed",
              "short": "E.g. Poodle, Angus",
              "definition": "Identifies the detailed categorization of the kind of animal.",
              "comments": "Breed MAY be used to provide further taxonomic or non-taxonomic classification.  It may involve local or proprietary designation--such as commercial strain--and/or additional information such as production type.",
              "requirements": "May need to know the specific kind within the species.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The breed of an animal.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/animal-breeds"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "PID-37"
                },
                {
                  "identity": "rim",
                  "map": "playedRole[classCode=GEN]/scoper[classCode=ANM, determinerCode=KIND]/code"
                }
              ]
            },
            {
              "path": "Patient.animal.genderStatus",
              "short": "E.g. Neutered, Intact",
              "definition": "Indicates the current state of the animal's reproductive organs.",
              "requirements": "Gender status can affect housing and animal behavior.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The state of the animal's reproductive organs.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/animal-genderstatus"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "genderStatusCode"
                }
              ]
            },
            {
              "path": "Patient.communication",
              "short": "A list of Languages which may be used to communicate with the patient about his or her health",
              "definition": "Languages which may be used to communicate with the patient about his or her health.",
              "comments": "If no language is specified, this *implies* that the default local language is spoken.  If you need to convey proficiency for multiple modes then you need multiple Patient.Communication associations.   For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.",
              "requirements": "If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency is an important things to keep track of both for patient and other persons of interest.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "patient.languageCommunication"
                },
                {
                  "identity": "rim",
                  "map": "LanguageCommunication"
                }
              ]
            },
            {
              "path": "Patient.communication.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Patient.communication.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Patient.communication.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Patient.communication.language",
              "short": "The language which can be used to communicate with the patient about his or her health",
              "definition": "The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English.",
              "comments": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.",
              "requirements": "Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".languageCode"
                },
                {
                  "identity": "v2",
                  "map": "PID-15, LAN-2"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code"
                }
              ]
            },
            {
              "path": "Patient.communication.preferred",
              "short": "Language preference indicator",
              "definition": "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).",
              "comments": "This language is specifically identified for communicating healthcare information.",
              "requirements": "People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".preferenceInd"
                },
                {
                  "identity": "v2",
                  "map": "PID-15"
                },
                {
                  "identity": "rim",
                  "map": "preferenceInd"
                }
              ]
            },
            {
              "path": "Patient.careProvider",
              "short": "Patient's nominated primary care provider",
              "definition": "Patient's nominated care provider.",
              "comments": "This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disablity setting, or even organization that will provide people to perform the care provider roles.\n\nThis is not to be used to record Care Teams, these should be recorded on either the CarePlan or EpisodeOfCare resources.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "PD1-4"
                },
                {
                  "identity": "rim",
                  "map": "subjectOf.CareEvent.performer.AssignedEntity"
                }
              ]
            },
            {
              "path": "Patient.managingOrganization",
              "short": "Organization that is the custodian of the patient record",
              "definition": "Organization that is the custodian of the patient record.",
              "comments": "There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association).",
              "requirements": "Need to know who recognizes this patient record, manages and updates it.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".providerOrganization"
                },
                {
                  "identity": "rim",
                  "map": "scoper"
                }
              ]
            },
            {
              "path": "Patient.link",
              "short": "Link to another patient resource that concerns the same actual person",
              "definition": "Link to another patient resource that concerns the same actual patient.",
              "comments": "There is no assumption that linked patient records have mutual links.",
              "requirements": "There are multiple usecases: \n\n* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and * Distribution of patient information across multiple servers.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "outboundLink"
                }
              ]
            },
            {
              "path": "Patient.link.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Patient.link.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Patient.link.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Patient.link.other",
              "short": "The other patient resource that the link refers to",
              "definition": "The other patient resource that the link refers to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "PID-3, MRG-1"
                },
                {
                  "identity": "rim",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Patient.link.type",
              "short": "replace | refer | seealso - type of link",
              "definition": "The type of link between this patient resource and another patient resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "binding": {
                "strength": "required",
                "description": "The type of link between this patient resource and another patient resource.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/link-type"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "typeCode"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Patient",
              "short": "Information about an individual or animal receiving health care services",
              "definition": "Demographics and other administrative information about an individual or animal receiving care or other health-related services.",
              "alias": [
                "SubjectOfCare Client Resident"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "ClinicalDocument.recordTarget.patientRole"
                },
                {
                  "identity": "rim",
                  "map": "Patient[classCode=PAT]"
                },
                {
                  "identity": "w5",
                  "map": "administrative.individual"
                }
              ]
            },
            {
              "path": "Patient.identifier",
              "short": "An identifier for this patient",
              "definition": "An identifier for this patient.",
              "requirements": "Patients are almost always assigned specific numerical identifiers.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".id"
                },
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Patient.active",
              "short": "Whether this patient's record is in active use",
              "definition": "Whether this patient record is in active use.",
              "comments": "Default is true. If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.",
              "requirements": "Need to be able to mark a patient record as not to be used because it was created in error.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": true,
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Patient.name",
              "short": "A name associated with the patient",
              "definition": "A name associated with the individual.",
              "comments": "A patient may have multiple names with different uses or applicable periods. For animals, the name is a \"HumanName\" in the sense that is assigned and used by humans and has the same patterns.",
              "requirements": "Need to be able to track the patient by multiple names. Examples are your official name and a partner name.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "HumanName"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".patient.name"
                },
                {
                  "identity": "v2",
                  "map": "PID-5, PID-9"
                },
                {
                  "identity": "rim",
                  "map": "name"
                }
              ]
            },
            {
              "path": "Patient.telecom",
              "short": "A contact detail for the individual",
              "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.",
              "comments": "A Patient may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently and also to help with identification. The address may not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).",
              "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".telecom"
                },
                {
                  "identity": "v2",
                  "map": "PID-13, PID-14, PID-40"
                },
                {
                  "identity": "rim",
                  "map": "telecom"
                }
              ]
            },
            {
              "path": "Patient.gender",
              "short": "male | female | other | unknown",
              "definition": "Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.",
              "comments": "The gender may not match the biological sex as determined by genetics, or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than M and F, though the vast majority of systems and contexts only support M and F.  Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific gender aspect of interest (anatomical, chromosonal, social, etc.)  However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice.  Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosonal and other gender aspects.  For example, an alert about a hysterectomy on a male should be handled as a warning or overrideable error, not a \"hard\" error.",
              "requirements": "Needed for identification of the individual, in combination with (at least) name and birth date. Gender of individual drives many clinical processes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The gender of a person used for administrative purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/administrative-gender"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".patient.administrativeGenderCode"
                },
                {
                  "identity": "v2",
                  "map": "PID-8"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"
                }
              ]
            },
            {
              "path": "Patient.birthDate",
              "short": "The date of birth for the individual",
              "definition": "The date of birth for the individual.",
              "comments": "At least an estimated year should be provided as a guess if the real DOB is unknown  There is a standard extension \"patient-birthTime\" available that should be used where Time is required (such as in maternaty/infant care systems).",
              "requirements": "Age of the individual drives many clinical processes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "loinc",
                  "map": "21112-8"
                },
                {
                  "identity": "cda",
                  "map": ".patient.birthTime"
                },
                {
                  "identity": "v2",
                  "map": "PID-7"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime"
                }
              ]
            },
            {
              "path": "Patient.deceased[x]",
              "short": "Indicates if the individual is deceased or not",
              "definition": "Indicates if the individual is deceased or not.",
              "comments": "If there's no value in the instance it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive.",
              "requirements": "The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "dateTime"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "PID-30  (bool) and PID-29 (datetime)"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime"
                }
              ]
            },
            {
              "path": "Patient.address",
              "short": "Addresses for the individual",
              "definition": "Addresses for the individual.",
              "comments": "Patient may have multiple addresses with different uses or applicable periods.",
              "requirements": "May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".addr"
                },
                {
                  "identity": "v2",
                  "map": "PID-11"
                },
                {
                  "identity": "rim",
                  "map": "addr"
                }
              ]
            },
            {
              "path": "Patient.maritalStatus",
              "short": "Marital (civil) status of a patient",
              "definition": "This field contains a patient's most recent marital (civil) status.",
              "requirements": "Most, if not all systems capture it.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The domestic partnership status of a person.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/marital-status"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".patient.maritalStatusCode"
                },
                {
                  "identity": "v2",
                  "map": "PID-16"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN]/maritalStatusCode"
                }
              ]
            },
            {
              "path": "Patient.multipleBirth[x]",
              "short": "Whether patient is part of a multiple birth",
              "definition": "Indicates whether the patient is part of a multiple or indicates the actual birth order.",
              "requirements": "For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "integer"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "PID-24 (bool), PID-25 (integer)"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd,  player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber"
                }
              ]
            },
            {
              "path": "Patient.photo",
              "short": "Image of the patient",
              "definition": "Image of the patient.",
              "requirements": "Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "OBX-5 - needs a profile"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Contact"
                }
              ],
              "path": "Patient.contact",
              "short": "A contact party (e.g. guardian, partner, friend) for the patient",
              "definition": "A contact party (e.g. guardian, partner, friend) for the patient.",
              "comments": "Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact.",
              "requirements": "Need to track people you can contact about the patient.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "name or telecom or address or organization"
                    }
                  ],
                  "key": "pat-1",
                  "severity": "error",
                  "human": "SHALL at least contain a contact's details or a reference to an organization",
                  "xpath": "f:name or f:telecom or f:address or f:organization"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]"
                }
              ]
            },
            {
              "path": "Patient.contact.relationship",
              "short": "The kind of relationship",
              "definition": "The nature of the relationship between the patient and the contact person.",
              "requirements": "Used to determine which contact person is the most relevant to approach, depending on circumstances.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The nature of the relationship between a patient and a contact person for that patient.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/patient-contact-relationship"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "NK1-7, NK1-3"
                },
                {
                  "identity": "rim",
                  "map": "code"
                }
              ]
            },
            {
              "path": "Patient.contact.name",
              "short": "A name associated with the contact person",
              "definition": "A name associated with the contact person.",
              "requirements": "Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "HumanName"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "NK1-2"
                },
                {
                  "identity": "rim",
                  "map": "name"
                }
              ]
            },
            {
              "path": "Patient.contact.telecom",
              "short": "A contact detail for the person",
              "definition": "A contact detail for the person, e.g. a telephone number or an email address.",
              "comments": "Contact may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification.",
              "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "NK1-5, NK1-6, NK1-40"
                },
                {
                  "identity": "rim",
                  "map": "telecom"
                }
              ]
            },
            {
              "path": "Patient.contact.address",
              "short": "Address for the contact person",
              "definition": "Address for the contact person.",
              "requirements": "Need to keep track where the contact person can be contacted per postal mail or visited.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "NK1-4"
                },
                {
                  "identity": "rim",
                  "map": "addr"
                }
              ]
            },
            {
              "path": "Patient.contact.gender",
              "short": "male | female | other | unknown",
              "definition": "Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.",
              "requirements": "Needed to address the person correctly.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The gender of a person used for administrative purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/administrative-gender"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "NK1-15"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"
                }
              ]
            },
            {
              "path": "Patient.contact.organization",
              "short": "Organization that is associated with the contact",
              "definition": "Organization on behalf of which the contact is acting or for which the contact is working.",
              "requirements": "For guardians or business related contacts, the organization is relevant.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "condition": [
                "pat-1"
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "NK1-13, NK1-30, NK1-31, NK1-32, NK1-41"
                },
                {
                  "identity": "rim",
                  "map": "scoper"
                }
              ]
            },
            {
              "path": "Patient.contact.period",
              "short": "The period during which this contact person or organization is valid to be contacted relating to this patient",
              "definition": "The period during which this contact person or organization is valid to be contacted relating to this patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "effectiveTime"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Animal"
                }
              ],
              "path": "Patient.animal",
              "short": "This patient is known to be an animal (non-human)",
              "definition": "This patient is known to be an animal.",
              "comments": "The animal element is labeled \"Is Modifier\" since patients may be non-human. Systems SHALL either handle patient details appropriately (e.g. inform users patient is not human) or reject declared animal records.   The absense of the animal element does not imply that the patient is a human. If a system requires such a positive assertion that the patient is human, an extension will be required.  (Do not use a species of homo-sapiens in animal species, as this would incorrectly infer that the patient is an animal).",
              "requirements": "Many clinical systems are extended to care for animal patients as well as human.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=ANM]"
                }
              ]
            },
            {
              "path": "Patient.animal.species",
              "short": "E.g. Dog, Cow",
              "definition": "Identifies the high level taxonomic categorization of the kind of animal.",
              "comments": "If the patient is non-human, at least a species SHALL be specified. Species SHALL be a widely recognised taxonomic classification.  It may or may not be Linnaean taxonomy and may or may not be at the level of species. If the level is finer than species--such as a breed code--the code system used SHALL allow inference of the species.  (The common example is that the word \"Hereford\" does not allow inference of the species Bos taurus, because there is a Hereford pig breed, but the SNOMED CT code for \"Hereford Cattle Breed\" does.).",
              "requirements": "Need to know what kind of animal.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The species of an animal.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/animal-species"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "PID-35"
                },
                {
                  "identity": "rim",
                  "map": "code"
                }
              ]
            },
            {
              "path": "Patient.animal.breed",
              "short": "E.g. Poodle, Angus",
              "definition": "Identifies the detailed categorization of the kind of animal.",
              "comments": "Breed MAY be used to provide further taxonomic or non-taxonomic classification.  It may involve local or proprietary designation--such as commercial strain--and/or additional information such as production type.",
              "requirements": "May need to know the specific kind within the species.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The breed of an animal.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/animal-breeds"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "PID-37"
                },
                {
                  "identity": "rim",
                  "map": "playedRole[classCode=GEN]/scoper[classCode=ANM, determinerCode=KIND]/code"
                }
              ]
            },
            {
              "path": "Patient.animal.genderStatus",
              "short": "E.g. Neutered, Intact",
              "definition": "Indicates the current state of the animal's reproductive organs.",
              "requirements": "Gender status can affect housing and animal behavior.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The state of the animal's reproductive organs.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/animal-genderstatus"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "genderStatusCode"
                }
              ]
            },
            {
              "path": "Patient.communication",
              "short": "A list of Languages which may be used to communicate with the patient about his or her health",
              "definition": "Languages which may be used to communicate with the patient about his or her health.",
              "comments": "If no language is specified, this *implies* that the default local language is spoken.  If you need to convey proficiency for multiple modes then you need multiple Patient.Communication associations.   For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.",
              "requirements": "If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency is an important things to keep track of both for patient and other persons of interest.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "patient.languageCommunication"
                },
                {
                  "identity": "rim",
                  "map": "LanguageCommunication"
                }
              ]
            },
            {
              "path": "Patient.communication.language",
              "short": "The language which can be used to communicate with the patient about his or her health",
              "definition": "The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English.",
              "comments": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.",
              "requirements": "Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".languageCode"
                },
                {
                  "identity": "v2",
                  "map": "PID-15, LAN-2"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code"
                }
              ]
            },
            {
              "path": "Patient.communication.preferred",
              "short": "Language preference indicator",
              "definition": "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).",
              "comments": "This language is specifically identified for communicating healthcare information.",
              "requirements": "People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".preferenceInd"
                },
                {
                  "identity": "v2",
                  "map": "PID-15"
                },
                {
                  "identity": "rim",
                  "map": "preferenceInd"
                }
              ]
            },
            {
              "path": "Patient.careProvider",
              "short": "Patient's nominated primary care provider",
              "definition": "Patient's nominated care provider.",
              "comments": "This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disablity setting, or even organization that will provide people to perform the care provider roles.\n\nThis is not to be used to record Care Teams, these should be recorded on either the CarePlan or EpisodeOfCare resources.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "PD1-4"
                },
                {
                  "identity": "rim",
                  "map": "subjectOf.CareEvent.performer.AssignedEntity"
                }
              ]
            },
            {
              "path": "Patient.managingOrganization",
              "short": "Organization that is the custodian of the patient record",
              "definition": "Organization that is the custodian of the patient record.",
              "comments": "There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association).",
              "requirements": "Need to know who recognizes this patient record, manages and updates it.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": ".providerOrganization"
                },
                {
                  "identity": "rim",
                  "map": "scoper"
                }
              ]
            },
            {
              "path": "Patient.link",
              "short": "Link to another patient resource that concerns the same actual person",
              "definition": "Link to another patient resource that concerns the same actual patient.",
              "comments": "There is no assumption that linked patient records have mutual links.",
              "requirements": "There are multiple usecases: \n\n* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and * Distribution of patient information across multiple servers.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "outboundLink"
                }
              ]
            },
            {
              "path": "Patient.link.other",
              "short": "The other patient resource that the link refers to",
              "definition": "The other patient resource that the link refers to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "v2",
                  "map": "PID-3, MRG-1"
                },
                {
                  "identity": "rim",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Patient.link.type",
              "short": "replace | refer | seealso - type of link",
              "definition": "The type of link between this patient resource and another patient resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "binding": {
                "strength": "required",
                "description": "The type of link between this patient resource and another patient resource.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/link-type"
                }
              },
              "mapping": [
                {
                  "identity": "cda",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "typeCode"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/PaymentNotice",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "PaymentNotice",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/PaymentNotice",
        "name": "PaymentNotice",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for PaymentNotice Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "cdanetv4",
            "uri": "http://www.cda-adc.ca/en/services/cdanet/",
            "name": "Canadian Dental Association eclaims standard"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "PaymentNotice",
              "short": "PaymentNotice request",
              "definition": "This resource provides the status of the payment for goods and services rendered, and the request and response resource references.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.payment"
                }
              ]
            },
            {
              "path": "PaymentNotice.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "PaymentNotice.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "PaymentNotice.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "PaymentNotice.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "PaymentNotice.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "PaymentNotice.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "PaymentNotice.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "PaymentNotice.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "PaymentNotice.created",
              "short": "Creation date",
              "definition": "The date when this resource was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.target",
              "short": "Insurer or Regulatory body",
              "definition": "The Insurer who is target  of the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.provider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "PaymentNotice.organization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.request",
              "short": "Request reference",
              "definition": "Reference of resource to reverse.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.response",
              "short": "Response reference",
              "definition": "Reference of response to resource to reverse.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.paymentStatus",
              "short": "Status of the payment",
              "definition": "The payment status, typically paid: payment sent, cleared: payment received.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The payment conveyance status codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payment-status"
                }
              }
            },
            {
              "path": "PaymentNotice.statusDate",
              "short": "Payment or clearing date",
              "definition": "The date when the above payment action occurrred.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "PaymentNotice",
              "short": "PaymentNotice request",
              "definition": "This resource provides the status of the payment for goods and services rendered, and the request and response resource references.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.payment"
                }
              ]
            },
            {
              "path": "PaymentNotice.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "PaymentNotice.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "PaymentNotice.created",
              "short": "Creation date",
              "definition": "The date when this resource was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.target",
              "short": "Insurer or Regulatory body",
              "definition": "The Insurer who is target  of the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.provider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "PaymentNotice.organization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.request",
              "short": "Request reference",
              "definition": "Reference of resource to reverse.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.response",
              "short": "Response reference",
              "definition": "Reference of response to resource to reverse.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentNotice.paymentStatus",
              "short": "Status of the payment",
              "definition": "The payment status, typically paid: payment sent, cleared: payment received.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The payment conveyance status codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payment-status"
                }
              }
            },
            {
              "path": "PaymentNotice.statusDate",
              "short": "Payment or clearing date",
              "definition": "The date when the above payment action occurrred.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/PaymentReconciliation",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "PaymentReconciliation",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/PaymentReconciliation",
        "name": "PaymentReconciliation",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for PaymentReconciliation Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "cdanetv4",
            "uri": "http://www.cda-adc.ca/en/services/cdanet/",
            "name": "Canadian Dental Association eclaims standard"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "PaymentReconciliation",
              "short": "PaymentReconciliation resource",
              "definition": "This resource provides payment details and claim references supporting a bulk payment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.payment"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "PaymentReconciliation.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.request",
              "short": "Claim reference",
              "definition": "Original request resource reference.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcessRequest"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.outcome",
              "short": "complete | error",
              "definition": "Transaction status: error, complete.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The outcome of the processing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/remittance-outcome"
                }
              }
            },
            {
              "path": "PaymentReconciliation.disposition",
              "short": "Disposition Message",
              "definition": "A description of the status of the adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "PaymentReconciliation.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "PaymentReconciliation.created",
              "short": "Creation date",
              "definition": "The date when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.period",
              "short": "Period covered",
              "definition": "The period of time for which payments have been gathered into this bulk payment for settlement.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.organization",
              "short": "Insurer",
              "definition": "The Insurer who produced this adjudicated response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.requestProvider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.requestOrganization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Details"
                }
              ],
              "path": "PaymentReconciliation.detail",
              "short": "Details",
              "definition": "List of individual settlement amounts and the corresponding transaction.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.detail.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.detail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.detail.type",
              "short": "Type code",
              "definition": "Code to indicate the nature of the payment, adjustment, funds advance, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The reason for the amount: payment, adjustment, advance.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payment-type"
                }
              }
            },
            {
              "path": "PaymentReconciliation.detail.request",
              "short": "Claim",
              "definition": "The claim or financial resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.detail.responce",
              "short": "Claim Response",
              "definition": "The claim response resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.detail.submitter",
              "short": "Submitter",
              "definition": "The Organization which submitted the invoice or financial transaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.detail.payee",
              "short": "Payee",
              "definition": "The organization which is receiving the payment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.detail.date",
              "short": "Invoice date",
              "definition": "The date of the invoice or financial resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.detail.amount",
              "short": "Detail amount",
              "definition": "Amount paid for this detail.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.form",
              "short": "Printed Form Identifier",
              "definition": "The form to be used for printing the content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The forms codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/forms"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G42"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.total",
              "short": "Total amount of Payment",
              "definition": "Total payment amount.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Notes"
                }
              ],
              "path": "PaymentReconciliation.note",
              "short": "Note text",
              "definition": "Suite of notes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.note.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.note.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.note.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.note.type",
              "short": "display | print | printoper",
              "definition": "The note purpose: Print/Display.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The presentation types of notes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/note-type"
                }
              }
            },
            {
              "path": "PaymentReconciliation.note.text",
              "short": "Notes text",
              "definition": "The note text.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G32"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "PaymentReconciliation",
              "short": "PaymentReconciliation resource",
              "definition": "This resource provides payment details and claim references supporting a bulk payment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "financial.payment"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.request",
              "short": "Claim reference",
              "definition": "Original request resource reference.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcessRequest"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.outcome",
              "short": "complete | error",
              "definition": "Transaction status: error, complete.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The outcome of the processing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/remittance-outcome"
                }
              }
            },
            {
              "path": "PaymentReconciliation.disposition",
              "short": "Disposition Message",
              "definition": "A description of the status of the adjudication.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "PaymentReconciliation.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "PaymentReconciliation.created",
              "short": "Creation date",
              "definition": "The date when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.period",
              "short": "Period covered",
              "definition": "The period of time for which payments have been gathered into this bulk payment for settlement.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.organization",
              "short": "Insurer",
              "definition": "The Insurer who produced this adjudicated response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.requestProvider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.requestOrganization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Details"
                }
              ],
              "path": "PaymentReconciliation.detail",
              "short": "Details",
              "definition": "List of individual settlement amounts and the corresponding transaction.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.detail.type",
              "short": "Type code",
              "definition": "Code to indicate the nature of the payment, adjustment, funds advance, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The reason for the amount: payment, adjustment, advance.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/payment-type"
                }
              }
            },
            {
              "path": "PaymentReconciliation.detail.request",
              "short": "Claim",
              "definition": "The claim or financial resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.detail.responce",
              "short": "Claim Response",
              "definition": "The claim response resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.detail.submitter",
              "short": "Submitter",
              "definition": "The Organization which submitted the invoice or financial transaction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.detail.payee",
              "short": "Payee",
              "definition": "The organization which is receiving the payment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.detail.date",
              "short": "Invoice date",
              "definition": "The date of the invoice or financial resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.detail.amount",
              "short": "Detail amount",
              "definition": "Amount paid for this detail.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.form",
              "short": "Printed Form Identifier",
              "definition": "The form to be used for printing the content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The forms codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/forms"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G42"
                }
              ]
            },
            {
              "path": "PaymentReconciliation.total",
              "short": "Total amount of Payment",
              "definition": "Total payment amount.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Money"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Notes"
                }
              ],
              "path": "PaymentReconciliation.note",
              "short": "Note text",
              "definition": "Suite of notes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "PaymentReconciliation.note.type",
              "short": "display | print | printoper",
              "definition": "The note purpose: Print/Display.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The presentation types of notes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/note-type"
                }
              }
            },
            {
              "path": "PaymentReconciliation.note.text",
              "short": "Notes text",
              "definition": "The note text.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G32"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Person",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Person",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Person",
        "name": "Person",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Person Resource",
        "requirements": "Need to track persons potentially across multiple roles.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Person",
              "short": "A generic person record",
              "definition": "Demographics and administrative information about a person independent of a specific health-related context.",
              "comments": "The Person resource does justice to person registries that keep track of persons regardless of their role. The Person resource is also a primary resource to point to for people acting in a particular role such as SubjectofCare, Practitioner, and Agent. Very few attributes are specific to any role and so Person is kept lean. Most attributes are expected to be tied to the role the Person plays rather than the Person himself. Examples of that are Guardian (SubjectofCare), ContactParty (SubjectOfCare, Practitioner), and multipleBirthInd (SubjectofCare).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Person(classCode=\"PSN\" and determinerCode=\"INST\" and quantity=\"1\")"
                },
                {
                  "identity": "w5",
                  "map": "administrative.entity"
                }
              ]
            },
            {
              "path": "Person.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Person.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Person.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Person.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Person.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Person.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Person.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Person.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Person.identifier",
              "short": "A human identifier for this person",
              "definition": "Identifier for a person within a particular scope.",
              "requirements": "People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the person. Examples are national person identifier and local identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".plays:Role(classCode='IDENT').id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Person.name",
              "short": "A name associated with the person",
              "definition": "A name associated with the person.",
              "comments": "Person may have multiple names with different uses or applicable periods.",
              "requirements": "Need to be able to track the person by multiple names. Examples are your official name and a partner name.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "HumanName"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-5, PID-9"
                },
                {
                  "identity": "rim",
                  "map": "./name"
                }
              ]
            },
            {
              "path": "Person.telecom",
              "short": "A contact detail for the person",
              "definition": "A contact detail for the person, e.g. a telephone number or an email address.",
              "comments": "Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification.",
              "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-13, PID-14"
                },
                {
                  "identity": "rim",
                  "map": "./telecom"
                }
              ]
            },
            {
              "path": "Person.gender",
              "short": "male | female | other | unknown",
              "definition": "Administrative Gender.",
              "comments": "The gender may not match the biological sex as determined by genetics, or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than M and F, though the vast majority of systems and contexts only support M and F.",
              "requirements": "Needed for identification of the person, in combination with (at least) name and birth date. Gender of person drives many clinical processes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The gender of a person used for administrative purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/administrative-gender"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-8"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"
                }
              ]
            },
            {
              "path": "Person.birthDate",
              "short": "The date on which the person was born",
              "definition": "The birth date for the person.",
              "comments": "At least an estimated year should be provided as a guess if the real DOB is unknown.",
              "requirements": "Age of person drives many clinical processes, and is often used in performing identification of the person. Times are not included so as to not confuse things with potential timezone issues.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-7"
                },
                {
                  "identity": "rim",
                  "map": "./birthTime"
                }
              ]
            },
            {
              "path": "Person.address",
              "short": "One or more addresses for the person",
              "definition": "One or more addresses for the person.",
              "comments": "Person may have multiple addresses with different uses or applicable periods.",
              "requirements": "May need to keep track of person's addresses for contacting, billing or reporting requirements and also to help with identification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-11"
                },
                {
                  "identity": "rim",
                  "map": "./addr"
                }
              ]
            },
            {
              "path": "Person.photo",
              "short": "Image of the person",
              "definition": "An image that can be displayed as a thumbnail of the person to enhance the identification of the individual.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 - needs a profile"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc"
                }
              ]
            },
            {
              "path": "Person.managingOrganization",
              "short": "The organization that is the custodian of the person record",
              "definition": "The organization that is the custodian of the person record.",
              "requirements": "Need to know who recognizes this person record, manages and updates it.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "scoper"
                }
              ]
            },
            {
              "path": "Person.active",
              "short": "This person's record is in active use",
              "definition": "Whether this person's record is in active use.",
              "requirements": "Need to be able to mark a person record as not to be used because it was created in error.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Person.link",
              "short": "Link to a resource that concerns the same actual person",
              "definition": "Link to a resource that concerns the same actual person.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundLink"
                }
              ]
            },
            {
              "path": "Person.link.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Person.link.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Person.link.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Person.link.target",
              "short": "The resource to which this actual person is associated",
              "definition": "The resource to which this actual person is associated.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Person"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Person.link.assurance",
              "short": "level1 | level2 | level3 | level4",
              "definition": "Level of assurance that this link is actually associated with the target resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The level of confidence that this link represents the same actual person, based on NIST Authentication Levels.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/identity-assuranceLevel"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "priorityNumber?"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Person",
              "short": "A generic person record",
              "definition": "Demographics and administrative information about a person independent of a specific health-related context.",
              "comments": "The Person resource does justice to person registries that keep track of persons regardless of their role. The Person resource is also a primary resource to point to for people acting in a particular role such as SubjectofCare, Practitioner, and Agent. Very few attributes are specific to any role and so Person is kept lean. Most attributes are expected to be tied to the role the Person plays rather than the Person himself. Examples of that are Guardian (SubjectofCare), ContactParty (SubjectOfCare, Practitioner), and multipleBirthInd (SubjectofCare).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Person(classCode=\"PSN\" and determinerCode=\"INST\" and quantity=\"1\")"
                },
                {
                  "identity": "w5",
                  "map": "administrative.entity"
                }
              ]
            },
            {
              "path": "Person.identifier",
              "short": "A human identifier for this person",
              "definition": "Identifier for a person within a particular scope.",
              "requirements": "People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the person. Examples are national person identifier and local identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".plays:Role(classCode='IDENT').id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Person.name",
              "short": "A name associated with the person",
              "definition": "A name associated with the person.",
              "comments": "Person may have multiple names with different uses or applicable periods.",
              "requirements": "Need to be able to track the person by multiple names. Examples are your official name and a partner name.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "HumanName"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-5, PID-9"
                },
                {
                  "identity": "rim",
                  "map": "./name"
                }
              ]
            },
            {
              "path": "Person.telecom",
              "short": "A contact detail for the person",
              "definition": "A contact detail for the person, e.g. a telephone number or an email address.",
              "comments": "Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification.",
              "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-13, PID-14"
                },
                {
                  "identity": "rim",
                  "map": "./telecom"
                }
              ]
            },
            {
              "path": "Person.gender",
              "short": "male | female | other | unknown",
              "definition": "Administrative Gender.",
              "comments": "The gender may not match the biological sex as determined by genetics, or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than M and F, though the vast majority of systems and contexts only support M and F.",
              "requirements": "Needed for identification of the person, in combination with (at least) name and birth date. Gender of person drives many clinical processes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The gender of a person used for administrative purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/administrative-gender"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-8"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"
                }
              ]
            },
            {
              "path": "Person.birthDate",
              "short": "The date on which the person was born",
              "definition": "The birth date for the person.",
              "comments": "At least an estimated year should be provided as a guess if the real DOB is unknown.",
              "requirements": "Age of person drives many clinical processes, and is often used in performing identification of the person. Times are not included so as to not confuse things with potential timezone issues.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-7"
                },
                {
                  "identity": "rim",
                  "map": "./birthTime"
                }
              ]
            },
            {
              "path": "Person.address",
              "short": "One or more addresses for the person",
              "definition": "One or more addresses for the person.",
              "comments": "Person may have multiple addresses with different uses or applicable periods.",
              "requirements": "May need to keep track of person's addresses for contacting, billing or reporting requirements and also to help with identification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-11"
                },
                {
                  "identity": "rim",
                  "map": "./addr"
                }
              ]
            },
            {
              "path": "Person.photo",
              "short": "Image of the person",
              "definition": "An image that can be displayed as a thumbnail of the person to enhance the identification of the individual.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 - needs a profile"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc"
                }
              ]
            },
            {
              "path": "Person.managingOrganization",
              "short": "The organization that is the custodian of the person record",
              "definition": "The organization that is the custodian of the person record.",
              "requirements": "Need to know who recognizes this person record, manages and updates it.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "scoper"
                }
              ]
            },
            {
              "path": "Person.active",
              "short": "This person's record is in active use",
              "definition": "Whether this person's record is in active use.",
              "requirements": "Need to be able to mark a person record as not to be used because it was created in error.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "statusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Person.link",
              "short": "Link to a resource that concerns the same actual person",
              "definition": "Link to a resource that concerns the same actual person.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "outboundLink"
                }
              ]
            },
            {
              "path": "Person.link.target",
              "short": "The resource to which this actual person is associated",
              "definition": "The resource to which this actual person is associated.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Person"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Person.link.assurance",
              "short": "level1 | level2 | level3 | level4",
              "definition": "Level of assurance that this link is actually associated with the target resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The level of confidence that this link represents the same actual person, based on NIST Authentication Levels.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/identity-assuranceLevel"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "priorityNumber?"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Practitioner",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Practitioner",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "name": "Practitioner",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Practitioner Resource",
        "requirements": "Need to track doctors, staff, locums etc. for both healthcare practitioners, funders, etc.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "servd",
            "uri": "http://www.omg.org/spec/ServD/1.0/",
            "name": "ServD"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Practitioner",
              "short": "A person with a  formal responsibility in the provisioning of healthcare or related services",
              "definition": "A person who is directly or indirectly involved in the provisioning of healthcare.",
              "comments": "Note that a cab driver no longer fits the bill. You probably would be interested in the organization rather than the individual?",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRD (as one example)"
                },
                {
                  "identity": "rim",
                  "map": "Role"
                },
                {
                  "identity": "servd",
                  "map": "Provider"
                },
                {
                  "identity": "w5",
                  "map": "administrative.individual"
                }
              ]
            },
            {
              "path": "Practitioner.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Practitioner.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Practitioner.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Practitioner.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Practitioner.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Practitioner.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Practitioner.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Practitioner.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Practitioner.identifier",
              "short": "A identifier for the person as this agent",
              "definition": "An identifier that applies to this person in this role.",
              "requirements": "Often, specific identities are assigned for the agent.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRD-7 (or XCN.1)"
                },
                {
                  "identity": "rim",
                  "map": "./id"
                },
                {
                  "identity": "servd",
                  "map": "./Identifiers"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Practitioner.active",
              "short": "Whether this practitioner's record is in active use",
              "definition": "Whether this practitioner's record is in active use.",
              "comments": "Default is true. \n\nIf the practitioner is not in use by one organization, then it should mark the period on the PractitonerRole with an end date (even if they are active) as they may be active in another role.",
              "requirements": "Need to be able to mark a practitioner record as not to be used because it was created in error.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./StatusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Practitioner.name",
              "short": "A name associated with the person",
              "definition": "A name associated with the person.",
              "requirements": "Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that person.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "HumanName"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "XCN Components"
                },
                {
                  "identity": "rim",
                  "map": "./name"
                },
                {
                  "identity": "servd",
                  "map": "./PreferredName (GivenNames, FamilyName, TitleCode)"
                }
              ]
            },
            {
              "path": "Practitioner.telecom",
              "short": "A contact detail for the practitioner",
              "definition": "A contact detail for the practitioner, e.g. a telephone number or an email address.",
              "comments": "Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification.",
              "requirements": "Need to know how to reach a practitioner.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRT-15, STF-10, ROL-12"
                },
                {
                  "identity": "rim",
                  "map": "./telecom"
                },
                {
                  "identity": "servd",
                  "map": "./ContactPoints"
                }
              ]
            },
            {
              "path": "Practitioner.address",
              "short": "Where practitioner can be found/visited",
              "definition": "The postal address where the practitioner can be found or visited or to which mail can be delivered.",
              "requirements": "Need to keep track where the practitioner can found during work or for directing mail.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-24, STF-11, ROL-11, PRT-14"
                },
                {
                  "identity": "rim",
                  "map": "./addr"
                },
                {
                  "identity": "servd",
                  "map": "./Addresses"
                }
              ]
            },
            {
              "path": "Practitioner.gender",
              "short": "male | female | other | unknown",
              "definition": "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.",
              "requirements": "Needed to address the person correctly.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The gender of a person used for administrative purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/administrative-gender"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "STF-5"
                },
                {
                  "identity": "rim",
                  "map": "./administrativeGender"
                },
                {
                  "identity": "servd",
                  "map": "./GenderCode"
                }
              ]
            },
            {
              "path": "Practitioner.birthDate",
              "short": "The date  on which the practitioner was born",
              "definition": "The date of birth for the practitioner.",
              "requirements": "Needed for identification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "STF-6"
                },
                {
                  "identity": "rim",
                  "map": "./birthTime"
                },
                {
                  "identity": "servd",
                  "map": "(not represented in ServD)"
                }
              ]
            },
            {
              "path": "Practitioner.photo",
              "short": "Image of the person",
              "definition": "Image of the person.",
              "requirements": "Many EHR systems have the capability to capture an image of patients and personnel. Fits with newer social media usage too.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./subjectOf/ObservationEvent[code=\"photo\"]/value"
                },
                {
                  "identity": "servd",
                  "map": "./ImageURI (only supports the URI reference)"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole",
              "short": "Roles/organizations the practitioner is associated with",
              "definition": "The list of roles/organizations that the practitioner is associated with.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".(Role)"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.managingOrganization",
              "short": "Organization where the roles are performed",
              "definition": "The organization where the Practitioner performs the roles associated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "scopingOrganization"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.role",
              "short": "Roles which this practitioner may perform",
              "definition": "Roles which this practitioner is authorized to perform for the organization.",
              "comments": "A person may have more than one role. At least one role is required.",
              "requirements": "Need to know what authority the practitioner has - what can they do?",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The role a person plays representing an organization",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/practitioner-role"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRD-1 / STF-18  / PRA-3  / PRT-4  / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17"
                },
                {
                  "identity": "rim",
                  "map": "./code"
                },
                {
                  "identity": "servd",
                  "map": "(ServD maps Practitioners and Organizations via another entity, so this concept is not available)"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.specialty",
              "short": "Specific specialty of the practitioner",
              "definition": "Specific specialty of the practitioner.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Specific specialty associated with the agency",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/practitioner-specialty"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRA-5"
                },
                {
                  "identity": "rim",
                  "map": "indirectAuthority/QualifiedEntity[code < Speciality]/code"
                },
                {
                  "identity": "servd",
                  "map": "./Specialty"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.period",
              "short": "The period during which the practitioner is authorized to perform in these role(s)",
              "definition": "The period during which the person is authorized to act as a practitioner in these role(s) for the organization.",
              "requirements": "Even after the agencies is revoked, the fact that it existed must still be recorded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRD-8/9 / PRA-5.4"
                },
                {
                  "identity": "rim",
                  "map": "./effectiveTime"
                },
                {
                  "identity": "servd",
                  "map": "(ServD maps Practitioners and Organizations via another entity, so this concept is not available)"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.location",
              "short": "The location(s) at which this practitioner provides care",
              "definition": "The location(s) at which this practitioner provides care.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./target[classCode=\"indirectAuthority].source[classCode=SDLOC]"
                },
                {
                  "identity": "servd",
                  "map": "(ServD maps Practitioners and Organizations via another entity, so this concept is not available)<br/> However these are accessed via the Site.ServiceSite.ServiceSiteProvider record. (The Site has the location)"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.healthcareService",
              "short": "The list of healthcare services that this worker provides for this role's Organization/Location(s)",
              "definition": "The list of healthcare services that this worker provides for this role's Organization/Location(s).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./target[classCode=\"indirectAuthority].id?"
                }
              ]
            },
            {
              "path": "Practitioner.qualification",
              "short": "Qualifications obtained by training and certification",
              "definition": "Qualifications obtained by training and certification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "CER?"
                },
                {
                  "identity": "rim",
                  "map": "./indirectAuthority/QualifiedEntity[code < qualifiedEntity]"
                },
                {
                  "identity": "servd",
                  "map": "./Qualifications"
                }
              ]
            },
            {
              "path": "Practitioner.qualification.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Practitioner.qualification.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Practitioner.qualification.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Practitioner.qualification.identifier",
              "short": "An identifier for this qualification for the practitioner",
              "definition": "An identifier that applies to this person's qualification in this role.",
              "requirements": "Often, specific identities are assigned for the qualification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./id"
                }
              ]
            },
            {
              "path": "Practitioner.qualification.code",
              "short": "Coded representation of the qualification",
              "definition": "Coded representation of the qualification.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Specific qualification the practitioner has to provide a service",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/anzsco-occupations"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./code"
                },
                {
                  "identity": "servd",
                  "map": "./Qualifications.Value"
                }
              ]
            },
            {
              "path": "Practitioner.qualification.period",
              "short": "Period during which the qualification is valid",
              "definition": "Period during which the qualification is valid.",
              "requirements": "Qualifications are often for a limited period of time, and can be revoked.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./effectiveTime"
                },
                {
                  "identity": "servd",
                  "map": "./Qualifications.StartDate and ./Qualifications.EndDate"
                }
              ]
            },
            {
              "path": "Practitioner.qualification.issuer",
              "short": "Organization that regulates and issues the qualification",
              "definition": "Organization that regulates and issues the qualification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./scoper"
                }
              ]
            },
            {
              "path": "Practitioner.communication",
              "short": "A language the practitioner is able to use in patient communication",
              "definition": "A language the practitioner is able to use in patient communication.",
              "comments": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.",
              "requirements": "Knowing which language a practitioner speaks can help in facilitating communication with patients.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-15, NK1-20, LAN-2"
                },
                {
                  "identity": "rim",
                  "map": "./languageCode"
                },
                {
                  "identity": "servd",
                  "map": "./Languages.LanguageSpokenCode"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Practitioner",
              "short": "A person with a  formal responsibility in the provisioning of healthcare or related services",
              "definition": "A person who is directly or indirectly involved in the provisioning of healthcare.",
              "comments": "Note that a cab driver no longer fits the bill. You probably would be interested in the organization rather than the individual?",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRD (as one example)"
                },
                {
                  "identity": "rim",
                  "map": "Role"
                },
                {
                  "identity": "servd",
                  "map": "Provider"
                },
                {
                  "identity": "w5",
                  "map": "administrative.individual"
                }
              ]
            },
            {
              "path": "Practitioner.identifier",
              "short": "A identifier for the person as this agent",
              "definition": "An identifier that applies to this person in this role.",
              "requirements": "Often, specific identities are assigned for the agent.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRD-7 (or XCN.1)"
                },
                {
                  "identity": "rim",
                  "map": "./id"
                },
                {
                  "identity": "servd",
                  "map": "./Identifiers"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Practitioner.active",
              "short": "Whether this practitioner's record is in active use",
              "definition": "Whether this practitioner's record is in active use.",
              "comments": "Default is true. \n\nIf the practitioner is not in use by one organization, then it should mark the period on the PractitonerRole with an end date (even if they are active) as they may be active in another role.",
              "requirements": "Need to be able to mark a practitioner record as not to be used because it was created in error.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": true,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./StatusCode"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Practitioner.name",
              "short": "A name associated with the person",
              "definition": "A name associated with the person.",
              "requirements": "Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that person.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "HumanName"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "XCN Components"
                },
                {
                  "identity": "rim",
                  "map": "./name"
                },
                {
                  "identity": "servd",
                  "map": "./PreferredName (GivenNames, FamilyName, TitleCode)"
                }
              ]
            },
            {
              "path": "Practitioner.telecom",
              "short": "A contact detail for the practitioner",
              "definition": "A contact detail for the practitioner, e.g. a telephone number or an email address.",
              "comments": "Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification.",
              "requirements": "Need to know how to reach a practitioner.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRT-15, STF-10, ROL-12"
                },
                {
                  "identity": "rim",
                  "map": "./telecom"
                },
                {
                  "identity": "servd",
                  "map": "./ContactPoints"
                }
              ]
            },
            {
              "path": "Practitioner.address",
              "short": "Where practitioner can be found/visited",
              "definition": "The postal address where the practitioner can be found or visited or to which mail can be delivered.",
              "requirements": "Need to keep track where the practitioner can found during work or for directing mail.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-24, STF-11, ROL-11, PRT-14"
                },
                {
                  "identity": "rim",
                  "map": "./addr"
                },
                {
                  "identity": "servd",
                  "map": "./Addresses"
                }
              ]
            },
            {
              "path": "Practitioner.gender",
              "short": "male | female | other | unknown",
              "definition": "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.",
              "requirements": "Needed to address the person correctly.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The gender of a person used for administrative purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/administrative-gender"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "STF-5"
                },
                {
                  "identity": "rim",
                  "map": "./administrativeGender"
                },
                {
                  "identity": "servd",
                  "map": "./GenderCode"
                }
              ]
            },
            {
              "path": "Practitioner.birthDate",
              "short": "The date  on which the practitioner was born",
              "definition": "The date of birth for the practitioner.",
              "requirements": "Needed for identification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "STF-6"
                },
                {
                  "identity": "rim",
                  "map": "./birthTime"
                },
                {
                  "identity": "servd",
                  "map": "(not represented in ServD)"
                }
              ]
            },
            {
              "path": "Practitioner.photo",
              "short": "Image of the person",
              "definition": "Image of the person.",
              "requirements": "Many EHR systems have the capability to capture an image of patients and personnel. Fits with newer social media usage too.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./subjectOf/ObservationEvent[code=\"photo\"]/value"
                },
                {
                  "identity": "servd",
                  "map": "./ImageURI (only supports the URI reference)"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole",
              "short": "Roles/organizations the practitioner is associated with",
              "definition": "The list of roles/organizations that the practitioner is associated with.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".(Role)"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.managingOrganization",
              "short": "Organization where the roles are performed",
              "definition": "The organization where the Practitioner performs the roles associated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "scopingOrganization"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.role",
              "short": "Roles which this practitioner may perform",
              "definition": "Roles which this practitioner is authorized to perform for the organization.",
              "comments": "A person may have more than one role. At least one role is required.",
              "requirements": "Need to know what authority the practitioner has - what can they do?",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The role a person plays representing an organization",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/practitioner-role"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRD-1 / STF-18  / PRA-3  / PRT-4  / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17"
                },
                {
                  "identity": "rim",
                  "map": "./code"
                },
                {
                  "identity": "servd",
                  "map": "(ServD maps Practitioners and Organizations via another entity, so this concept is not available)"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.specialty",
              "short": "Specific specialty of the practitioner",
              "definition": "Specific specialty of the practitioner.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Specific specialty associated with the agency",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/practitioner-specialty"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRA-5"
                },
                {
                  "identity": "rim",
                  "map": "indirectAuthority/QualifiedEntity[code < Speciality]/code"
                },
                {
                  "identity": "servd",
                  "map": "./Specialty"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.period",
              "short": "The period during which the practitioner is authorized to perform in these role(s)",
              "definition": "The period during which the person is authorized to act as a practitioner in these role(s) for the organization.",
              "requirements": "Even after the agencies is revoked, the fact that it existed must still be recorded.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRD-8/9 / PRA-5.4"
                },
                {
                  "identity": "rim",
                  "map": "./effectiveTime"
                },
                {
                  "identity": "servd",
                  "map": "(ServD maps Practitioners and Organizations via another entity, so this concept is not available)"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.location",
              "short": "The location(s) at which this practitioner provides care",
              "definition": "The location(s) at which this practitioner provides care.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./target[classCode=\"indirectAuthority].source[classCode=SDLOC]"
                },
                {
                  "identity": "servd",
                  "map": "(ServD maps Practitioners and Organizations via another entity, so this concept is not available)<br/> However these are accessed via the Site.ServiceSite.ServiceSiteProvider record. (The Site has the location)"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "Practitioner.practitionerRole.healthcareService",
              "short": "The list of healthcare services that this worker provides for this role's Organization/Location(s)",
              "definition": "The list of healthcare services that this worker provides for this role's Organization/Location(s).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./target[classCode=\"indirectAuthority].id?"
                }
              ]
            },
            {
              "path": "Practitioner.qualification",
              "short": "Qualifications obtained by training and certification",
              "definition": "Qualifications obtained by training and certification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "CER?"
                },
                {
                  "identity": "rim",
                  "map": "./indirectAuthority/QualifiedEntity[code < qualifiedEntity]"
                },
                {
                  "identity": "servd",
                  "map": "./Qualifications"
                }
              ]
            },
            {
              "path": "Practitioner.qualification.identifier",
              "short": "An identifier for this qualification for the practitioner",
              "definition": "An identifier that applies to this person's qualification in this role.",
              "requirements": "Often, specific identities are assigned for the qualification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./id"
                }
              ]
            },
            {
              "path": "Practitioner.qualification.code",
              "short": "Coded representation of the qualification",
              "definition": "Coded representation of the qualification.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Specific qualification the practitioner has to provide a service",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/anzsco-occupations"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./code"
                },
                {
                  "identity": "servd",
                  "map": "./Qualifications.Value"
                }
              ]
            },
            {
              "path": "Practitioner.qualification.period",
              "short": "Period during which the qualification is valid",
              "definition": "Period during which the qualification is valid.",
              "requirements": "Qualifications are often for a limited period of time, and can be revoked.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./effectiveTime"
                },
                {
                  "identity": "servd",
                  "map": "./Qualifications.StartDate and ./Qualifications.EndDate"
                }
              ]
            },
            {
              "path": "Practitioner.qualification.issuer",
              "short": "Organization that regulates and issues the qualification",
              "definition": "Organization that regulates and issues the qualification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./scoper"
                }
              ]
            },
            {
              "path": "Practitioner.communication",
              "short": "A language the practitioner is able to use in patient communication",
              "definition": "A language the practitioner is able to use in patient communication.",
              "comments": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.",
              "requirements": "Knowing which language a practitioner speaks can help in facilitating communication with patients.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-15, NK1-20, LAN-2"
                },
                {
                  "identity": "rim",
                  "map": "./languageCode"
                },
                {
                  "identity": "servd",
                  "map": "./Languages.LanguageSpokenCode"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Procedure",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Procedure",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Procedure",
        "name": "Procedure",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Procedure Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Procedure",
              "short": "An action that is being or was performed on a patient",
              "definition": "An action that is or was performed on a patient. This can be a physical intervention like an operation, or less invasive like counseling or hypnotherapy.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "reasonNotPerformed.empty() or notPerformed = 'true'"
                    }
                  ],
                  "key": "pro-1",
                  "severity": "error",
                  "human": "Reason not performed is only permitted if notPerformed indicator is true",
                  "xpath": "not(exists(f:reasonNotPerformed)) or f:notPerformed/@value=true()"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Procedure[moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "Procedure.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Procedure.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Procedure.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Procedure.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Procedure.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Procedure.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Procedure.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Procedure.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Procedure.identifier",
              "short": "External Identifiers for this procedure",
              "definition": "This records identifiers associated with this procedure that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "requirements": "Need to allow connection to a wider workflow.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Some combination of ORC-2 / ORC-3 / OBR-2 / OBR-3 / IPC-1 / IPC-2 / IPC-3 / IPC-4"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Procedure.subject",
              "short": "Who the procedure was performed on",
              "definition": "The person, animal or group on which the procedure was performed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Procedure.status",
              "short": "in-progress | aborted | completed | entered-in-error",
              "definition": "A code specifying the state of the procedure. Generally this will be in-progress or completed state.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A code specifying the state of the procedure.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-status"
                }
              }
            },
            {
              "path": "Procedure.category",
              "short": "Classification of the procedure",
              "definition": "A code that classifies the procedure for searching, sorting and display purposes (e.g. \"Surgical Procedure\").",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that classifies a procedure for searching, sorting and display purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-category"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
                }
              ]
            },
            {
              "path": "Procedure.code",
              "short": "Identification of the procedure",
              "definition": "The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. \"Laparoscopic Appendectomy\").",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code to identify a specific procedure .",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-44/OBR-45"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Procedure.notPerformed",
              "short": "True if procedure was not performed as scheduled",
              "definition": "Set this to true if the record is saying that the procedure was NOT performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false,
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".actionNegationInd"
                }
              ]
            },
            {
              "path": "Procedure.reasonNotPerformed",
              "short": "Reason procedure was not performed",
              "definition": "A code indicating why the procedure was not performed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "pro-1"
              ],
              "binding": {
                "strength": "example",
                "description": "A code that identifies the reason a procedure was not performed.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-not-performed-reason"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".reason.Observation.value"
                }
              ]
            },
            {
              "path": "Procedure.bodySite",
              "short": "Target body sites",
              "definition": "Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-20"
                },
                {
                  "identity": "rim",
                  "map": ".targetSiteCode"
                }
              ]
            },
            {
              "path": "Procedure.reason[x]",
              "short": "Reason procedure performed",
              "definition": "The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text.",
              "comments": "e.g. endoscopy for dilatation and biopsy, combination diagnosis and therapeutic.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that identifies the reason a procedure is  required.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-reason"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".reasonCode"
                }
              ]
            },
            {
              "path": "Procedure.performer",
              "short": "The people who performed the procedure",
              "definition": "Limited to 'real' people rather than equipment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM]"
                }
              ]
            },
            {
              "path": "Procedure.performer.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Procedure.performer.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Procedure.performer.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Procedure.performer.actor",
              "short": "The reference to the practitioner",
              "definition": "The practitioner who was involved in the procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-19/PRT-5"
                },
                {
                  "identity": "rim",
                  "map": ".role"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Procedure.performer.role",
              "short": "The role the actor was in",
              "definition": "For example: surgeon, anaethetist, endoscopist.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that identifies the role of a performer of the procedure.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/performer-role"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Some combination of STF-18 / PRA-3 / PRT-4 / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17 / OBX-25"
                },
                {
                  "identity": "rim",
                  "map": ".functionCode"
                }
              ]
            },
            {
              "path": "Procedure.performed[x]",
              "short": "Date/Period the procedure was performed",
              "definition": "The date(time)/period over which the procedure was performed. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-7"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Procedure.encounter",
              "short": "The encounter associated with the procedure",
              "definition": "The encounter during which the procedure was performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Procedure.location",
              "short": "Where the procedure happened",
              "definition": "The location where the procedure actually happened.  E.g. a newborn at home, a tracheostomy at a restaurant.",
              "requirements": "Ties a procedure to where the records are likely kept.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "Procedure.outcome",
              "short": "The result of procedure",
              "definition": "The outcome of the procedure - did it resolve reasons for the procedure being performed?",
              "comments": "If outcome contains narrative text only, it can be captured using the CodeableConcept.text.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "An outcome of a procedure - whether it was resolved or otherwise.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-outcome"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=OUT].target.text"
                }
              ]
            },
            {
              "path": "Procedure.report",
              "short": "Any report resulting from the procedure",
              "definition": "This could be a histology result, pathology report, surgical report, etc..",
              "comments": "There could potentially be multiple reports - e.g. if this was a procedure which took multiple biopsies resulting in a number of anatomical pathology reports.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "Procedure.complication",
              "short": "Complication following the procedure",
              "definition": "Any complications that occurred during the procedure, or in the immediate post-performance period. These are generally tracked separately from the notes, which will typically describe the procedure itself rather than any 'post procedure' issues.",
              "comments": "If complications are only expressed by the narrative text, they can be captured using the CodeableConcept.text.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes describing complications that resulted from a procedure.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Need specialization of OUT for this."
                }
              ]
            },
            {
              "path": "Procedure.followUp",
              "short": "Instructions for follow up",
              "definition": "If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or could potentially be more complex in which case the CarePlan resource can be used.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Specific follow up required for a procedure e.g. removal of sutures.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-followup"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=ACT, moodCode=INT].code"
                }
              ]
            },
            {
              "path": "Procedure.request",
              "short": "A request for this procedure",
              "definition": "A reference to a resource that contains details of the request for this procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/CarePlan"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                }
              ]
            },
            {
              "path": "Procedure.notes",
              "short": "Additional information about the procedure",
              "definition": "Any other notes about the procedure.  E.g. the operative notes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NTE"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            },
            {
              "path": "Procedure.focalDevice",
              "short": "Device changed in procedure",
              "definition": "A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Procedure.focalDevice.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Procedure.focalDevice.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Procedure.focalDevice.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Procedure.focalDevice.action",
              "short": "Kind of change to device",
              "definition": "The kind of change that happened to the device during the procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A kind of change that happened to the device during the procedure.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/device-action"
                }
              }
            },
            {
              "path": "Procedure.focalDevice.manipulated",
              "short": "Device that was changed",
              "definition": "The device that was manipulated (changed) during the procedure.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ]
            },
            {
              "path": "Procedure.used",
              "short": "Items used during procedure",
              "definition": "Identifies medications, devices and any other substance used as part of the procedure.",
              "comments": "For devices actually implanted or removed, use Procedure.device.",
              "requirements": "Used for tracking contamination, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Procedure",
              "short": "An action that is being or was performed on a patient",
              "definition": "An action that is or was performed on a patient. This can be a physical intervention like an operation, or less invasive like counseling or hypnotherapy.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "reasonNotPerformed.empty() or notPerformed = 'true'"
                    }
                  ],
                  "key": "pro-1",
                  "severity": "error",
                  "human": "Reason not performed is only permitted if notPerformed indicator is true",
                  "xpath": "not(exists(f:reasonNotPerformed)) or f:notPerformed/@value=true()"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Procedure[moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "Procedure.identifier",
              "short": "External Identifiers for this procedure",
              "definition": "This records identifiers associated with this procedure that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "requirements": "Need to allow connection to a wider workflow.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Some combination of ORC-2 / ORC-3 / OBR-2 / OBR-3 / IPC-1 / IPC-2 / IPC-3 / IPC-4"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Procedure.subject",
              "short": "Who the procedure was performed on",
              "definition": "The person, animal or group on which the procedure was performed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Procedure.status",
              "short": "in-progress | aborted | completed | entered-in-error",
              "definition": "A code specifying the state of the procedure. Generally this will be in-progress or completed state.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A code specifying the state of the procedure.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-status"
                }
              }
            },
            {
              "path": "Procedure.category",
              "short": "Classification of the procedure",
              "definition": "A code that classifies the procedure for searching, sorting and display purposes (e.g. \"Surgical Procedure\").",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that classifies a procedure for searching, sorting and display purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-category"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
                }
              ]
            },
            {
              "path": "Procedure.code",
              "short": "Identification of the procedure",
              "definition": "The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. \"Laparoscopic Appendectomy\").",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code to identify a specific procedure .",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-code"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-44/OBR-45"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Procedure.notPerformed",
              "short": "True if procedure was not performed as scheduled",
              "definition": "Set this to true if the record is saying that the procedure was NOT performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false,
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".actionNegationInd"
                }
              ]
            },
            {
              "path": "Procedure.reasonNotPerformed",
              "short": "Reason procedure was not performed",
              "definition": "A code indicating why the procedure was not performed.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "condition": [
                "pro-1"
              ],
              "binding": {
                "strength": "example",
                "description": "A code that identifies the reason a procedure was not performed.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-not-performed-reason"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".reason.Observation.value"
                }
              ]
            },
            {
              "path": "Procedure.bodySite",
              "short": "Target body sites",
              "definition": "Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-20"
                },
                {
                  "identity": "rim",
                  "map": ".targetSiteCode"
                }
              ]
            },
            {
              "path": "Procedure.reason[x]",
              "short": "Reason procedure performed",
              "definition": "The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text.",
              "comments": "e.g. endoscopy for dilatation and biopsy, combination diagnosis and therapeutic.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that identifies the reason a procedure is  required.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-reason"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".reasonCode"
                }
              ]
            },
            {
              "path": "Procedure.performer",
              "short": "The people who performed the procedure",
              "definition": "Limited to 'real' people rather than equipment.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM]"
                }
              ]
            },
            {
              "path": "Procedure.performer.actor",
              "short": "The reference to the practitioner",
              "definition": "The practitioner who was involved in the procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-19/PRT-5"
                },
                {
                  "identity": "rim",
                  "map": ".role"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Procedure.performer.role",
              "short": "The role the actor was in",
              "definition": "For example: surgeon, anaethetist, endoscopist.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that identifies the role of a performer of the procedure.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/performer-role"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Some combination of STF-18 / PRA-3 / PRT-4 / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17 / OBX-25"
                },
                {
                  "identity": "rim",
                  "map": ".functionCode"
                }
              ]
            },
            {
              "path": "Procedure.performed[x]",
              "short": "Date/Period the procedure was performed",
              "definition": "The date(time)/period over which the procedure was performed. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-7"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Procedure.encounter",
              "short": "The encounter associated with the procedure",
              "definition": "The encounter during which the procedure was performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "Procedure.location",
              "short": "Where the procedure happened",
              "definition": "The location where the procedure actually happened.  E.g. a newborn at home, a tracheostomy at a restaurant.",
              "requirements": "Ties a procedure to where the records are likely kept.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "path": "Procedure.outcome",
              "short": "The result of procedure",
              "definition": "The outcome of the procedure - did it resolve reasons for the procedure being performed?",
              "comments": "If outcome contains narrative text only, it can be captured using the CodeableConcept.text.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "An outcome of a procedure - whether it was resolved or otherwise.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-outcome"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=OUT].target.text"
                }
              ]
            },
            {
              "path": "Procedure.report",
              "short": "Any report resulting from the procedure",
              "definition": "This could be a histology result, pathology report, surgical report, etc..",
              "comments": "There could potentially be multiple reports - e.g. if this was a procedure which took multiple biopsies resulting in a number of anatomical pathology reports.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "Procedure.complication",
              "short": "Complication following the procedure",
              "definition": "Any complications that occurred during the procedure, or in the immediate post-performance period. These are generally tracked separately from the notes, which will typically describe the procedure itself rather than any 'post procedure' issues.",
              "comments": "If complications are only expressed by the narrative text, they can be captured using the CodeableConcept.text.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes describing complications that resulted from a procedure.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/condition-code"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Need specialization of OUT for this."
                }
              ]
            },
            {
              "path": "Procedure.followUp",
              "short": "Instructions for follow up",
              "definition": "If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or could potentially be more complex in which case the CarePlan resource can be used.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Specific follow up required for a procedure e.g. removal of sutures.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-followup"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=ACT, moodCode=INT].code"
                }
              ]
            },
            {
              "path": "Procedure.request",
              "short": "A request for this procedure",
              "definition": "A reference to a resource that contains details of the request for this procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/CarePlan"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/DiagnosticOrder"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
                  ]
                }
              ]
            },
            {
              "path": "Procedure.notes",
              "short": "Additional information about the procedure",
              "definition": "Any other notes about the procedure.  E.g. the operative notes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NTE"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            },
            {
              "path": "Procedure.focalDevice",
              "short": "Device changed in procedure",
              "definition": "A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "Procedure.focalDevice.action",
              "short": "Kind of change to device",
              "definition": "The kind of change that happened to the device during the procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A kind of change that happened to the device during the procedure.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/device-action"
                }
              }
            },
            {
              "path": "Procedure.focalDevice.manipulated",
              "short": "Device that was changed",
              "definition": "The device that was manipulated (changed) during the procedure.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ]
            },
            {
              "path": "Procedure.used",
              "short": "Items used during procedure",
              "definition": "Identifies medications, devices and any other substance used as part of the procedure.",
              "comments": "For devices actually implanted or removed, use Procedure.device.",
              "requirements": "Used for tracking contamination, etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ProcedureRequest",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest",
        "name": "ProcedureRequest",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ProcedureRequest Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "quick",
            "uri": "http://wiki.siframework.org/CQF",
            "name": "Quality Improvement and Clinical Knowledge (QUICK)"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ProcedureRequest",
              "short": "A request for a procedure to be performed",
              "definition": "A request for a procedure to be performed. May be a proposal or an order.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "ProcedureRequest.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcedureRequest.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcedureRequest.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ProcedureRequest.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ProcedureRequest.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ProcedureRequest.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ProcedureRequest.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ProcedureRequest.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ProcedureRequest.identifier",
              "short": "Unique identifier for the request",
              "definition": "Identifiers assigned to this order by the order or by the receiver.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.identifier"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ProcedureRequest.subject",
              "short": "Who the procedure should be done to",
              "definition": "The person, animal or group that should receive the procedure.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.subject"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "ProcedureRequest.code",
              "short": "What procedure to perform",
              "definition": "The specific procedure that is ordered. Use text if the exact nature of the procedure cannot be coded.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code to identify a specific procedure .",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-code"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Procedure.procedureCode"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "ProcedureRequest.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).",
              "comments": "Only used if not implicit in the code found in ProcedureRequest.type.",
              "requirements": "Knowing where the procedure is made is important for tracking if multiple sites are possible.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that identifies the anatomical location.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Procedure.targetBodySite"
                },
                {
                  "identity": "rim",
                  "map": "targetSiteCode"
                }
              ]
            },
            {
              "path": "ProcedureRequest.reason[x]",
              "short": "Why procedure should occur",
              "definition": "The reason why the procedure is being proposed or ordered. This procedure request may be motivated by a Condition for instance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that explains the reason why a procedure is  required.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-reason"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Action.indication.reason"
                }
              ]
            },
            {
              "path": "ProcedureRequest.scheduled[x]",
              "short": "When procedure should occur",
              "definition": "The timing schedule for the proposed or ordered procedure. The Schedule data type allows many different expressions.  E.g. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "Timing"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Procedure.procedureSchedule"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "ProcedureRequest.encounter",
              "short": "Encounter request created during",
              "definition": "The encounter within which the procedure proposal or request was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.encounter"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "ProcedureRequest.performer",
              "short": "Who should perform the procedure",
              "definition": "For example, the surgeon, anaethetist, endoscopist, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "ProcedureRequest.status",
              "short": "proposed | draft | requested | received | accepted | in-progress | completed | suspended | rejected | aborted",
              "definition": "The status of the order.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the request.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-request-status"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Action.currentStatus"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ProcedureRequest.notes",
              "short": "Additional information about desired procedure",
              "definition": "Any other notes associated with this proposal or order - e.g. provider instructions.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.additionalText"
                }
              ]
            },
            {
              "path": "ProcedureRequest.asNeeded[x]",
              "short": "Preconditions for procedure",
              "definition": "If a CodeableConcept is present, it indicates the pre-condition for performing the procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "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."
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Proposal.prnReason.reason"
                }
              ]
            },
            {
              "path": "ProcedureRequest.orderedOn",
              "short": "When request was created",
              "definition": "The time when the request was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Proposal.proposedAtTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "ProcedureRequest.orderer",
              "short": "Who made request",
              "definition": "The healthcare professional responsible for proposing or ordering the procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.statementAuthor"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "ProcedureRequest.priority",
              "short": "routine | urgent | stat | asap",
              "definition": "The clinical priority associated with this order.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The priority of the request.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-request-priority"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Proposal.urgency"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ProcedureRequest",
              "short": "A request for a procedure to be performed",
              "definition": "A request for a procedure to be performed. May be a proposal or an order.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "ProcedureRequest.identifier",
              "short": "Unique identifier for the request",
              "definition": "Identifiers assigned to this order by the order or by the receiver.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.identifier"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ProcedureRequest.subject",
              "short": "Who the procedure should be done to",
              "definition": "The person, animal or group that should receive the procedure.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.subject"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "ProcedureRequest.code",
              "short": "What procedure to perform",
              "definition": "The specific procedure that is ordered. Use text if the exact nature of the procedure cannot be coded.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code to identify a specific procedure .",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-code"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Procedure.procedureCode"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "ProcedureRequest.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).",
              "comments": "Only used if not implicit in the code found in ProcedureRequest.type.",
              "requirements": "Knowing where the procedure is made is important for tracking if multiple sites are possible.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that identifies the anatomical location.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Procedure.targetBodySite"
                },
                {
                  "identity": "rim",
                  "map": "targetSiteCode"
                }
              ]
            },
            {
              "path": "ProcedureRequest.reason[x]",
              "short": "Why procedure should occur",
              "definition": "The reason why the procedure is being proposed or ordered. This procedure request may be motivated by a Condition for instance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A code that explains the reason why a procedure is  required.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-reason"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Action.indication.reason"
                }
              ]
            },
            {
              "path": "ProcedureRequest.scheduled[x]",
              "short": "When procedure should occur",
              "definition": "The timing schedule for the proposed or ordered procedure. The Schedule data type allows many different expressions.  E.g. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                },
                {
                  "code": "Timing"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Procedure.procedureSchedule"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "ProcedureRequest.encounter",
              "short": "Encounter request created during",
              "definition": "The encounter within which the procedure proposal or request was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.encounter"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "ProcedureRequest.performer",
              "short": "Who should perform the procedure",
              "definition": "For example, the surgeon, anaethetist, endoscopist, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "ProcedureRequest.status",
              "short": "proposed | draft | requested | received | accepted | in-progress | completed | suspended | rejected | aborted",
              "definition": "The status of the order.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the request.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-request-status"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Action.currentStatus"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ProcedureRequest.notes",
              "short": "Additional information about desired procedure",
              "definition": "Any other notes associated with this proposal or order - e.g. provider instructions.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Annotation"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.additionalText"
                }
              ]
            },
            {
              "path": "ProcedureRequest.asNeeded[x]",
              "short": "Preconditions for procedure",
              "definition": "If a CodeableConcept is present, it indicates the pre-condition for performing the procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "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."
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Proposal.prnReason.reason"
                }
              ]
            },
            {
              "path": "ProcedureRequest.orderedOn",
              "short": "When request was created",
              "definition": "The time when the request was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Proposal.proposedAtTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "ProcedureRequest.orderer",
              "short": "Who made request",
              "definition": "The healthcare professional responsible for proposing or ordering the procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "quick",
                  "map": "ClinicalStatement.statementAuthor"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "ProcedureRequest.priority",
              "short": "routine | urgent | stat | asap",
              "definition": "The clinical priority associated with this order.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The priority of the request.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/procedure-request-priority"
                }
              },
              "mapping": [
                {
                  "identity": "quick",
                  "map": "Proposal.urgency"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ProcessRequest",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ProcessRequest",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ProcessRequest",
        "name": "ProcessRequest",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ProcessRequest Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "cdanetv4",
            "uri": "http://www.cda-adc.ca/en/services/cdanet/",
            "name": "Canadian Dental Association eclaims standard"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ProcessRequest",
              "short": "Process request",
              "definition": "This resource provides the target, request and response, and action details for an action to be performed by the target on or about existing resources.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "ProcessRequest.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ProcessRequest.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ProcessRequest.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ProcessRequest.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ProcessRequest.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ProcessRequest.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ProcessRequest.action",
              "short": "cancel | poll | reprocess | status",
              "definition": "The type of processing action being requested, for example Reversal, Readjudication, StatusRequest,PendedRequest.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "List of allowable action which this resource can request.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/actionlist"
                }
              }
            },
            {
              "path": "ProcessRequest.identifier",
              "short": "Business Identifier",
              "definition": "The ProcessRequest business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ProcessRequest.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ProcessRequest.created",
              "short": "Creation date",
              "definition": "The date when this resource was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.target",
              "short": "Target of the request",
              "definition": "The organization which is the target of the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.provider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the action specified in thise request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "ProcessRequest.organization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the action speccified in thise request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.request",
              "short": "Request reference",
              "definition": "Reference of resource which is the target or subject of this action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.response",
              "short": "Response reference",
              "definition": "Reference of a prior response to resource which is the target or subject of this action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.nullify",
              "short": "Nullify",
              "definition": "If true remove all history excluding audit.",
              "requirements": "Some resources must not simply be reversed in a processing or accounting sense but rather must have all history removed, such as the accidental submission of sensitive and/or wrong information. If the receiver cannot comply with a Nullify request then they must reject the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.reference",
              "short": "Reference number/string",
              "definition": "A reference to supply which authenticates the process.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Items"
                }
              ],
              "path": "ProcessRequest.item",
              "short": "Items to re-adjudicate",
              "definition": "List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.item.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ProcessRequest.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ProcessRequest.item.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ProcessRequest.item.sequenceLinkId",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.include",
              "short": "Resource type(s) to include",
              "definition": "Names of resource types to include.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.exclude",
              "short": "Resource type(s) to exclude",
              "definition": "Names of resource types to exclude.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.period",
              "short": "Period",
              "definition": "A period of time during which the fulfilling resources would have been created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ProcessRequest",
              "short": "Process request",
              "definition": "This resource provides the target, request and response, and action details for an action to be performed by the target on or about existing resources.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "ProcessRequest.action",
              "short": "cancel | poll | reprocess | status",
              "definition": "The type of processing action being requested, for example Reversal, Readjudication, StatusRequest,PendedRequest.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "List of allowable action which this resource can request.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/actionlist"
                }
              }
            },
            {
              "path": "ProcessRequest.identifier",
              "short": "Business Identifier",
              "definition": "The ProcessRequest business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ProcessRequest.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ProcessRequest.created",
              "short": "Creation date",
              "definition": "The date when this resource was created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.target",
              "short": "Target of the request",
              "definition": "The organization which is the target of the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.provider",
              "short": "Responsible practitioner",
              "definition": "The practitioner who is responsible for the action specified in thise request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "ProcessRequest.organization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the action speccified in thise request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.request",
              "short": "Request reference",
              "definition": "Reference of resource which is the target or subject of this action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.response",
              "short": "Response reference",
              "definition": "Reference of a prior response to resource which is the target or subject of this action.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.nullify",
              "short": "Nullify",
              "definition": "If true remove all history excluding audit.",
              "requirements": "Some resources must not simply be reversed in a processing or accounting sense but rather must have all history removed, such as the accidental submission of sensitive and/or wrong information. If the receiver cannot comply with a Nullify request then they must reject the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.reference",
              "short": "Reference number/string",
              "definition": "A reference to supply which authenticates the process.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                  "valueString": "Items"
                }
              ],
              "path": "ProcessRequest.item",
              "short": "Items to re-adjudicate",
              "definition": "List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.item.sequenceLinkId",
              "short": "Service instance",
              "definition": "A service line number.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.include",
              "short": "Resource type(s) to include",
              "definition": "Names of resource types to include.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.exclude",
              "short": "Resource type(s) to exclude",
              "definition": "Names of resource types to exclude.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessRequest.period",
              "short": "Period",
              "definition": "A period of time during which the fulfilling resources would have been created.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ProcessResponse",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ProcessResponse",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ProcessResponse",
        "name": "ProcessResponse",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ProcessResponse Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "cdanetv4",
            "uri": "http://www.cda-adc.ca/en/services/cdanet/",
            "name": "Canadian Dental Association eclaims standard"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ProcessResponse",
              "short": "ProcessResponse resource",
              "definition": "This resource provides processing status, errors and notes from the processing of a resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "ProcessResponse.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ProcessResponse.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ProcessResponse.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ProcessResponse.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ProcessResponse.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ProcessResponse.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ProcessResponse.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.request",
              "short": "Request reference",
              "definition": "Original request resource reference.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "ProcessResponse.outcome",
              "short": "Processing outcome",
              "definition": "Transaction status: error, complete, held.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Local status of outcome codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/process-outcome"
                }
              }
            },
            {
              "path": "ProcessResponse.disposition",
              "short": "Disposition Message",
              "definition": "A description of the status of the adjudication or processing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ProcessResponse.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ProcessResponse.created",
              "short": "Creation date",
              "definition": "The date when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.organization",
              "short": "Authoring Organization",
              "definition": "The organization who produced this adjudicated response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.requestProvider",
              "short": "Responsible Practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "ProcessResponse.requestOrganization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.form",
              "short": "Printed Form Identifier",
              "definition": "The form to be used for printing the content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The forms codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/forms"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G42"
                }
              ]
            },
            {
              "path": "ProcessResponse.notes",
              "short": "Notes",
              "definition": "Suite of processing note or additional requirements is the processing has been held.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.notes.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ProcessResponse.notes.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "ProcessResponse.notes.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ProcessResponse.notes.type",
              "short": "display | print | printoper",
              "definition": "The note purpose: Print/Display.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The presentation types of notes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/note-type"
                }
              }
            },
            {
              "path": "ProcessResponse.notes.text",
              "short": "Notes text",
              "definition": "The note text.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G32"
                }
              ]
            },
            {
              "path": "ProcessResponse.error",
              "short": "Error code",
              "definition": "Processing errors.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The error codes for adjudication processing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication-error"
                }
              }
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ProcessResponse",
              "short": "ProcessResponse resource",
              "definition": "This resource provides processing status, errors and notes from the processing of a resource.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "ProcessResponse.identifier",
              "short": "Business Identifier",
              "definition": "The Response business identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.request",
              "short": "Request reference",
              "definition": "Original request resource reference.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "A02|G01"
                }
              ]
            },
            {
              "path": "ProcessResponse.outcome",
              "short": "Processing outcome",
              "definition": "Transaction status: error, complete, held.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Local status of outcome codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/process-outcome"
                }
              }
            },
            {
              "path": "ProcessResponse.disposition",
              "short": "Disposition Message",
              "definition": "A description of the status of the adjudication or processing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.ruleset",
              "short": "Resource version",
              "definition": "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ProcessResponse.originalRuleset",
              "short": "Original version",
              "definition": "The style (standard) and version of the original material which was converted into this resource.",
              "requirements": "Knowledge of the original version can inform the processing of this instance so that information which is processable by the originating system may be generated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The static and dynamic model to which contents conform, which may be business version or standard/version.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/ruleset"
                }
              }
            },
            {
              "path": "ProcessResponse.created",
              "short": "Creation date",
              "definition": "The date when the enclosed suite of services were performed or completed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.organization",
              "short": "Authoring Organization",
              "definition": "The organization who produced this adjudicated response.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.requestProvider",
              "short": "Responsible Practitioner",
              "definition": "The practitioner who is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "B01"
                }
              ]
            },
            {
              "path": "ProcessResponse.requestOrganization",
              "short": "Responsible organization",
              "definition": "The organization which is responsible for the services rendered to the patient.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.form",
              "short": "Printed Form Identifier",
              "definition": "The form to be used for printing the content.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The forms codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/forms"
                }
              },
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G42"
                }
              ]
            },
            {
              "path": "ProcessResponse.notes",
              "short": "Notes",
              "definition": "Suite of processing note or additional requirements is the processing has been held.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ProcessResponse.notes.type",
              "short": "display | print | printoper",
              "definition": "The note purpose: Print/Display.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The presentation types of notes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/note-type"
                }
              }
            },
            {
              "path": "ProcessResponse.notes.text",
              "short": "Notes text",
              "definition": "The note text.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "cdanetv4",
                  "map": "G32"
                }
              ]
            },
            {
              "path": "ProcessResponse.error",
              "short": "Error code",
              "definition": "Processing errors.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The error codes for adjudication processing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/adjudication-error"
                }
              }
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Provenance",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Provenance",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Provenance",
        "name": "Provenance",
        "status": "draft",
        "publisher": "Health Level Seven International (Security)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/secure/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Provenance Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w3c.prov",
            "uri": "http://www.w3.org/ns/prov",
            "name": "W3C PROV"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "fhirauditevent",
            "uri": "http://hl7.org/fhir/auditevent",
            "name": "FHIR AuditEvent"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "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.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Activity"
                },
                {
                  "identity": "rim",
                  "map": "ControlAct[isNormalAct() and subsumes(CACT, classCode) and moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.information"
                }
              ]
            },
            {
              "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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Provenance.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "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 may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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.",
              "comments": "Target references are usually version specific, but may 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 may 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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.object.reference"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity Created/Updated"
                },
                {
                  "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": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Provenance.period",
              "short": "When the activity occurred",
              "definition": "The period during which the activity occurred.",
              "comments": "The period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Activity.startTime & Activity.endTime"
                },
                {
                  "identity": "rim",
                  "map": "./effectiveTime[type=IVL_TS]"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Provenance.recorded",
              "short": "When the activity was recorded / updated",
              "definition": "The instant of time at which the activity was recorded.",
              "comments": "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",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.event.dateTime"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.when"
                },
                {
                  "identity": "rim",
                  "map": "unique(./participation[isNormalParticipation() and typeCode=AUT]/time[type=TS])"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "Provenance.reason",
              "short": "Reason the activity is occurring",
              "definition": "The reason that the activity was taking place.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The reason the activity took place.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
                }
              },
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.event.purposeOfEvent"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.Activity"
                },
                {
                  "identity": "rim",
                  "map": "unique(./reasonCode)"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The activity that took place.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ProvenanceEventCurrentState"
                }
              },
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.event.purposeOfEvent"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.Activity"
                },
                {
                  "identity": "rim",
                  "map": "Act.code"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "Provenance.location",
              "short": "Where the activity occurred, if relevant",
              "definition": "Where the activity occurred, if relevant.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.participant.location"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.location"
                },
                {
                  "identity": "rim",
                  "map": "unique(./participation[isNormalParticipation() and typeCode=LOC]/role[isNormalRole() and subsumes(SDLOC, classCode)]/player[isNormalEntity and classCode=\"LOC\" and determinerCode=\"INST\"]"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "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.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.participant.policy"
                },
                {
                  "identity": "rim",
                  "map": "./inboundRelationship[isNormalActRelationship() and typeCode=\"SUBJ\"]/source[isNormalAct and subsumes(POLICY, classCode) and moodCode=EVN]/text[typeCode='ED'/tel"
                }
              ]
            },
            {
              "path": "Provenance.agent",
              "name": "agent",
              "short": "Agents involved in creating resource",
              "definition": "An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, an organization, software, or other entities that may be ascribed responsibility.",
              "comments": "Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.pariticipant"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent"
                },
                {
                  "identity": "rim",
                  "map": "./participation[isNormalParticipation()]  OR  ./outboundRelationship[isNormalActRelationship() and typeCode='DRIV']"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "Provenance.agent.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Provenance.agent.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Provenance.agent.role",
              "short": "What the agents involvement was",
              "definition": "The function of the agent with respect to the activity.",
              "comments": "For example, author, performer, enterer, attester, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The role that a provenance agent played with respect to the activity.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/provenance-agent-role"
                }
              },
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.participant.role"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Attribution"
                },
                {
                  "identity": "rim",
                  "map": "attester: .[self::participation]/typeCode='RESP' author: .[self::participation]/typeCode='AUT' cc: .[self::participation]/typeCode='IRCP' enterer:  .[self::participation]/typeCode='ENT' informant: .[self::participation]/typeCode='INF' performer: .[self::participation]/typeCode='PRF' verifier: .[self::participation]/typeCode='VRF' source: .[self::outboundRelationship]/typeCode=''"
                }
              ]
            },
            {
              "path": "Provenance.agent.actor",
              "short": "Individual, device or organization playing role",
              "definition": "The individual, device or organization that participated in the event.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.participant.reference"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Identity"
                },
                {
                  "identity": "rim",
                  "map": "Person, Practitioner, Organization, Device :* .role [classCode = RoleClassMutualRelationship; role.code and * .scopes[Role](classCode=IDENT) and *.plays [Role.Code]"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Provenance.agent.userId",
              "short": "Authorization-system identifier for the agent",
              "definition": "The identity of the agent as known by the authorization system.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.participant.userId"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Identity"
                },
                {
                  "identity": "rim",
                  "map": "person: .plays:Role(classCode='IDENT').id\npractitioner: ./id"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Provenance.agent.relatedAgent",
              "short": "Track delegation between agents",
              "definition": "A relationship between two the agents referenced in this resource. This is defined to allow for explicit description of the delegation between agents.  For example, this human author used this device, or one person acted on another's behest.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Agent.actedOnBehalfOf"
                },
                {
                  "identity": "rim",
                  "map": ".rolelink"
                }
              ]
            },
            {
              "path": "Provenance.agent.relatedAgent.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Provenance.agent.relatedAgent.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Provenance.agent.relatedAgent.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Provenance.agent.relatedAgent.type",
              "short": "Type of relationship between agents",
              "definition": "The type of relationship between agents.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Type of relationship between two provenance agents.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-RoleLinkType"
                }
              },
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "type"
                },
                {
                  "identity": "rim",
                  "map": ".typeCode"
                }
              ]
            },
            {
              "path": "Provenance.agent.relatedAgent.target",
              "short": "Reference to other agent in this resource by identifier",
              "definition": "An internal reference to another agent listed in this provenance by its identifier.",
              "comments": "The uri has the form #[id] where [id] is on another Provenance.agent in this same resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "responsible"
                },
                {
                  "identity": "rim",
                  "map": ".target"
                }
              ]
            },
            {
              "path": "Provenance.entity",
              "short": "An entity used in this activity",
              "definition": "An entity used in this activity.",
              "comments": "Multiple userIds may be associated with the same Practitioner or other individual across various appearances, each with distinct privileges.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.object"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity"
                },
                {
                  "identity": "rim",
                  "map": "./subjectOf"
                }
              ]
            },
            {
              "path": "Provenance.entity.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Provenance.entity.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Provenance.entity.role",
              "short": "derivation | revision | quotation | source",
              "definition": "How the entity was used during the activity.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "How an entity was used in an activity.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/provenance-entity-role"
                }
              },
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.object.lifecycle"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity.role"
                },
                {
                  "identity": "rim",
                  "map": "./typeCode"
                }
              ]
            },
            {
              "path": "Provenance.entity.type",
              "short": "The type of resource in this entity",
              "definition": "The type of the entity. If the entity is a resource, then this is a resource type.",
              "requirements": "If the type is \"resource\" then the resource itself was the participant. If the type is a type of resource, then the entity identified by the resource is the participant.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The type of an entity used in an activity.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              },
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.object.type"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity.type"
                },
                {
                  "identity": "rim",
                  "map": "./target"
                }
              ]
            },
            {
              "path": "Provenance.entity.reference",
              "short": "Identity of entity",
              "definition": "Identity of the  Entity used. May be a logical or physical uri and maybe absolute or relative.",
              "comments": "Identity may be a reference to a resource or to something else, depending on the type.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.object.reference"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity.Identity"
                },
                {
                  "identity": "rim",
                  "map": "./text/reference"
                }
              ]
            },
            {
              "path": "Provenance.entity.display",
              "short": "Human description of entity",
              "definition": "Human-readable description of the entity.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.object.description"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity.Label"
                },
                {
                  "identity": "rim",
                  "map": "./title"
                }
              ]
            },
            {
              "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.",
              "min": 0,
              "max": "1",
              "nameReference": "agent",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./author/role"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Signature"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./signatureText"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "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.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Activity"
                },
                {
                  "identity": "rim",
                  "map": "ControlAct[isNormalAct() and subsumes(CACT, classCode) and moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.information"
                }
              ]
            },
            {
              "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.",
              "comments": "Target references are usually version specific, but may 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 may 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": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.object.reference"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity Created/Updated"
                },
                {
                  "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": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Provenance.period",
              "short": "When the activity occurred",
              "definition": "The period during which the activity occurred.",
              "comments": "The period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Activity.startTime & Activity.endTime"
                },
                {
                  "identity": "rim",
                  "map": "./effectiveTime[type=IVL_TS]"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Provenance.recorded",
              "short": "When the activity was recorded / updated",
              "definition": "The instant of time at which the activity was recorded.",
              "comments": "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",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.event.dateTime"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.when"
                },
                {
                  "identity": "rim",
                  "map": "unique(./participation[isNormalParticipation() and typeCode=AUT]/time[type=TS])"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "Provenance.reason",
              "short": "Reason the activity is occurring",
              "definition": "The reason that the activity was taking place.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The reason the activity took place.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
                }
              },
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.event.purposeOfEvent"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.Activity"
                },
                {
                  "identity": "rim",
                  "map": "unique(./reasonCode)"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "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",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The activity that took place.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-ProvenanceEventCurrentState"
                }
              },
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.event.purposeOfEvent"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.Activity"
                },
                {
                  "identity": "rim",
                  "map": "Act.code"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "Provenance.location",
              "short": "Where the activity occurred, if relevant",
              "definition": "Where the activity occurred, if relevant.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.participant.location"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Activity.location"
                },
                {
                  "identity": "rim",
                  "map": "unique(./participation[isNormalParticipation() and typeCode=LOC]/role[isNormalRole() and subsumes(SDLOC, classCode)]/player[isNormalEntity and classCode=\"LOC\" and determinerCode=\"INST\"]"
                },
                {
                  "identity": "w5",
                  "map": "where"
                }
              ]
            },
            {
              "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.",
              "comments": "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": "*",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.participant.policy"
                },
                {
                  "identity": "rim",
                  "map": "./inboundRelationship[isNormalActRelationship() and typeCode=\"SUBJ\"]/source[isNormalAct and subsumes(POLICY, classCode) and moodCode=EVN]/text[typeCode='ED'/tel"
                }
              ]
            },
            {
              "path": "Provenance.agent",
              "name": "agent",
              "short": "Agents involved in creating resource",
              "definition": "An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, an organization, software, or other entities that may be ascribed responsibility.",
              "comments": "Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.pariticipant"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent"
                },
                {
                  "identity": "rim",
                  "map": "./participation[isNormalParticipation()]  OR  ./outboundRelationship[isNormalActRelationship() and typeCode='DRIV']"
                },
                {
                  "identity": "w5",
                  "map": "who"
                }
              ]
            },
            {
              "path": "Provenance.agent.role",
              "short": "What the agents involvement was",
              "definition": "The function of the agent with respect to the activity.",
              "comments": "For example, author, performer, enterer, attester, etc.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The role that a provenance agent played with respect to the activity.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/provenance-agent-role"
                }
              },
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.participant.role"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Attribution"
                },
                {
                  "identity": "rim",
                  "map": "attester: .[self::participation]/typeCode='RESP' author: .[self::participation]/typeCode='AUT' cc: .[self::participation]/typeCode='IRCP' enterer:  .[self::participation]/typeCode='ENT' informant: .[self::participation]/typeCode='INF' performer: .[self::participation]/typeCode='PRF' verifier: .[self::participation]/typeCode='VRF' source: .[self::outboundRelationship]/typeCode=''"
                }
              ]
            },
            {
              "path": "Provenance.agent.actor",
              "short": "Individual, device or organization playing role",
              "definition": "The individual, device or organization that participated in the event.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.participant.reference"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Identity"
                },
                {
                  "identity": "rim",
                  "map": "Person, Practitioner, Organization, Device :* .role [classCode = RoleClassMutualRelationship; role.code and * .scopes[Role](classCode=IDENT) and *.plays [Role.Code]"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Provenance.agent.userId",
              "short": "Authorization-system identifier for the agent",
              "definition": "The identity of the agent as known by the authorization system.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.participant.userId"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Agent.Identity"
                },
                {
                  "identity": "rim",
                  "map": "person: .plays:Role(classCode='IDENT').id\npractitioner: ./id"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "Provenance.agent.relatedAgent",
              "short": "Track delegation between agents",
              "definition": "A relationship between two the agents referenced in this resource. This is defined to allow for explicit description of the delegation between agents.  For example, this human author used this device, or one person acted on another's behest.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "Agent.actedOnBehalfOf"
                },
                {
                  "identity": "rim",
                  "map": ".rolelink"
                }
              ]
            },
            {
              "path": "Provenance.agent.relatedAgent.type",
              "short": "Type of relationship between agents",
              "definition": "The type of relationship between agents.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Type of relationship between two provenance agents.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v3-RoleLinkType"
                }
              },
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "type"
                },
                {
                  "identity": "rim",
                  "map": ".typeCode"
                }
              ]
            },
            {
              "path": "Provenance.agent.relatedAgent.target",
              "short": "Reference to other agent in this resource by identifier",
              "definition": "An internal reference to another agent listed in this provenance by its identifier.",
              "comments": "The uri has the form #[id] where [id] is on another Provenance.agent in this same resource.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w3c.prov",
                  "map": "responsible"
                },
                {
                  "identity": "rim",
                  "map": ".target"
                }
              ]
            },
            {
              "path": "Provenance.entity",
              "short": "An entity used in this activity",
              "definition": "An entity used in this activity.",
              "comments": "Multiple userIds may be associated with the same Practitioner or other individual across various appearances, each with distinct privileges.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.object"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity"
                },
                {
                  "identity": "rim",
                  "map": "./subjectOf"
                }
              ]
            },
            {
              "path": "Provenance.entity.role",
              "short": "derivation | revision | quotation | source",
              "definition": "How the entity was used during the activity.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "How an entity was used in an activity.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/provenance-entity-role"
                }
              },
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.object.lifecycle"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity.role"
                },
                {
                  "identity": "rim",
                  "map": "./typeCode"
                }
              ]
            },
            {
              "path": "Provenance.entity.type",
              "short": "The type of resource in this entity",
              "definition": "The type of the entity. If the entity is a resource, then this is a resource type.",
              "requirements": "If the type is \"resource\" then the resource itself was the participant. If the type is a type of resource, then the entity identified by the resource is the participant.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "The type of an entity used in an activity.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              },
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.object.type"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity.type"
                },
                {
                  "identity": "rim",
                  "map": "./target"
                }
              ]
            },
            {
              "path": "Provenance.entity.reference",
              "short": "Identity of entity",
              "definition": "Identity of the  Entity used. May be a logical or physical uri and maybe absolute or relative.",
              "comments": "Identity may be a reference to a resource or to something else, depending on the type.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.object.reference"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity.Identity"
                },
                {
                  "identity": "rim",
                  "map": "./text/reference"
                }
              ]
            },
            {
              "path": "Provenance.entity.display",
              "short": "Human description of entity",
              "definition": "Human-readable description of the entity.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "fhirauditevent",
                  "map": "AuditEvent.object.description"
                },
                {
                  "identity": "w3c.prov",
                  "map": "Entity.Label"
                },
                {
                  "identity": "rim",
                  "map": "./title"
                }
              ]
            },
            {
              "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.",
              "min": 0,
              "max": "1",
              "nameReference": "agent",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./author/role"
                }
              ]
            },
            {
              "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": "*",
              "type": [
                {
                  "code": "Signature"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./signatureText"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/Questionnaire-populate",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "Questionnaire-populate",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/Questionnaire-populate",
        "name": "Populate Questionnaire",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Generates a [[[QuestionnaireResponse]]] instance  based on a specified [[[Questionnaire]]], filling in answers to questions where possible based on information provided as part of the operation or already known by the server about the subject of the [[[Questionnaire]]].  If the operation is not called at the instance level, one and only one of the identifier, questionnaire or questionnaireRef 'in' parameters must be provided. If called at the instance level, these parameters will be ignored. The response will contain a [[[QuestionnaireResponse]]] instance based on the specified [[[Questionnaire]]] and/or an [[[OperationOutcome]]] resource with errors or warnings.  The [[[QuestionnaireResponse]]] instance will be populated with an unanswered set of questions following the group and question structure of the specified [[[Questionnaire]]].  If  *content* parameters were specified or the *local* parameter was set to true, some of the questions may have answers filled in as well.  In the case of repeating questions or groups, typically only one repetition will be provided unless answer values exist that would support populating multiple repetitions.  Population of the [[[QuestionnaireResponse]]] with appropriate data is dependent on the questions and/or groups in the [[[Questionnaire]]] having metadata that allows the server to recognize the questions.  This might be through *Questionnaire.group.question.code*, through extensions such as the [[[http://hl7.org/fhir/StructureDefinition/questionnaire-deReference]]] extension or through use of the [[[ConceptMap]]] resource.  Regardless of the mechanism used to link the questions in a questionnaire to a \"known\" mappable concept, solutions using this operation should ensure that the details of the question and associated linkage element are sufficiently similar as to safely allow auto-population; i.e. the question text and context must be sufficiently the same, the value set for the question must fall within the value set for the mapped element, the data types must be the same or convertible, etc.",
        "code": "populate",
        "notes": "While it is theoretically possible for a [[[QuestionnaireResponse]]] instance to be completely auto-populated and submitted without human review, the intention of this transaction is merely to reduce redundant data entry.  A client **SHOULD** ensure that a human submitter has an opportunity to review the auto-populated answers to confirm correctness as well as to complete or expand on information provided by the auto-population process.  Complex form designs with conditional logic or tight constraints on cardinalities may be challenging to auto-populate.  A server MAY choose to traverse the questionnaire as if it were a human respondent, answering only those questions that are enabled based on previously answered questions.  However, doing so may result in minimal population.  Alternatively, systems may choose to populate all known answers, independent of dependencies and other constraints.  This may cause questions to be answered that should not be answered.  It will be up to the client to appropriately prune the final populated questionnaire once human review has taken place.  Invoking this operation with the ''content'' parameter may involve the disclosure of personally identifiable healthcare information to the system which is performing the population process.  No such disclosures should be made unless the system on which the operation is being invoked is a \"trusted\" system and appropriate agreements are in place to protect the confidentiality of any information shared with that system.",
        "system": false,
        "type": [
          "Questionnaire"
        ],
        "instance": true,
        "parameter": [
          {
            "name": "identifier",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A logical questionnaire identifier (i.e. ''Questionnaire.identifier''). The server must know the questionnaire or be able to retrieve it from other known repositories.",
            "type": "uri"
          },
          {
            "name": "questionnaire",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The [[[Questionnaire]]] is provided directly as part of the request. Servers may choose not to accept questionnaires in this fashion",
            "type": "Questionnaire"
          },
          {
            "name": "questionnaireRef",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The [[[Questionnaire]]] is provided as a resource reference. Servers may choose not to accept questionnaires in this fashion or may fail if they cannot resolve or access the referenced questionnaire.",
            "type": "Reference",
            "profile": {
              "reference": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
            }
          },
          {
            "name": "subject",
            "use": "in",
            "min": 1,
            "max": "1",
            "documentation": "The resource that is to be the *QuestionnaireResponse.subject*. The [[[QuestionnaireResponse]]] instance will reference the provided subject.  In addition, if the *local* parameter is set to true, server information about the specified subject will be used to populate the instance.",
            "type": "Reference"
          },
          {
            "name": "content",
            "use": "in",
            "min": 0,
            "max": "*",
            "documentation": "Resources containing information to be used to help populate the [[[QuestionnaireResponse]]].  These may be FHIR resources or may be binaries containing FHIR documents, CDA documents or other source materials.  Servers may not support all possible source materials and may ignore materials they do not recognize.  (They MAY provide warnings if ignoring submitted resources.)",
            "type": "Reference"
          },
          {
            "name": "local",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "If specified and set to 'true' (and the server is capable), the server should use what resources and other knowledge it has about the referenced subject when pre-populating answers to questions.",
            "type": "boolean"
          },
          {
            "name": "return",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "The partially (or fully)-populated set of answers for the specified Questionnaire",
            "type": "QuestionnaireResponse"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Questionnaire",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Questionnaire",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Questionnaire",
        "name": "Questionnaire",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Questionnaire Resource",
        "requirements": "To support structured, hierarchical registration of data gathered using digital forms and other questionnaires.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Questionnaire",
              "short": "A structured set of questions",
              "definition": "A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.",
              "alias": [
                "Form",
                "CRF",
                "Survey"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "**.linkId.distinct()"
                    }
                  ],
                  "key": "que-2",
                  "severity": "error",
                  "human": "The link ids for groups and questions must be unique within the questionnaire",
                  "xpath": "count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Observation[moodCode=DEF]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.information"
                }
              ]
            },
            {
              "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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Questionnaire.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "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 may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Questionnaire.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Questionnaire.identifier",
              "short": "External identifiers for this questionnaire",
              "definition": "This records identifiers associated with this question set that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "requirements": "Need to allow connection to a wider workflow.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id[use=BUS]"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Questionnaire.version",
              "short": "Logical identifier for this version of Questionnaire",
              "definition": "The version number assigned by the publisher for business reasons.  It may remain the same when the resource is updated.",
              "requirements": "In some cases, separate resource instances might be created for each version (if an older version can be maintained once a new version exists).",
              "alias": [
                "N/A - MIF rather than RIM level"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id[use=VER]"
                },
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "Questionnaire.status",
              "short": "draft | published | retired",
              "definition": "The lifecycle status of the questionnaire as a whole.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Lifecycle status of the questionnaire.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/questionnaire-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish \"in-progress\" from \"published)"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Questionnaire.date",
              "short": "Date this version was authored",
              "definition": "The date that this questionnaire was last changed.",
              "alias": [
                "Date created",
                "Date published",
                "Date issued",
                "Date updated"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "Questionnaire.publisher",
              "short": "Organization/individual who designed the questionnaire",
              "definition": "Organization or person responsible for developing and maintaining the questionnaire.",
              "requirements": "Conveys responsibility for the questions and their organization and also helps evaluate the questionnaire's \"authority\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "Questionnaire.telecom",
              "short": "Contact information of the publisher",
              "definition": "Contact details to assist a user in finding and communicating with the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role.telecom"
                }
              ]
            },
            {
              "path": "Questionnaire.title",
              "short": "Name for the questionnaire",
              "definition": "The name or label associated with this questionnaire.",
              "requirements": "Used for display, searching.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".title"
                }
              ]
            },
            {
              "path": "Questionnaire.concept",
              "short": "Concept that represents the overall questionnaire",
              "definition": "Identifies a how this question or group of questions is known in a particular terminology such as LOINC.",
              "requirements": "Allows linking of the complete Questionnaire resources to formal terminologies.  It's common for \"pannels\" of questions to be identified by a code.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for questionnaires, groups and individual questions",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/questionnaire-questions"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "Questionnaire.subjectType",
              "short": "Resource that can be subject of QuestionnaireResponse",
              "definition": "Identifies the types of subjects that can be the subject of the questionnaire.",
              "comments": "If none are specified, then the subject is unlimited.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=META].target[classCode=OBS, moodCode=DEFN, isCriterion=true].participation.role.classCode"
                }
              ]
            },
            {
              "path": "Questionnaire.item",
              "name": "item",
              "short": "Questions and sections within the Questionnaire",
              "definition": "The questions and groupings of questions that make up the questionnaire.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "que-3"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(type='group' implies item.empty().not()) and (type.log('type')='display' implies item.log('item').empty())"
                    }
                  ],
                  "key": "que-1",
                  "severity": "error",
                  "human": "Group items must have nested items, display items cannot have nested items",
                  "xpath": "not((f:type/@value='group' and not(f:item)) or (f:type/@value='display' and f:item))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "type!='display' or concept.empty()"
                    }
                  ],
                  "key": "que-3",
                  "severity": "error",
                  "human": "Display items cannot have a \"concept\" asserted",
                  "xpath": "not(f:type/@value='display' and f:concept)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(type!='choice' and type!='open-choice') or (options.empty() and option.empty())"
                    }
                  ],
                  "key": "que-5",
                  "severity": "error",
                  "human": "Only 'choice' items can have options",
                  "xpath": "f:type/@value=('choice','open-choice') or not(f:option or f:options)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "option.empty() or options.empty()"
                    }
                  ],
                  "key": "que-4",
                  "severity": "error",
                  "human": "A question cannot have both option and options",
                  "xpath": "not(f:options and f:option)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "type!='display' or (required.empty() and repeats.empty())"
                    }
                  ],
                  "key": "que-6",
                  "severity": "error",
                  "human": "Required and repeat aren't permitted for display items",
                  "xpath": "not(f:type/@value='display' and (f:required or f:repeats))"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=DEF]"
                }
              ]
            },
            {
              "path": "Questionnaire.item.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Questionnaire.item.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Questionnaire.item.linkId",
              "short": "To link questionnaire with questionnaire response",
              "definition": "An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.",
              "comments": "May be omitted if there is no expectation to link answers back to a Questionnaire.  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]]] 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": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "Questionnaire.item.concept",
              "short": "Concept that represents this item within in a questionnaire",
              "definition": "Identifies a how this group of questions is known in a particular terminology such as LOINC.",
              "comments": "The code(s) for the \"root\" group apply to the questionnaire as a whole.",
              "requirements": "Allows linking of groups of questions (and complete Questionnaire resources) to formal terminologies.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "condition": [
                "que-3"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for questionnaires, groups and individual questions",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/questionnaire-questions"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "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 text item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "Questionnaire.item.type",
              "short": "group | display | boolean | decimal | integer | date | dateTime +",
              "definition": "Identifies 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.).",
              "comments": "Additional constraints on the type of answer can be conveyed by extensions.",
              "requirements": "Defines the format in which the user is to be prompted for the answer.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Distinguishes groups from questions and display text and indicates data type for questions",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/item-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A - MIF rather than RIM level"
                }
              ]
            },
            {
              "path": "Questionnaire.item.required",
              "short": "Whether the group must be included in data results",
              "definition": "If true, indicates that the item must be present in a \"completed\" QuestionnaireResponse.  If false, the item may be skipped when answering the questionnaire.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false,
              "condition": [
                "que-6"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Not supported - MIF/templating layer"
                }
              ]
            },
            {
              "path": "Questionnaire.item.repeats",
              "short": "Whether the group may repeat",
              "definition": "Whether the item may occur multiple times in the instance, containing multiple sets of answers.",
              "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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false,
              "condition": [
                "que-6"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Not supported - MIF/templating layer"
                }
              ]
            },
            {
              "path": "Questionnaire.item.options",
              "short": "Valueset containing permitted answers",
              "definition": "Reference to a value set containing a list of codes representing permitted answers for the question.",
              "comments": "LOINC defines many useful value sets for questionnaire response. See [LOINC Answer Lists](loinc.html#alist).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ValueSet"
                  ]
                }
              ],
              "condition": [
                "que-4",
                "que-5"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Not supported - MIF/templating layer to capture value set"
                }
              ]
            },
            {
              "path": "Questionnaire.item.option",
              "short": "Permitted answer",
              "definition": "For a \"choice\" question, identifies one of the permitted answers for the question.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "condition": [
                "que-4",
                "que-5"
              ],
              "binding": {
                "strength": "example",
                "description": "Allowed values to answer questions.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Not supported - MIF/templating layer to capture value set"
                }
              ]
            },
            {
              "path": "Questionnaire.item.item",
              "short": "Nested questionnaire items",
              "definition": "Allows text, questions and other groups to be nested beneath a question or group.",
              "requirements": "Reports can consist of complex nested groups.",
              "min": 0,
              "max": "*",
              "nameReference": "item",
              "condition": [
                "que-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Questionnaire",
              "short": "A structured set of questions",
              "definition": "A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.",
              "alias": [
                "Form",
                "CRF",
                "Survey"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "**.linkId.distinct()"
                    }
                  ],
                  "key": "que-2",
                  "severity": "error",
                  "human": "The link ids for groups and questions must be unique within the questionnaire",
                  "xpath": "count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Observation[moodCode=DEF]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.information"
                }
              ]
            },
            {
              "path": "Questionnaire.identifier",
              "short": "External identifiers for this questionnaire",
              "definition": "This records identifiers associated with this question set that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
              "requirements": "Need to allow connection to a wider workflow.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id[use=BUS]"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Questionnaire.version",
              "short": "Logical identifier for this version of Questionnaire",
              "definition": "The version number assigned by the publisher for business reasons.  It may remain the same when the resource is updated.",
              "requirements": "In some cases, separate resource instances might be created for each version (if an older version can be maintained once a new version exists).",
              "alias": [
                "N/A - MIF rather than RIM level"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id[use=VER]"
                },
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "Questionnaire.status",
              "short": "draft | published | retired",
              "definition": "The lifecycle status of the questionnaire as a whole.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Lifecycle status of the questionnaire.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/questionnaire-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish \"in-progress\" from \"published)"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Questionnaire.date",
              "short": "Date this version was authored",
              "definition": "The date that this questionnaire was last changed.",
              "alias": [
                "Date created",
                "Date published",
                "Date issued",
                "Date updated"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "Questionnaire.publisher",
              "short": "Organization/individual who designed the questionnaire",
              "definition": "Organization or person responsible for developing and maintaining the questionnaire.",
              "requirements": "Conveys responsibility for the questions and their organization and also helps evaluate the questionnaire's \"authority\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "Questionnaire.telecom",
              "short": "Contact information of the publisher",
              "definition": "Contact details to assist a user in finding and communicating with the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role.telecom"
                }
              ]
            },
            {
              "path": "Questionnaire.title",
              "short": "Name for the questionnaire",
              "definition": "The name or label associated with this questionnaire.",
              "requirements": "Used for display, searching.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".title"
                }
              ]
            },
            {
              "path": "Questionnaire.concept",
              "short": "Concept that represents the overall questionnaire",
              "definition": "Identifies a how this question or group of questions is known in a particular terminology such as LOINC.",
              "requirements": "Allows linking of the complete Questionnaire resources to formal terminologies.  It's common for \"pannels\" of questions to be identified by a code.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for questionnaires, groups and individual questions",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/questionnaire-questions"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "Questionnaire.subjectType",
              "short": "Resource that can be subject of QuestionnaireResponse",
              "definition": "Identifies the types of subjects that can be the subject of the questionnaire.",
              "comments": "If none are specified, then the subject is unlimited.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=META].target[classCode=OBS, moodCode=DEFN, isCriterion=true].participation.role.classCode"
                }
              ]
            },
            {
              "path": "Questionnaire.item",
              "name": "item",
              "short": "Questions and sections within the Questionnaire",
              "definition": "The questions and groupings of questions that make up the questionnaire.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "que-3"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(type='group' implies item.empty().not()) and (type.log('type')='display' implies item.log('item').empty())"
                    }
                  ],
                  "key": "que-1",
                  "severity": "error",
                  "human": "Group items must have nested items, display items cannot have nested items",
                  "xpath": "not((f:type/@value='group' and not(f:item)) or (f:type/@value='display' and f:item))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "type!='display' or concept.empty()"
                    }
                  ],
                  "key": "que-3",
                  "severity": "error",
                  "human": "Display items cannot have a \"concept\" asserted",
                  "xpath": "not(f:type/@value='display' and f:concept)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(type!='choice' and type!='open-choice') or (options.empty() and option.empty())"
                    }
                  ],
                  "key": "que-5",
                  "severity": "error",
                  "human": "Only 'choice' items can have options",
                  "xpath": "f:type/@value=('choice','open-choice') or not(f:option or f:options)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "option.empty() or options.empty()"
                    }
                  ],
                  "key": "que-4",
                  "severity": "error",
                  "human": "A question cannot have both option and options",
                  "xpath": "not(f:options and f:option)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "type!='display' or (required.empty() and repeats.empty())"
                    }
                  ],
                  "key": "que-6",
                  "severity": "error",
                  "human": "Required and repeat aren't permitted for display items",
                  "xpath": "not(f:type/@value='display' and (f:required or f:repeats))"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=DEF]"
                }
              ]
            },
            {
              "path": "Questionnaire.item.linkId",
              "short": "To link questionnaire with questionnaire response",
              "definition": "An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.",
              "comments": "May be omitted if there is no expectation to link answers back to a Questionnaire.  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]]] 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": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "Questionnaire.item.concept",
              "short": "Concept that represents this item within in a questionnaire",
              "definition": "Identifies a how this group of questions is known in a particular terminology such as LOINC.",
              "comments": "The code(s) for the \"root\" group apply to the questionnaire as a whole.",
              "requirements": "Allows linking of groups of questions (and complete Questionnaire resources) to formal terminologies.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "condition": [
                "que-3"
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for questionnaires, groups and individual questions",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/questionnaire-questions"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "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 text item.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "Questionnaire.item.type",
              "short": "group | display | boolean | decimal | integer | date | dateTime +",
              "definition": "Identifies 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.).",
              "comments": "Additional constraints on the type of answer can be conveyed by extensions.",
              "requirements": "Defines the format in which the user is to be prompted for the answer.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Distinguishes groups from questions and display text and indicates data type for questions",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/item-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A - MIF rather than RIM level"
                }
              ]
            },
            {
              "path": "Questionnaire.item.required",
              "short": "Whether the group must be included in data results",
              "definition": "If true, indicates that the item must be present in a \"completed\" QuestionnaireResponse.  If false, the item may be skipped when answering the questionnaire.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false,
              "condition": [
                "que-6"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Not supported - MIF/templating layer"
                }
              ]
            },
            {
              "path": "Questionnaire.item.repeats",
              "short": "Whether the group may repeat",
              "definition": "Whether the item may occur multiple times in the instance, containing multiple sets of answers.",
              "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",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false,
              "condition": [
                "que-6"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Not supported - MIF/templating layer"
                }
              ]
            },
            {
              "path": "Questionnaire.item.options",
              "short": "Valueset containing permitted answers",
              "definition": "Reference to a value set containing a list of codes representing permitted answers for the question.",
              "comments": "LOINC defines many useful value sets for questionnaire response. See [LOINC Answer Lists](loinc.html#alist).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/ValueSet"
                  ]
                }
              ],
              "condition": [
                "que-4",
                "que-5"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Not supported - MIF/templating layer to capture value set"
                }
              ]
            },
            {
              "path": "Questionnaire.item.option",
              "short": "Permitted answer",
              "definition": "For a \"choice\" question, identifies one of the permitted answers for the question.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "condition": [
                "que-4",
                "que-5"
              ],
              "binding": {
                "strength": "example",
                "description": "Allowed values to answer questions.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Not supported - MIF/templating layer to capture value set"
                }
              ]
            },
            {
              "path": "Questionnaire.item.item",
              "short": "Nested questionnaire items",
              "definition": "Allows text, questions and other groups to be nested beneath a question or group.",
              "requirements": "Reports can consist of complex nested groups.",
              "min": 0,
              "max": "*",
              "nameReference": "item",
              "condition": [
                "que-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "QuestionnaireResponse",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
        "name": "QuestionnaireResponse",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for QuestionnaireResponse Resource",
        "requirements": "To support structured, hierarchical registration of data gathered using digital forms and other questionnaires.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "QuestionnaireResponse",
              "short": "A structured set of questions and their answers",
              "definition": "A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.",
              "alias": [
                "Form"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Observation[moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.information"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "QuestionnaireResponse.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "QuestionnaireResponse.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "QuestionnaireResponse.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "QuestionnaireResponse.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.identifier",
              "short": "Unique id for this set of answers",
              "definition": "A business identifier assigned to a particular completed (or partially completed) questionnaire.",
              "requirements": "Used for tracking, registration and other business purposes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.questionnaire",
              "short": "Form being answered",
              "definition": "Indicates the Questionnaire resource that defines the form for which answers are being provided.",
              "requirements": "Needed to allow editing of the questionnaire in a manner that enforces the constraints of the original form.",
              "alias": [
                "Form"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./outboundRelationship[typeCode=INST]/target[classCode=OBS, moodCode=DEFN]"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.status",
              "short": "in-progress | completed | amended",
              "definition": "The lifecycle status of the questionnaire response as a whole.",
              "requirements": "The information on Questionnaire resources  may possibly be gathered during multiple sessions and altered after considered being finished. Questionnaire resources with just questions may serve as template forms, with the applicable publication statuses.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Lifecycle status of the questionnaire response.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/questionnaire-answers-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish \"in-progress\" from \"published)"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.subject",
              "short": "The subject of the questions",
              "definition": "The subject of the questionnaire response.  This could be a patient, organization, practitioner, device, etc.  This is who/what the answers apply to, but is not necessarily the source of information.",
              "requirements": "The subject context must be known.",
              "alias": [
                "Patient",
                "Focus"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.author",
              "short": "Person who received and recorded the answers",
              "definition": "Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.",
              "comments": "Mapping a subject's answers to multiple choice options and determining what to put in the textual answer is a matter of interpretation.  Authoring by device would indicate that some portion of the questionnaire had been auto-populated.",
              "requirements": "Need to know who interpreted the subject's answers to the questions in the questionnaire, and selected the appropriate options for answers.",
              "alias": [
                "Laboratory",
                "Service",
                "Practitioner",
                "Department",
                "Company"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.authored",
              "short": "Date this version was authored",
              "definition": "The date and/or time that this version of the questionnaire response was authored.",
              "comments": "May be different from the update time of the resource itself, because that is the status of the collection and authoring.  This element is optional to allow for systems that may not know the value, however it SHOULD be populated if possible.",
              "requirements": "Clinicians need to be able to check the date that the information in the questionnaire was collected, to derive the context of the answers.",
              "alias": [
                "Date Created",
                "Date published",
                "Date Issued",
                "Date updated"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.source",
              "short": "The person who answered the questions",
              "definition": "The person who answered the questions about the subject.",
              "comments": "If not specified, no inference can be made about who provided the data.",
              "requirements": "When answering questions about a subject that is minor, incapable of answering or an animal, another human source is used to answer the questions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=INF].role"
                },
                {
                  "identity": "w5",
                  "map": "who.source"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.encounter",
              "short": "Primary encounter during which the answers were collected",
              "definition": "Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.",
              "requirements": "Some institutions track questionnaires under a specific encounter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item",
              "name": "item",
              "short": "Groups and questions",
              "definition": "Corresponds to a group or question item from the original questionnaire.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.linkId",
              "short": "Corresponding item within Questionnaire",
              "definition": "Identifies the item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.",
              "requirements": "Items can repeat in the answers, so a direct 1..1 correspondence may not exist - requiring correspondence by identifier.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN]"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.text",
              "short": "Name for group or question text",
              "definition": "Text that is displayed above the contents of the group or as the text of the question being answered.",
              "requirements": "Allows the questionnaire response to be read without access to the questionnaire.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.subject",
              "short": "The subject this group's answers are about",
              "definition": "More specific subject this section's answers are about, details the subject given in QuestionnaireResponse.",
              "requirements": "Sometimes a group of answers is about a specific participant, artifact or piece of information in the patient's care or record, e.g. a specific Problem, RelatedPerson, Allergy etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role or .outboundRelationship[typeCode=SUBJ].target"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.answer",
              "short": "The response(s) to the question",
              "definition": "The respondent's answer(s) to the question.",
              "comments": "The value is nested because we cannot have a repeating structure that has variable type.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".value[type=LIST_ANY]"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.answer.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.answer.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.answer.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.answer.value[x]",
              "short": "Single-valued answer to the question",
              "definition": "The answer (or one of the answers) provided by the respondent to the question.",
              "comments": "More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.",
              "requirements": "Ability to retain a single-valued answer to a question.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "decimal"
                },
                {
                  "code": "integer"
                },
                {
                  "code": "date"
                },
                {
                  "code": "dateTime"
                },
                {
                  "code": "instant"
                },
                {
                  "code": "time"
                },
                {
                  "code": "string"
                },
                {
                  "code": "uri"
                },
                {
                  "code": "Attachment"
                },
                {
                  "code": "Coding"
                },
                {
                  "code": "Quantity"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Code indicating the response provided for a question."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".item"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.answer.item",
              "short": "Nested groups and questions",
              "definition": "Nested groups and/or questions found within this particular answer.",
              "requirements": "It is useful to have \"sub-questions\", questions which normally appear when certain answers are given and which collect additional details.",
              "min": 0,
              "max": "*",
              "nameReference": "item",
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=DOCSECT, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.item",
              "short": "Nested questionnaire response items",
              "definition": "Questions or sub-groups nested beneath a question or group.",
              "requirements": "Reports can consist of complex nested groups.",
              "min": 0,
              "max": "*",
              "nameReference": "item",
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "QuestionnaireResponse",
              "short": "A structured set of questions and their answers",
              "definition": "A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.",
              "alias": [
                "Form"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Observation[moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.information"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.identifier",
              "short": "Unique id for this set of answers",
              "definition": "A business identifier assigned to a particular completed (or partially completed) questionnaire.",
              "requirements": "Used for tracking, registration and other business purposes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.questionnaire",
              "short": "Form being answered",
              "definition": "Indicates the Questionnaire resource that defines the form for which answers are being provided.",
              "requirements": "Needed to allow editing of the questionnaire in a manner that enforces the constraints of the original form.",
              "alias": [
                "Form"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "./outboundRelationship[typeCode=INST]/target[classCode=OBS, moodCode=DEFN]"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.status",
              "short": "in-progress | completed | amended",
              "definition": "The lifecycle status of the questionnaire response as a whole.",
              "requirements": "The information on Questionnaire resources  may possibly be gathered during multiple sessions and altered after considered being finished. Questionnaire resources with just questions may serve as template forms, with the applicable publication statuses.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Lifecycle status of the questionnaire response.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/questionnaire-answers-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish \"in-progress\" from \"published)"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.subject",
              "short": "The subject of the questions",
              "definition": "The subject of the questionnaire response.  This could be a patient, organization, practitioner, device, etc.  This is who/what the answers apply to, but is not necessarily the source of information.",
              "requirements": "The subject context must be known.",
              "alias": [
                "Patient",
                "Focus"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.author",
              "short": "Person who received and recorded the answers",
              "definition": "Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.",
              "comments": "Mapping a subject's answers to multiple choice options and determining what to put in the textual answer is a matter of interpretation.  Authoring by device would indicate that some portion of the questionnaire had been auto-populated.",
              "requirements": "Need to know who interpreted the subject's answers to the questions in the questionnaire, and selected the appropriate options for answers.",
              "alias": [
                "Laboratory",
                "Service",
                "Practitioner",
                "Department",
                "Company"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].role"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.authored",
              "short": "Date this version was authored",
              "definition": "The date and/or time that this version of the questionnaire response was authored.",
              "comments": "May be different from the update time of the resource itself, because that is the status of the collection and authoring.  This element is optional to allow for systems that may not know the value, however it SHOULD be populated if possible.",
              "requirements": "Clinicians need to be able to check the date that the information in the questionnaire was collected, to derive the context of the answers.",
              "alias": [
                "Date Created",
                "Date published",
                "Date Issued",
                "Date updated"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=AUT].time"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.source",
              "short": "The person who answered the questions",
              "definition": "The person who answered the questions about the subject.",
              "comments": "If not specified, no inference can be made about who provided the data.",
              "requirements": "When answering questions about a subject that is minor, incapable of answering or an animal, another human source is used to answer the questions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=INF].role"
                },
                {
                  "identity": "w5",
                  "map": "who.source"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.encounter",
              "short": "Primary encounter during which the answers were collected",
              "definition": "Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers.",
              "requirements": "Some institutions track questionnaires under a specific encounter.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item",
              "name": "item",
              "short": "Groups and questions",
              "definition": "Corresponds to a group or question item from the original questionnaire.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.linkId",
              "short": "Corresponding item within Questionnaire",
              "definition": "Identifies the item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.",
              "requirements": "Items can repeat in the answers, so a direct 1..1 correspondence may not exist - requiring correspondence by identifier.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN]"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.text",
              "short": "Name for group or question text",
              "definition": "Text that is displayed above the contents of the group or as the text of the question being answered.",
              "requirements": "Allows the questionnaire response to be read without access to the questionnaire.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.subject",
              "short": "The subject this group's answers are about",
              "definition": "More specific subject this section's answers are about, details the subject given in QuestionnaireResponse.",
              "requirements": "Sometimes a group of answers is about a specific participant, artifact or piece of information in the patient's care or record, e.g. a specific Problem, RelatedPerson, Allergy etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role or .outboundRelationship[typeCode=SUBJ].target"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.answer",
              "short": "The response(s) to the question",
              "definition": "The respondent's answer(s) to the question.",
              "comments": "The value is nested because we cannot have a repeating structure that has variable type.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".value[type=LIST_ANY]"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.answer.value[x]",
              "short": "Single-valued answer to the question",
              "definition": "The answer (or one of the answers) provided by the respondent to the question.",
              "comments": "More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions.",
              "requirements": "Ability to retain a single-valued answer to a question.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                },
                {
                  "code": "decimal"
                },
                {
                  "code": "integer"
                },
                {
                  "code": "date"
                },
                {
                  "code": "dateTime"
                },
                {
                  "code": "instant"
                },
                {
                  "code": "time"
                },
                {
                  "code": "string"
                },
                {
                  "code": "uri"
                },
                {
                  "code": "Attachment"
                },
                {
                  "code": "Coding"
                },
                {
                  "code": "Quantity"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Code indicating the response provided for a question."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".item"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.answer.item",
              "short": "Nested groups and questions",
              "definition": "Nested groups and/or questions found within this particular answer.",
              "requirements": "It is useful to have \"sub-questions\", questions which normally appear when certain answers are given and which collect additional details.",
              "min": 0,
              "max": "*",
              "nameReference": "item",
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=DOCSECT, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "QuestionnaireResponse.item.item",
              "short": "Nested questionnaire response items",
              "definition": "Questions or sub-groups nested beneath a question or group.",
              "requirements": "Reports can consist of complex nested groups.",
              "min": 0,
              "max": "*",
              "nameReference": "item",
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/ReferralRequest",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "ReferralRequest",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/ReferralRequest",
        "name": "ReferralRequest",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Care)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for ReferralRequest Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "ReferralRequest",
              "short": "A request for referral or transfer of care",
              "definition": "Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organization.",
              "alias": [
                "ReferralRequest TransferOfCare Request"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.careprovision"
                }
              ]
            },
            {
              "path": "ReferralRequest.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ReferralRequest.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "ReferralRequest.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "ReferralRequest.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "ReferralRequest.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "ReferralRequest.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ReferralRequest.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ReferralRequest.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "ReferralRequest.status",
              "short": "draft | requested | active | cancelled | accepted | rejected | completed",
              "definition": "The workflow status of the referral or transfer of care request.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the referral.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/referralstatus"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-1"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ReferralRequest.identifier",
              "short": "Business identifier",
              "definition": "Business identifier that uniquely identifies the referral/care transfer request instance.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isModifier": false,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-6 / RF1-11"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ReferralRequest.date",
              "short": "Date of creation/activation",
              "definition": "Date/DateTime of creation for draft requests and date of activation for active requests.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-7 / RF1-9?"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "ReferralRequest.type",
              "short": "Referral/Transition of care request type",
              "definition": "An indication of the type of referral (or where applicable the type of transfer of care) request.",
              "comments": "Examples of referral type: - consultation;         second opinion;          third opinion - Assume management - Request for procedure(s)  HL7 v2.8 Example - Table 0336: S = second opinion p = patient preference o = provider ordered w = work load.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for types of referral; e.g. consult, transfer, temporary transfer."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-10"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "ReferralRequest.specialty",
              "short": "The clinical specialty (discipline) that the referral is requested for",
              "definition": "Indication of the clinical domain or discipline to which the referral or transfer of care request is sent.  For example: Cardiology Gastroenterology Diabetology.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isModifier": false,
              "binding": {
                "strength": "example",
                "description": "Codes indicating the types of capability the referred to service provider must have.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/practitioner-specialty"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-3"
                }
              ]
            },
            {
              "path": "ReferralRequest.priority",
              "short": "Urgency of referral / transfer of care request",
              "definition": "An indication of the urgency of referral (or where applicable the type of transfer of care) request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes indicating the relative priority of the referral.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-priority"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-2"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            },
            {
              "path": "ReferralRequest.patient",
              "short": "Patient referred to care or transfer",
              "definition": "The patient who is the subject of a referral or transfer of care request.",
              "comments": "Referral of family, group or community is to be catered for by profiles.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "ReferralRequest.requester",
              "short": "Requester of referral / transfer of care",
              "definition": "The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be  Patient (a self referral).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Practitioner: PRD-2/PRD-7 where PRD-3 = RP; Organization: PRD-10 where PRD-3 = RP"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "ReferralRequest.recipient",
              "short": "Receiver of referral / transfer of care request",
              "definition": "The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request.",
              "comments": "There will be a primary receiver. But the request can be received by any number of \"copied to\" providers or organizations.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Practitioner: PRD-2/PRD-7 where PRD-3 = RT; Organization: PRD-10 where PRD-3 = RT"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "ReferralRequest.encounter",
              "short": "Originating encounter",
              "definition": "The encounter at which the request for referral or transfer of care is initiated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isModifier": false,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "ReferralRequest.dateSent",
              "short": "Date referral/transfer of care request is sent",
              "definition": "Date/DateTime the request for referral or transfer of care is sent by the author.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-7 / RF1-9?"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "ReferralRequest.reason",
              "short": "Reason for referral / transfer of care request",
              "definition": "Description of clinical condition indicating why referral/transfer of care is requested.  For example:  Pathological Anomalies, Disabled (physical or mental),  Behavioral Management.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes indicating why the referral is being requested."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-10"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "ReferralRequest.description",
              "short": "A textual description of the referral",
              "definition": "The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isModifier": false
            },
            {
              "path": "ReferralRequest.serviceRequested",
              "short": "Actions requested as part of the referral",
              "definition": "The service(s) that is/are requested to be provided to the patient.  For example: cardiac pacemaker insertion.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes indicating the types of services that might be requested as part of a referral.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PR1-3 / OBR-4"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "ReferralRequest.supportingInformation",
              "short": "Additonal information to support referral or transfer of care request",
              "definition": "Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care.  For example: Presenting problems/chief complaints Medical History Family History Alerts Allergy/Intolerance and Adverse Reactions Medications Observations/Assessments (may include cognitive and fundtional assessments) Diagnostic Reports Care Plan.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isModifier": false,
              "isSummary": true
            },
            {
              "path": "ReferralRequest.fulfillmentTime",
              "short": "Requested service(s) fulfillment time",
              "definition": "The period of time within which the services identified in the referral/transfer of care is specified or required to occur.",
              "requirements": "Use cases: (1) to indicate that the requested service is not to happen before a specified date, and saving the start date in Period.start; (2) to indicate that the requested service must happen before a specified date, and saving the end date in Period.end; (3) to indicate that the requested service must happen during the specified dates (\"start\" and \"end\" values).",
              "alias": [
                "EffectiveTime"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-7/OBR-8"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "ReferralRequest",
              "short": "A request for referral or transfer of care",
              "definition": "Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organization.",
              "alias": [
                "ReferralRequest TransferOfCare Request"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.careprovision"
                }
              ]
            },
            {
              "path": "ReferralRequest.status",
              "short": "draft | requested | active | cancelled | accepted | rejected | completed",
              "definition": "The workflow status of the referral or transfer of care request.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of the referral.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/referralstatus"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-1"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "ReferralRequest.identifier",
              "short": "Business identifier",
              "definition": "Business identifier that uniquely identifies the referral/care transfer request instance.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isModifier": false,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-6 / RF1-11"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "ReferralRequest.date",
              "short": "Date of creation/activation",
              "definition": "Date/DateTime of creation for draft requests and date of activation for active requests.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-7 / RF1-9?"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "ReferralRequest.type",
              "short": "Referral/Transition of care request type",
              "definition": "An indication of the type of referral (or where applicable the type of transfer of care) request.",
              "comments": "Examples of referral type: - consultation;         second opinion;          third opinion - Assume management - Request for procedure(s)  HL7 v2.8 Example - Table 0336: S = second opinion p = patient preference o = provider ordered w = work load.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for types of referral; e.g. consult, transfer, temporary transfer."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-10"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "ReferralRequest.specialty",
              "short": "The clinical specialty (discipline) that the referral is requested for",
              "definition": "Indication of the clinical domain or discipline to which the referral or transfer of care request is sent.  For example: Cardiology Gastroenterology Diabetology.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isModifier": false,
              "binding": {
                "strength": "example",
                "description": "Codes indicating the types of capability the referred to service provider must have.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/practitioner-specialty"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-3"
                }
              ]
            },
            {
              "path": "ReferralRequest.priority",
              "short": "Urgency of referral / transfer of care request",
              "definition": "An indication of the urgency of referral (or where applicable the type of transfer of care) request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes indicating the relative priority of the referral.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/diagnostic-order-priority"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-2"
                },
                {
                  "identity": "w5",
                  "map": "grade"
                }
              ]
            },
            {
              "path": "ReferralRequest.patient",
              "short": "Patient referred to care or transfer",
              "definition": "The patient who is the subject of a referral or transfer of care request.",
              "comments": "Referral of family, group or community is to be catered for by profiles.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "ReferralRequest.requester",
              "short": "Requester of referral / transfer of care",
              "definition": "The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be  Patient (a self referral).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Practitioner: PRD-2/PRD-7 where PRD-3 = RP; Organization: PRD-10 where PRD-3 = RP"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "ReferralRequest.recipient",
              "short": "Receiver of referral / transfer of care request",
              "definition": "The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request.",
              "comments": "There will be a primary receiver. But the request can be received by any number of \"copied to\" providers or organizations.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "Practitioner: PRD-2/PRD-7 where PRD-3 = RT; Organization: PRD-10 where PRD-3 = RT"
                },
                {
                  "identity": "w5",
                  "map": "who.actor"
                }
              ]
            },
            {
              "path": "ReferralRequest.encounter",
              "short": "Originating encounter",
              "definition": "The encounter at which the request for referral or transfer of care is initiated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isModifier": false,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "ReferralRequest.dateSent",
              "short": "Date referral/transfer of care request is sent",
              "definition": "Date/DateTime the request for referral or transfer of care is sent by the author.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-7 / RF1-9?"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "ReferralRequest.reason",
              "short": "Reason for referral / transfer of care request",
              "definition": "Description of clinical condition indicating why referral/transfer of care is requested.  For example:  Pathological Anomalies, Disabled (physical or mental),  Behavioral Management.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes indicating why the referral is being requested."
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RF1-10"
                },
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "ReferralRequest.description",
              "short": "A textual description of the referral",
              "definition": "The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isModifier": false
            },
            {
              "path": "ReferralRequest.serviceRequested",
              "short": "Actions requested as part of the referral",
              "definition": "The service(s) that is/are requested to be provided to the patient.  For example: cardiac pacemaker insertion.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes indicating the types of services that might be requested as part of a referral.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PR1-3 / OBR-4"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "ReferralRequest.supportingInformation",
              "short": "Additonal information to support referral or transfer of care request",
              "definition": "Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care.  For example: Presenting problems/chief complaints Medical History Family History Alerts Allergy/Intolerance and Adverse Reactions Medications Observations/Assessments (may include cognitive and fundtional assessments) Diagnostic Reports Care Plan.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isModifier": false,
              "isSummary": true
            },
            {
              "path": "ReferralRequest.fulfillmentTime",
              "short": "Requested service(s) fulfillment time",
              "definition": "The period of time within which the services identified in the referral/transfer of care is specified or required to occur.",
              "requirements": "Use cases: (1) to indicate that the requested service is not to happen before a specified date, and saving the start date in Period.start; (2) to indicate that the requested service must happen before a specified date, and saving the end date in Period.end; (3) to indicate that the requested service must happen during the specified dates (\"start\" and \"end\" values).",
              "alias": [
                "EffectiveTime"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isModifier": false,
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBR-7/OBR-8"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "RelatedPerson",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "name": "RelatedPerson",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for RelatedPerson Resource",
        "requirements": "Need to track persons related to the patient or the healthcare process.",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "RelatedPerson",
              "short": "An person that is related to a patient, but who is not a direct target of care",
              "definition": "Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "role"
                },
                {
                  "identity": "w5",
                  "map": "administrative.individual"
                }
              ]
            },
            {
              "path": "RelatedPerson.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "RelatedPerson.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "RelatedPerson.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "RelatedPerson.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "RelatedPerson.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "RelatedPerson.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "RelatedPerson.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "RelatedPerson.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "RelatedPerson.identifier",
              "short": "A human identifier for this person",
              "definition": "Identifier for a person within a particular scope.",
              "requirements": "People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the patient. Examples are national person identifier and local identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NK1-33"
                },
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "RelatedPerson.patient",
              "short": "The patient this person is related to",
              "definition": "The patient this person is related to.",
              "requirements": "We need to know which patient this RelatedPerson is related to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": "scoper[classCode=PSN|ANM and determinerCode='INSTANCE']/playedRole[classCode='PAT']/id"
                }
              ]
            },
            {
              "path": "RelatedPerson.relationship",
              "short": "The nature of the relationship",
              "definition": "The nature of the relationship between a patient and the related person.",
              "requirements": "We need to know the relationship with the patient since it influences the interpretation of the information attributed to this person.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The nature of the relationship between a patient and the related person",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NK1-3"
                },
                {
                  "identity": "rim",
                  "map": "code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "RelatedPerson.name",
              "short": "A name associated with the person",
              "definition": "A name associated with the person.",
              "requirements": "Related persons need to be identified by name, but it is uncommon to need details about multiple other names for that person.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "HumanName"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NK1-2"
                },
                {
                  "identity": "rim",
                  "map": "name"
                }
              ]
            },
            {
              "path": "RelatedPerson.telecom",
              "short": "A contact detail for the person",
              "definition": "A contact detail for the person, e.g. a telephone number or an email address.",
              "comments": "Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification.",
              "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NK1-5 / NK1-6 / NK1-40"
                },
                {
                  "identity": "rim",
                  "map": "telecom"
                }
              ]
            },
            {
              "path": "RelatedPerson.gender",
              "short": "male | female | other | unknown",
              "definition": "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.",
              "requirements": "Needed for identification of the person, in combination with (at least) name and birth date.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The gender of a person used for administrative purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/administrative-gender"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NK1-15"
                },
                {
                  "identity": "rim",
                  "map": "administrativeGender"
                }
              ]
            },
            {
              "path": "RelatedPerson.birthDate",
              "short": "The date on which the related person was born",
              "definition": "The date on which the related person was born.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            },
            {
              "path": "RelatedPerson.address",
              "short": "Address where the related person can be contacted or visited",
              "definition": "Address where the related person can be contacted or visited.",
              "requirements": "Need to keep track where the related person can be contacted per postal mail or visited.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NK1-4"
                },
                {
                  "identity": "rim",
                  "map": "addr"
                }
              ]
            },
            {
              "path": "RelatedPerson.photo",
              "short": "Image of the person",
              "definition": "Image of the person.",
              "requirements": "Many EHR systems have the capability to capture an image of persons. Fits with newer social media usage too.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 - needs a profile"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode='PSN' and determinerCode='INSTANCE']/desc"
                }
              ]
            },
            {
              "path": "RelatedPerson.period",
              "short": "Period of time that this relationship is considered valid",
              "definition": "The period of time that this relationship is considered to be valid. If there are no dates defined, then the interval is unknown.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "RelatedPerson",
              "short": "An person that is related to a patient, but who is not a direct target of care",
              "definition": "Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "role"
                },
                {
                  "identity": "w5",
                  "map": "administrative.individual"
                }
              ]
            },
            {
              "path": "RelatedPerson.identifier",
              "short": "A human identifier for this person",
              "definition": "Identifier for a person within a particular scope.",
              "requirements": "People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the patient. Examples are national person identifier and local identifier.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NK1-33"
                },
                {
                  "identity": "rim",
                  "map": "id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "RelatedPerson.patient",
              "short": "The patient this person is related to",
              "definition": "The patient this person is related to.",
              "requirements": "We need to know which patient this RelatedPerson is related to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3"
                },
                {
                  "identity": "rim",
                  "map": "scoper[classCode=PSN|ANM and determinerCode='INSTANCE']/playedRole[classCode='PAT']/id"
                }
              ]
            },
            {
              "path": "RelatedPerson.relationship",
              "short": "The nature of the relationship",
              "definition": "The nature of the relationship between a patient and the related person.",
              "requirements": "We need to know the relationship with the patient since it influences the interpretation of the information attributed to this person.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The nature of the relationship between a patient and the related person",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NK1-3"
                },
                {
                  "identity": "rim",
                  "map": "code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "RelatedPerson.name",
              "short": "A name associated with the person",
              "definition": "A name associated with the person.",
              "requirements": "Related persons need to be identified by name, but it is uncommon to need details about multiple other names for that person.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "HumanName"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NK1-2"
                },
                {
                  "identity": "rim",
                  "map": "name"
                }
              ]
            },
            {
              "path": "RelatedPerson.telecom",
              "short": "A contact detail for the person",
              "definition": "A contact detail for the person, e.g. a telephone number or an email address.",
              "comments": "Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification.",
              "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NK1-5 / NK1-6 / NK1-40"
                },
                {
                  "identity": "rim",
                  "map": "telecom"
                }
              ]
            },
            {
              "path": "RelatedPerson.gender",
              "short": "male | female | other | unknown",
              "definition": "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.",
              "requirements": "Needed for identification of the person, in combination with (at least) name and birth date.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The gender of a person used for administrative purposes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/administrative-gender"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NK1-15"
                },
                {
                  "identity": "rim",
                  "map": "administrativeGender"
                }
              ]
            },
            {
              "path": "RelatedPerson.birthDate",
              "short": "The date on which the related person was born",
              "definition": "The date on which the related person was born.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "date"
                }
              ],
              "isSummary": true
            },
            {
              "path": "RelatedPerson.address",
              "short": "Address where the related person can be contacted or visited",
              "definition": "Address where the related person can be contacted or visited.",
              "requirements": "Need to keep track where the related person can be contacted per postal mail or visited.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Address"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "NK1-4"
                },
                {
                  "identity": "rim",
                  "map": "addr"
                }
              ]
            },
            {
              "path": "RelatedPerson.photo",
              "short": "Image of the person",
              "definition": "Image of the person.",
              "requirements": "Many EHR systems have the capability to capture an image of persons. Fits with newer social media usage too.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Attachment"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX-5 - needs a profile"
                },
                {
                  "identity": "rim",
                  "map": "player[classCode='PSN' and determinerCode='INSTANCE']/desc"
                }
              ]
            },
            {
              "path": "RelatedPerson.period",
              "short": "Period of time that this relationship is considered valid",
              "definition": "The period of time that this relationship is considered to be valid. If there are no dates defined, then the interval is unknown.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/RiskAssessment",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "RiskAssessment",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/RiskAssessment",
        "name": "RiskAssessment",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Decision Support)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for RiskAssessment Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "openehr",
            "uri": "http://openehr.org",
            "name": "Open EHR"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "RiskAssessment",
              "short": "Potential outcomes for a subject with likelihood",
              "definition": "An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome.",
              "alias": [
                "Prognosis"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "OpenEHR-EHR-EVALUATION.risk.v1"
                },
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=EVN, code=\"Risk Assessment\"]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "RiskAssessment.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "RiskAssessment.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "RiskAssessment.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "RiskAssessment.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "RiskAssessment.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "RiskAssessment.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "RiskAssessment.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "RiskAssessment.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "RiskAssessment.subject",
              "short": "Who/what does assessment apply to?",
              "definition": "The patient or group the risk assessment applies to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Subject of Care"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "RiskAssessment.date",
              "short": "When was assessment made?",
              "definition": "The date (and possibly time) the risk assessment was performed.",
              "requirements": "The assessment results lose validity the more time elapses from when they are first made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "RiskAssessment.condition",
              "short": "Condition assessed",
              "definition": "For assessments or prognosis specific to a particular condition, indicates the condition being assessed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "RiskAssessment.encounter",
              "short": "Where was assessment performed?",
              "definition": "The encounter where the assessment was performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "RiskAssessment.performer",
              "short": "Who did assessment?",
              "definition": "The provider or software application that performed the assessment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Information Provider"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].role[classCode=ASSIGNED]"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "RiskAssessment.identifier",
              "short": "Unique identifier for the assessment",
              "definition": "Business identifier assigned to the risk assessment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Workflow Identifier"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "RiskAssessment.method",
              "short": "Evaluation mechanism",
              "definition": "The algorithm, process or mechanism used to evaluate the risk.",
              "requirements": "The method can influence the results of the assessment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The mechanism or algorithm used to make the assessment; e.g. TIMI, PRISM, Cardiff Type 2 diabetes, etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".methodCode"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "RiskAssessment.basis",
              "short": "Information used in assessment",
              "definition": "Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Risk Factor; Link to Evidence"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=DRIV].target"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction",
              "short": "Outcome predicted",
              "definition": "Describes the expected outcome for the subject.",
              "comments": "Multiple repetitions can be used to identify the same type of outcome in different timeframes as well as different types of outcomes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=VALUE].target[classCod=OBS, moodCode=RISK]"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.outcome",
              "short": "Possible outcome for the subject",
              "definition": "One of the potential outcomes for the patient (e.g. remission, death,  a particular condition).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The condition or other outcome; e.g. death, remission, amputation, infection, etc."
              },
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Risk"
                },
                {
                  "identity": "rim",
                  "map": ".value"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.probability[x]",
              "short": "Likelihood of specified outcome",
              "definition": "How likely is the outcome (in the specified timeframe).",
              "comments": "If range is used, it represents the lower and upper bounds of certainty; e.g. 40-60%  Decimal values are expressed as percentages as well (max = 100).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                },
                {
                  "code": "Range"
                },
                {
                  "code": "CodeableConcept"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(low.empty() or ((low.code = \"%\") and (low.system = %ucum))) and (high.empty() or ((high.code = \"%\") and (high.system = %ucum)))"
                    }
                  ],
                  "key": "ras-1",
                  "severity": "error",
                  "human": "low and high must be percentages, if present",
                  "xpath": "(not(f:low) or f:low[f:code/@value='%' and f:system/@value='http://unitsofmeasure.org']) and (not(f:high) or f:high[f:code/@value='%' and f:system/@value='http://unitsofmeasure.org'])"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "probabilityDecimal <= 100"
                    }
                  ],
                  "key": "ras-2",
                  "severity": "error",
                  "human": "Must be <= 100",
                  "xpath": "@value <= 100"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The likelihood of the occurrence of a specified outcome",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/risk-probability"
                }
              },
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Category"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"probability\"].value"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.relativeRisk",
              "short": "Relative likelihood",
              "definition": "Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general.  (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.).",
              "requirements": "Absolute risk is less meaningful than relative risk.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"relative risk\"].value"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.when[x]",
              "short": "Timeframe or age range",
              "definition": "Indicates the period of time or age range of the subject to which the specified probability applies.",
              "comments": "If not specified, the risk applies \"over the subject's lifespan\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                },
                {
                  "code": "Range"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age\"].value"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.rationale",
              "short": "Explanation of prediction",
              "definition": "Additional information explaining the basis for the prediction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Rationale"
                },
                {
                  "identity": "rim",
                  "map": ".reasonCode.text"
                }
              ]
            },
            {
              "path": "RiskAssessment.mitigation",
              "short": "How to reduce risk",
              "definition": "A description of the steps that might be taken to reduce the identified risk(s).",
              "requirements": "One of the main reasons for assessing risks is to identify whether interventional steps are needed to reduce risk.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=MTGT].target[classCode=ACT, moodCode=EVN].text"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "RiskAssessment",
              "short": "Potential outcomes for a subject with likelihood",
              "definition": "An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome.",
              "alias": [
                "Prognosis"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "OpenEHR-EHR-EVALUATION.risk.v1"
                },
                {
                  "identity": "v2",
                  "map": "N/A"
                },
                {
                  "identity": "rim",
                  "map": "Observation[classCode=OBS, moodCode=EVN, code=\"Risk Assessment\"]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.general"
                }
              ]
            },
            {
              "path": "RiskAssessment.subject",
              "short": "Who/what does assessment apply to?",
              "definition": "The patient or group the risk assessment applies to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Subject of Care"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "RiskAssessment.date",
              "short": "When was assessment made?",
              "definition": "The date (and possibly time) the risk assessment was performed.",
              "requirements": "The assessment results lose validity the more time elapses from when they are first made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "RiskAssessment.condition",
              "short": "Condition assessed",
              "definition": "For assessments or prognosis specific to a particular condition, indicates the condition being assessed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "RiskAssessment.encounter",
              "short": "Where was assessment performed?",
              "definition": "The encounter where the assessment was performed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
                },
                {
                  "identity": "w5",
                  "map": "context"
                }
              ]
            },
            {
              "path": "RiskAssessment.performer",
              "short": "Who did assessment?",
              "definition": "The provider or software application that performed the assessment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Information Provider"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].role[classCode=ASSIGNED]"
                },
                {
                  "identity": "w5",
                  "map": "who.author"
                }
              ]
            },
            {
              "path": "RiskAssessment.identifier",
              "short": "Unique identifier for the assessment",
              "definition": "Business identifier assigned to the risk assessment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Workflow Identifier"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "RiskAssessment.method",
              "short": "Evaluation mechanism",
              "definition": "The algorithm, process or mechanism used to evaluate the risk.",
              "requirements": "The method can influence the results of the assessment.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The mechanism or algorithm used to make the assessment; e.g. TIMI, PRISM, Cardiff Type 2 diabetes, etc."
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".methodCode"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "RiskAssessment.basis",
              "short": "Information used in assessment",
              "definition": "Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Risk Factor; Link to Evidence"
                },
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=DRIV].target"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction",
              "short": "Outcome predicted",
              "definition": "Describes the expected outcome for the subject.",
              "comments": "Multiple repetitions can be used to identify the same type of outcome in different timeframes as well as different types of outcomes.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=VALUE].target[classCod=OBS, moodCode=RISK]"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.outcome",
              "short": "Possible outcome for the subject",
              "definition": "One of the potential outcomes for the patient (e.g. remission, death,  a particular condition).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The condition or other outcome; e.g. death, remission, amputation, infection, etc."
              },
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Risk"
                },
                {
                  "identity": "rim",
                  "map": ".value"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.probability[x]",
              "short": "Likelihood of specified outcome",
              "definition": "How likely is the outcome (in the specified timeframe).",
              "comments": "If range is used, it represents the lower and upper bounds of certainty; e.g. 40-60%  Decimal values are expressed as percentages as well (max = 100).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                },
                {
                  "code": "Range"
                },
                {
                  "code": "CodeableConcept"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "(low.empty() or ((low.code = \"%\") and (low.system = %ucum))) and (high.empty() or ((high.code = \"%\") and (high.system = %ucum)))"
                    }
                  ],
                  "key": "ras-1",
                  "severity": "error",
                  "human": "low and high must be percentages, if present",
                  "xpath": "(not(f:low) or f:low[f:code/@value='%' and f:system/@value='http://unitsofmeasure.org']) and (not(f:high) or f:high[f:code/@value='%' and f:system/@value='http://unitsofmeasure.org'])"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "probabilityDecimal <= 100"
                    }
                  ],
                  "key": "ras-2",
                  "severity": "error",
                  "human": "Must be <= 100",
                  "xpath": "@value <= 100"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The likelihood of the occurrence of a specified outcome",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/risk-probability"
                }
              },
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Category"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"probability\"].value"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.relativeRisk",
              "short": "Relative likelihood",
              "definition": "Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general.  (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.).",
              "requirements": "Absolute risk is less meaningful than relative risk.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"relative risk\"].value"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.when[x]",
              "short": "Timeframe or age range",
              "definition": "Indicates the period of time or age range of the subject to which the specified probability applies.",
              "comments": "If not specified, the risk applies \"over the subject's lifespan\".",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                },
                {
                  "code": "Range"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age\"].value"
                }
              ]
            },
            {
              "path": "RiskAssessment.prediction.rationale",
              "short": "Explanation of prediction",
              "definition": "Additional information explaining the basis for the prediction.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "openehr",
                  "map": "Rationale"
                },
                {
                  "identity": "rim",
                  "map": ".reasonCode.text"
                }
              ]
            },
            {
              "path": "RiskAssessment.mitigation",
              "short": "How to reduce risk",
              "definition": "A description of the steps that might be taken to reduce the identified risk(s).",
              "requirements": "One of the main reasons for assessing risks is to identify whether interventional steps are needed to reduce risk.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".outboundRelationship[typeCode=MTGT].target[classCode=ACT, moodCode=EVN].text"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Schedule",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Schedule",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Schedule",
        "name": "Schedule",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Schedule Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "ical",
            "uri": "http://www.ietf.org/rfc/rfc2445.txt",
            "name": "iCalendar"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Schedule",
              "short": "A container for slot(s) of time that may be available for booking appointments",
              "definition": "A container for slot(s) of time that may be available for booking appointments.",
              "alias": [
                "Availability"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "BEGIN:VFREEBUSY  ???  END:VFREEBUSY (If your fhir server provides this information via calDAV, then you may want to include addressing information in a URL section, and with the search, a DTSTART and DTEND component can be included to indicate the range of time that has been covered in the collection of slots, where these overlap the resources period values. For all slots that reference this resource, include a FREEBUSY row for each slot)"
                },
                {
                  "identity": "w5",
                  "map": "workflow.scheduling"
                }
              ]
            },
            {
              "path": "Schedule.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Schedule.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Schedule.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Schedule.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Schedule.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Schedule.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Schedule.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Schedule.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Schedule.identifier",
              "short": "External Ids for this item",
              "definition": "External Ids for this item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "UID"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Schedule.type",
              "short": "The schedule type can be used for the categorization of healthcare services or other appointment types",
              "definition": "The schedule type can be used for the categorization of healthcare services or other appointment types.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Additional details about where the content was created (e.g. clinical specialty)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Schedule.actor",
              "short": "The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson",
              "definition": "The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ATTENDEE:MAILTO:john_public@host2.com This can be populated with a value from the referenced resource"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Schedule.planningHorizon",
              "short": "The period of time that the slots that are attached to this Schedule resource cover (even if none exist). These  cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a \"template\" for planning outside these dates",
              "definition": "The period of time that the slots that are attached to this Schedule resource cover (even if none exist). These  cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a \"template\" for planning outside these dates.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "DTSTART:20131201T003000Z DTEND:2014030101T003000Z"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "Schedule.comment",
              "short": "Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated",
              "definition": "Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "COMMENT:(comment) If there is no comment, then the line can be excluded from the iCalendar entry"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Schedule",
              "short": "A container for slot(s) of time that may be available for booking appointments",
              "definition": "A container for slot(s) of time that may be available for booking appointments.",
              "alias": [
                "Availability"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "BEGIN:VFREEBUSY  ???  END:VFREEBUSY (If your fhir server provides this information via calDAV, then you may want to include addressing information in a URL section, and with the search, a DTSTART and DTEND component can be included to indicate the range of time that has been covered in the collection of slots, where these overlap the resources period values. For all slots that reference this resource, include a FREEBUSY row for each slot)"
                },
                {
                  "identity": "w5",
                  "map": "workflow.scheduling"
                }
              ]
            },
            {
              "path": "Schedule.identifier",
              "short": "External Ids for this item",
              "definition": "External Ids for this item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "UID"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Schedule.type",
              "short": "The schedule type can be used for the categorization of healthcare services or other appointment types",
              "definition": "The schedule type can be used for the categorization of healthcare services or other appointment types.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Additional details about where the content was created (e.g. clinical specialty)",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Schedule.actor",
              "short": "The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson",
              "definition": "The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "ATTENDEE:MAILTO:john_public@host2.com This can be populated with a value from the referenced resource"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Schedule.planningHorizon",
              "short": "The period of time that the slots that are attached to this Schedule resource cover (even if none exist). These  cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a \"template\" for planning outside these dates",
              "definition": "The period of time that the slots that are attached to this Schedule resource cover (even if none exist). These  cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a \"template\" for planning outside these dates.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "DTSTART:20131201T003000Z DTEND:2014030101T003000Z"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "Schedule.comment",
              "short": "Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated",
              "definition": "Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "COMMENT:(comment) If there is no comment, then the line can be excluded from the iCalendar entry"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/SearchParameter",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "SearchParameter",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/SearchParameter",
        "name": "SearchParameter",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for SearchParameter Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "SearchParameter",
              "short": "Search Parameter for a resource",
              "definition": "A search parameter that defines a named search item that can be used to search/filter on a resource.",
              "comments": "In FHIR, search is not performed directly on a resource (by XML or JSON path), but on a named parameter that maps into the resource content.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "xpath.empty() or xpathUsage"
                    }
                  ],
                  "key": "spd-1",
                  "severity": "error",
                  "human": "If an xpath is present, there SHALL be an xpathUsage",
                  "xpath": "not(exists(f:xpath)) or exists(f:xpathUsage)"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "conformance.behavior"
                }
              ]
            },
            {
              "path": "SearchParameter.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "SearchParameter.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "SearchParameter.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "SearchParameter.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "SearchParameter.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "SearchParameter.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "SearchParameter.url",
              "short": "Absolute URL used to reference this search parameter",
              "definition": "An absolute URL that is used to identify this search parameter when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this search parameter is (or will be) published.",
              "requirements": "To allow referencing and reusing search parameter definitions under other names on operational systems (in case of name clash).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "SearchParameter.name",
              "short": "Informal name for this search parameter",
              "definition": "A free text natural language name identifying the search parameter.",
              "comments": "This is often the same as the code for the parameter, but does not need to be.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.status",
              "short": "draft | active | retired",
              "definition": "The status of this search parameter definition.",
              "comments": "This is not intended for use with actual conformance statements, but where conformance statements are used to describe possible or desired systems.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "SearchParameter.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "A flag to indicate that this search parameter definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "comments": "Allows filtering of search parameter definitions that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "SearchParameter.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the search parameter.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the search parameter.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "SearchParameter.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "SearchParameter.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "SearchParameter.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "SearchParameter.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the search parameter.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.date",
              "short": "Publication Date(/time)",
              "definition": "The date  (and optionally time) when the search parameter definition was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the search parameter changes.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "SearchParameter.requirements",
              "short": "Why this search parameter is defined",
              "definition": "The Scope and Usage that this search parameter was created to meet.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "SearchParameter.code",
              "short": "Code used in URL",
              "definition": "The code used in the URL or the parameter name in a parameters resource for this search parameter.",
              "comments": "For maximum compatibility, use only lowercase ASCII characters.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.base",
              "short": "The resource type this search parameter applies to",
              "definition": "The base resource type that this search parameter refers to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "SearchParameter.type",
              "short": "number | date | string | token | reference | composite | quantity | uri",
              "definition": "The type of value a search parameter refers to, and how the content is interpreted.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Data types allowed to be used for search parameters.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/search-param-type"
                }
              }
            },
            {
              "path": "SearchParameter.description",
              "short": "Documentation for  search parameter",
              "definition": "A description of the search parameters and how it used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.xpath",
              "short": "XPath that extracts the values",
              "definition": "An XPath expression that returns a set of elements for the search parameter.",
              "comments": "Note that the elements returned by the XPath are sometimes complex elements where logic is required to determine quite how to handle them; e.g. CodeableConcepts may contain text and/or multiple codings, where the codings themselves contain a code and a system.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "spd-1"
              ]
            },
            {
              "path": "SearchParameter.xpathUsage",
              "short": "normal | phonetic | nearby | distance | other",
              "definition": "How the search parameter relates to the set of elements returned by evaluating the xpath query.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "condition": [
                "spd-1"
              ],
              "binding": {
                "strength": "required",
                "description": "How a search parameter relates to the set of elements returned by evaluating its xpath query.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/search-xpath-usage"
                }
              }
            },
            {
              "path": "SearchParameter.target",
              "short": "Types of resource (if a resource reference)",
              "definition": "Types of resource (if a resource is referenced).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "SearchParameter",
              "short": "Search Parameter for a resource",
              "definition": "A search parameter that defines a named search item that can be used to search/filter on a resource.",
              "comments": "In FHIR, search is not performed directly on a resource (by XML or JSON path), but on a named parameter that maps into the resource content.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "xpath.empty() or xpathUsage"
                    }
                  ],
                  "key": "spd-1",
                  "severity": "error",
                  "human": "If an xpath is present, there SHALL be an xpathUsage",
                  "xpath": "not(exists(f:xpath)) or exists(f:xpathUsage)"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "n/a"
                },
                {
                  "identity": "rim",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "conformance.behavior"
                }
              ]
            },
            {
              "path": "SearchParameter.url",
              "short": "Absolute URL used to reference this search parameter",
              "definition": "An absolute URL that is used to identify this search parameter when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this search parameter is (or will be) published.",
              "requirements": "To allow referencing and reusing search parameter definitions under other names on operational systems (in case of name clash).",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "SearchParameter.name",
              "short": "Informal name for this search parameter",
              "definition": "A free text natural language name identifying the search parameter.",
              "comments": "This is often the same as the code for the parameter, but does not need to be.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.status",
              "short": "draft | active | retired",
              "definition": "The status of this search parameter definition.",
              "comments": "This is not intended for use with actual conformance statements, but where conformance statements are used to describe possible or desired systems.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "SearchParameter.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "A flag to indicate that this search parameter definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "comments": "Allows filtering of search parameter definitions that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "SearchParameter.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the search parameter.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the search parameter.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "SearchParameter.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the search parameter.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.date",
              "short": "Publication Date(/time)",
              "definition": "The date  (and optionally time) when the search parameter definition was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the search parameter changes.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "SearchParameter.requirements",
              "short": "Why this search parameter is defined",
              "definition": "The Scope and Usage that this search parameter was created to meet.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "SearchParameter.code",
              "short": "Code used in URL",
              "definition": "The code used in the URL or the parameter name in a parameters resource for this search parameter.",
              "comments": "For maximum compatibility, use only lowercase ASCII characters.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.base",
              "short": "The resource type this search parameter applies to",
              "definition": "The base resource type that this search parameter refers to.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            },
            {
              "path": "SearchParameter.type",
              "short": "number | date | string | token | reference | composite | quantity | uri",
              "definition": "The type of value a search parameter refers to, and how the content is interpreted.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Data types allowed to be used for search parameters.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/search-param-type"
                }
              }
            },
            {
              "path": "SearchParameter.description",
              "short": "Documentation for  search parameter",
              "definition": "A description of the search parameters and how it used.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SearchParameter.xpath",
              "short": "XPath that extracts the values",
              "definition": "An XPath expression that returns a set of elements for the search parameter.",
              "comments": "Note that the elements returned by the XPath are sometimes complex elements where logic is required to determine quite how to handle them; e.g. CodeableConcepts may contain text and/or multiple codings, where the codings themselves contain a code and a system.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "spd-1"
              ]
            },
            {
              "path": "SearchParameter.xpathUsage",
              "short": "normal | phonetic | nearby | distance | other",
              "definition": "How the search parameter relates to the set of elements returned by evaluating the xpath query.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "condition": [
                "spd-1"
              ],
              "binding": {
                "strength": "required",
                "description": "How a search parameter relates to the set of elements returned by evaluating its xpath query.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/search-xpath-usage"
                }
              }
            },
            {
              "path": "SearchParameter.target",
              "short": "Types of resource (if a resource reference)",
              "definition": "Types of resource (if a resource is referenced).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "One of the resource types defined as part of FHIR.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/resource-types"
                }
              }
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Sequence",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Sequence",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Sequence",
        "name": "Sequence",
        "status": "draft",
        "publisher": "Health Level Seven International (Clinical Genomics)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/clingenomics/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Sequence Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Sequence",
              "short": "A Sequence",
              "definition": "Variation and Sequence data.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "Sequence.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Sequence.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Sequence.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Sequence.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Sequence.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Sequence.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Sequence.type",
              "short": "AA | DNA | RNA",
              "definition": "Amino acid / cDNA transcript / RNA variation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Type if a sequence -- DNA, RNA, or amino acid sequence",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/sequence-type"
                }
              }
            },
            {
              "path": "Sequence.variationID",
              "short": "Identifier for variant and ClinVar, dbSNP or COSMIC identifier should be used",
              "definition": "Identifier for variant.  If a germline variant, ClinVar or dbSNP identifier should be used.  If a somatic variant, COSMIC identifier should be used, unless in ClinVar then either maybe used. Need to provide the code system used (ClinVar, dbSNP, COSMIC).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Variant ID",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/sequence-variationID"
                }
              }
            },
            {
              "path": "Sequence.referenceSeq",
              "short": "Reference identifier.  It must match the type in the Sequence.type field",
              "definition": "Reference identifier for cDNA transcript/protein, with version, from NCBI's RefSeq or ENSEMBL. This reference sequence identifier must match the type in the Sequence.type field.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Reference identifier",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/sequence-referenceSeq"
                }
              }
            },
            {
              "path": "Sequence.quantity",
              "short": "Quantity of the sequence",
              "definition": "Quantity of the sequence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.coordinate",
              "short": "The coordinate of the variant",
              "definition": "The coordinate of the variant.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.coordinate.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Sequence.coordinate.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Sequence.coordinate.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Sequence.coordinate.chromosome",
              "short": "The chromosome containing the genetic finding",
              "definition": "The chromosome containing the genetic finding. The value set will be 1-22, X, Y when the species is human without chromosome abnormality. Otherwise,  NCBI-Gene code system should be used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.coordinate.start",
              "short": "0-based start position (inclusive) of the sequence",
              "definition": "Inclusive 0-based nucleotide position for start of genomic finding on the positive (+) genomics strand.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.coordinate.end",
              "short": "0-based end position (exclusive) of the sequence",
              "definition": "Exclusive 0-based nucleotide position for end of genomic finding on the positive (+) genomic strand.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.coordinate.genomeBuild",
              "short": "The Genome Build used for reference, following GRCh build versions e.g. 'GRCh 37'",
              "definition": "The Genome Build used for reference, following GRCh build versions e.g. 'GRCh 37'.  Version number must be included if a versioned release of a primary build was used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.species",
              "short": "Supporting tests of human, viruses, and bacteria",
              "definition": "The organism from which sample of the sequence was extracted. Supporting tests of human, viruses, and bacteria.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.observedAllele",
              "short": "Nucleotide(s)/amino acids from start position of sequence to stop position of observed sequence",
              "definition": "Nucleotide(s)/amino acids from start position of sequence to stop position of sequence on the positive (+) strand of the observed sequence. When the sequence  type is DNA, it should be the sequence on the positive (+) strand.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.referenceAllele",
              "short": "Nucleotide(s)/amino acids from start position of sequence to stop position of reference sequence",
              "definition": "Nucleotide(s)/amino acids from start position of sequence to stop position of sequence on the positive (+) strand of the reference sequence. When the sequence  type is DNA, it should be the sequence on the positive (+) strand.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.cigar",
              "short": "Extended CIGAR string for aligning the sequence with reference bases",
              "definition": "Extended CIGAR string for aligning the sequence with reference bases. See detailed documentation [here](http://support.illumina.com/help/SequencingAnalysisWorkflow/Content/Vault/Informatics/Sequencing_Analysis/CASAVA/swSEQ_mCA_ExtendedCIGARFormat.htm).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.quality",
              "short": "Sequence Quality",
              "definition": "Quality for sequence quality vary by platform reflecting differences in sequencing chemistry and digital processing.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.quality.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Sequence.quality.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Sequence.quality.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Sequence.quality.start",
              "short": "0-based start position (inclusive) of the sequence",
              "definition": "0-based start position (inclusive) of the sequence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.quality.end",
              "short": "0-based end position (exclusive) of the sequence",
              "definition": "0-based end position (exclusive) of the sequence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.quality.score",
              "short": "Quality score",
              "definition": "Quality score.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.quality.platform",
              "short": "Platform",
              "definition": "Platform.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.allelicState",
              "short": "The level of occurrence of a single DNA Sequence Variation within a set of chromosomes: Heteroplasmic / Homoplasmic / Homozygous / Heterozygous / Hemizygous",
              "definition": "The level of occurrence of a single DNA Sequence Variation within a set of chromosomes. Heterozygous indicates the DNA Sequence Variation is only present in one of the two genes contained in homologous chromosomes. Homozygous indicates the DNA Sequence Variation is present in both genes contained in homologous chromosomes. Hemizygous indicates the DNA Sequence Variation exists in the only single copy of a gene in a non- homologous chromosome (the male X and Y chromosome are non-homologous). Hemiplasmic indicates that the DNA Sequence Variation is present in some but not all of the copies of mitochondrial DNA. Homoplasmic indicates that the DNA Sequence Variation is present in all of the copies of mitochondrial DNA.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "LOINC answer list for AllelicState",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/LOINC-53034-5-answerlist"
                }
              }
            },
            {
              "path": "Sequence.allelicFrequency",
              "short": "Allele frequencies",
              "definition": "Allele frequencies.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.copyNumberEvent",
              "short": "Copy Number Event: Values: amplificaiton / deletion / LOH",
              "definition": "Values: amplificaiton / deletion / LOH.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.readCoverage",
              "short": "Average number of reads representing a given nucleotide in the reconstructed sequence",
              "definition": "Coverage (read depth or depth) is the average number of reads representing a given nucleotide in the reconstructed sequence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.chip",
              "short": "Information of chip",
              "definition": "Information of chip.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.chip.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Sequence.chip.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Sequence.chip.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Sequence.chip.chipId",
              "short": "Chip id",
              "definition": "Chip id.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.chip.manufacturerId",
              "short": "Chip manufacturer id",
              "definition": "Chip manufacturer id.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.chip.version",
              "short": "Chip version",
              "definition": "Chip version.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.repository",
              "short": "External repository",
              "definition": "External repository.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.repository.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Sequence.repository.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Sequence.repository.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Sequence.repository.url",
              "short": "URI of the repository",
              "definition": "URI of a GA4GH repository which contains further details about the genetics data.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.repository.name",
              "short": "Name of the repository",
              "definition": "URI of a GA4GH repository which contains further details about the genetics data.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.repository.structure",
              "short": "URI of the page containing information about the structure of the repository",
              "definition": "URI of the page containing information about the structure of the repository.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.repository.variantId",
              "short": "Id of a GA4GH variant",
              "definition": "Id of the GA4GH call set that matches identity of patient. A CallSet in GA4GH represents an individual.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.repository.readGroupSetId",
              "short": "Id of a GA4GH read group",
              "definition": "Id of the GA4GH read group from which details about the sequence can be found. A read group in GA4GH represents a set of DNA reads processed the same way by the sequencer.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Sequence",
              "short": "A Sequence",
              "definition": "Variation and Sequence data.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "Sequence.type",
              "short": "AA | DNA | RNA",
              "definition": "Amino acid / cDNA transcript / RNA variation.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Type if a sequence -- DNA, RNA, or amino acid sequence",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/sequence-type"
                }
              }
            },
            {
              "path": "Sequence.variationID",
              "short": "Identifier for variant and ClinVar, dbSNP or COSMIC identifier should be used",
              "definition": "Identifier for variant.  If a germline variant, ClinVar or dbSNP identifier should be used.  If a somatic variant, COSMIC identifier should be used, unless in ClinVar then either maybe used. Need to provide the code system used (ClinVar, dbSNP, COSMIC).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Variant ID",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/sequence-variationID"
                }
              }
            },
            {
              "path": "Sequence.referenceSeq",
              "short": "Reference identifier.  It must match the type in the Sequence.type field",
              "definition": "Reference identifier for cDNA transcript/protein, with version, from NCBI's RefSeq or ENSEMBL. This reference sequence identifier must match the type in the Sequence.type field.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Reference identifier",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/sequence-referenceSeq"
                }
              }
            },
            {
              "path": "Sequence.quantity",
              "short": "Quantity of the sequence",
              "definition": "Quantity of the sequence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.coordinate",
              "short": "The coordinate of the variant",
              "definition": "The coordinate of the variant.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.coordinate.chromosome",
              "short": "The chromosome containing the genetic finding",
              "definition": "The chromosome containing the genetic finding. The value set will be 1-22, X, Y when the species is human without chromosome abnormality. Otherwise,  NCBI-Gene code system should be used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.coordinate.start",
              "short": "0-based start position (inclusive) of the sequence",
              "definition": "Inclusive 0-based nucleotide position for start of genomic finding on the positive (+) genomics strand.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.coordinate.end",
              "short": "0-based end position (exclusive) of the sequence",
              "definition": "Exclusive 0-based nucleotide position for end of genomic finding on the positive (+) genomic strand.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.coordinate.genomeBuild",
              "short": "The Genome Build used for reference, following GRCh build versions e.g. 'GRCh 37'",
              "definition": "The Genome Build used for reference, following GRCh build versions e.g. 'GRCh 37'.  Version number must be included if a versioned release of a primary build was used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.species",
              "short": "Supporting tests of human, viruses, and bacteria",
              "definition": "The organism from which sample of the sequence was extracted. Supporting tests of human, viruses, and bacteria.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.observedAllele",
              "short": "Nucleotide(s)/amino acids from start position of sequence to stop position of observed sequence",
              "definition": "Nucleotide(s)/amino acids from start position of sequence to stop position of sequence on the positive (+) strand of the observed sequence. When the sequence  type is DNA, it should be the sequence on the positive (+) strand.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.referenceAllele",
              "short": "Nucleotide(s)/amino acids from start position of sequence to stop position of reference sequence",
              "definition": "Nucleotide(s)/amino acids from start position of sequence to stop position of sequence on the positive (+) strand of the reference sequence. When the sequence  type is DNA, it should be the sequence on the positive (+) strand.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.cigar",
              "short": "Extended CIGAR string for aligning the sequence with reference bases",
              "definition": "Extended CIGAR string for aligning the sequence with reference bases. See detailed documentation [here](http://support.illumina.com/help/SequencingAnalysisWorkflow/Content/Vault/Informatics/Sequencing_Analysis/CASAVA/swSEQ_mCA_ExtendedCIGARFormat.htm).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.quality",
              "short": "Sequence Quality",
              "definition": "Quality for sequence quality vary by platform reflecting differences in sequencing chemistry and digital processing.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.quality.start",
              "short": "0-based start position (inclusive) of the sequence",
              "definition": "0-based start position (inclusive) of the sequence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.quality.end",
              "short": "0-based end position (exclusive) of the sequence",
              "definition": "0-based end position (exclusive) of the sequence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.quality.score",
              "short": "Quality score",
              "definition": "Quality score.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.quality.platform",
              "short": "Platform",
              "definition": "Platform.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.allelicState",
              "short": "The level of occurrence of a single DNA Sequence Variation within a set of chromosomes: Heteroplasmic / Homoplasmic / Homozygous / Heterozygous / Hemizygous",
              "definition": "The level of occurrence of a single DNA Sequence Variation within a set of chromosomes. Heterozygous indicates the DNA Sequence Variation is only present in one of the two genes contained in homologous chromosomes. Homozygous indicates the DNA Sequence Variation is present in both genes contained in homologous chromosomes. Hemizygous indicates the DNA Sequence Variation exists in the only single copy of a gene in a non- homologous chromosome (the male X and Y chromosome are non-homologous). Hemiplasmic indicates that the DNA Sequence Variation is present in some but not all of the copies of mitochondrial DNA. Homoplasmic indicates that the DNA Sequence Variation is present in all of the copies of mitochondrial DNA.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "LOINC answer list for AllelicState",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/LOINC-53034-5-answerlist"
                }
              }
            },
            {
              "path": "Sequence.allelicFrequency",
              "short": "Allele frequencies",
              "definition": "Allele frequencies.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.copyNumberEvent",
              "short": "Copy Number Event: Values: amplificaiton / deletion / LOH",
              "definition": "Values: amplificaiton / deletion / LOH.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.readCoverage",
              "short": "Average number of reads representing a given nucleotide in the reconstructed sequence",
              "definition": "Coverage (read depth or depth) is the average number of reads representing a given nucleotide in the reconstructed sequence.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.chip",
              "short": "Information of chip",
              "definition": "Information of chip.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.chip.chipId",
              "short": "Chip id",
              "definition": "Chip id.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.chip.manufacturerId",
              "short": "Chip manufacturer id",
              "definition": "Chip manufacturer id.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.chip.version",
              "short": "Chip version",
              "definition": "Chip version.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.repository",
              "short": "External repository",
              "definition": "External repository.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.repository.url",
              "short": "URI of the repository",
              "definition": "URI of a GA4GH repository which contains further details about the genetics data.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.repository.name",
              "short": "Name of the repository",
              "definition": "URI of a GA4GH repository which contains further details about the genetics data.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.repository.structure",
              "short": "URI of the page containing information about the structure of the repository",
              "definition": "URI of the page containing information about the structure of the repository.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.repository.variantId",
              "short": "Id of a GA4GH variant",
              "definition": "Id of the GA4GH call set that matches identity of patient. A CallSet in GA4GH represents an individual.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Sequence.repository.readGroupSetId",
              "short": "Id of a GA4GH read group",
              "definition": "Id of the GA4GH read group from which details about the sequence can be found. A read group in GA4GH represents a set of DNA reads processed the same way by the sequencer.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Slot",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Slot",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Slot",
        "name": "Slot",
        "status": "draft",
        "publisher": "Health Level Seven International (Patient Administration)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Slot Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "ical",
            "uri": "http://www.ietf.org/rfc/rfc2445.txt",
            "name": "iCalendar"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Slot",
              "short": "A slot of time on a schedule that may be available for booking appointments",
              "definition": "A slot of time on a schedule that may be available for booking appointments.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "(refer to the Availability resource for the header mapping details)"
                },
                {
                  "identity": "w5",
                  "map": "workflow.scheduling"
                }
              ]
            },
            {
              "path": "Slot.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Slot.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Slot.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Slot.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Slot.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Slot.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Slot.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Slot.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Slot.identifier",
              "short": "External Ids for this item",
              "definition": "External Ids for this item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Slot.type",
              "short": "The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource",
              "definition": "The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Additional details about where the content was created (e.g. clinical specialty).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Slot.schedule",
              "short": "The schedule resource that this slot defines an interval of status information",
              "definition": "The schedule resource that this slot defines an interval of status information.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Schedule"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Slot.freeBusyType",
              "short": "busy | free | busy-unavailable | busy-tentative",
              "definition": "busy | free | busy-unavailable | busy-tentative.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The free/busy status of a slot.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/slotstatus"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "FREEBUSY;FBTYPE=(freeBusyType):19980314T233000Z/19980315T003000Z If the freeBusyType is BUSY, then this value can be excluded"
                }
              ]
            },
            {
              "path": "Slot.start",
              "short": "Date/Time that the slot is to begin",
              "definition": "Date/Time that the slot is to begin.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "FREEBUSY;FBTYPE=FREE:(start)/19980315T003000Z If the freeBusyType is BUSY, then this value can be excluded"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "Slot.end",
              "short": "Date/Time that the slot is to conclude",
              "definition": "Date/Time that the slot is to conclude.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "FREEBUSY:19980314T233000Z/(end) If the freeBusyType is BUSY, then this value can be excluded (as shown)"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "Slot.overbooked",
              "short": "This slot has already been overbooked, appointments are unlikely to be accepted for this time",
              "definition": "This slot has already been overbooked, appointments are unlikely to be accepted for this time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "If overbooked is missing, systems may assume that there are still appointments available"
            },
            {
              "path": "Slot.comment",
              "short": "Comments on the slot to describe any extended information. Such as custom constraints on the slot",
              "definition": "Comments on the slot to describe any extended information. Such as custom constraints on the slot.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Slot",
              "short": "A slot of time on a schedule that may be available for booking appointments",
              "definition": "A slot of time on a schedule that may be available for booking appointments.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "ical",
                  "map": "(refer to the Availability resource for the header mapping details)"
                },
                {
                  "identity": "w5",
                  "map": "workflow.scheduling"
                }
              ]
            },
            {
              "path": "Slot.identifier",
              "short": "External Ids for this item",
              "definition": "External Ids for this item.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Slot.type",
              "short": "The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource",
              "definition": "The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "preferred",
                "description": "Additional details about where the content was created (e.g. clinical specialty).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Slot.schedule",
              "short": "The schedule resource that this slot defines an interval of status information",
              "definition": "The schedule resource that this slot defines an interval of status information.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Schedule"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "Slot.freeBusyType",
              "short": "busy | free | busy-unavailable | busy-tentative",
              "definition": "busy | free | busy-unavailable | busy-tentative.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The free/busy status of a slot.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/slotstatus"
                }
              },
              "mapping": [
                {
                  "identity": "ical",
                  "map": "FREEBUSY;FBTYPE=(freeBusyType):19980314T233000Z/19980315T003000Z If the freeBusyType is BUSY, then this value can be excluded"
                }
              ]
            },
            {
              "path": "Slot.start",
              "short": "Date/Time that the slot is to begin",
              "definition": "Date/Time that the slot is to begin.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "FREEBUSY;FBTYPE=FREE:(start)/19980315T003000Z If the freeBusyType is BUSY, then this value can be excluded"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "Slot.end",
              "short": "Date/Time that the slot is to conclude",
              "definition": "Date/Time that the slot is to conclude.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "ical",
                  "map": "FREEBUSY:19980314T233000Z/(end) If the freeBusyType is BUSY, then this value can be excluded (as shown)"
                },
                {
                  "identity": "w5",
                  "map": "when.planned"
                }
              ]
            },
            {
              "path": "Slot.overbooked",
              "short": "This slot has already been overbooked, appointments are unlikely to be accepted for this time",
              "definition": "This slot has already been overbooked, appointments are unlikely to be accepted for this time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "If overbooked is missing, systems may assume that there are still appointments available"
            },
            {
              "path": "Slot.comment",
              "short": "Comments on the slot to describe any extended information. Such as custom constraints on the slot",
              "definition": "Comments on the slot to describe any extended information. Such as custom constraints on the slot.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Specimen",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Specimen",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Specimen",
        "name": "Specimen",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Specimen Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Specimen",
              "short": "Sample for analysis",
              "definition": "A sample to be used for analysis.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Role[classCode=SPEC]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "Specimen.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Specimen.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Specimen.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Specimen.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Specimen.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Specimen.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Specimen.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Specimen.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Specimen.identifier",
              "short": "External Identifier",
              "definition": "Id for specimen.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-2"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Specimen.status",
              "short": "available | unavailable | unsatisfactory | entered-in-error",
              "definition": "The availability of the specimen.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Codes providing the status/availability of a specimen.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/specimen-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-20"
                },
                {
                  "identity": "rim",
                  "map": "status"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Specimen.type",
              "short": "Kind of material that forms the specimen",
              "definition": "The kind of material that forms the specimen.",
              "comments": "The type can change the way that a specimen is handled, and drives what kind of analyses can properly be performed on the specimen. It is frequently used in diagnostic work flow decision making systems.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The type of the specimen.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v2-0487"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-4 and possibly SPM-5"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Specimen.parent",
              "short": "Specimen from which this specimen originated",
              "definition": "Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.",
              "comments": "The parent specimen could be the source from which the current specimen is derived by some processing step (e.g. an aliquot or isolate or extracted nucleic acids from clinical samples) or one of many specimens that were combined to create a pooled sample.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Specimen"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".scoper (if parent) .player.scopesRole[classCode=SPEC].player (if child)"
                }
              ]
            },
            {
              "path": "Specimen.subject",
              "short": "Where the specimen came from. This may be from the patient(s) or from the environment or a device",
              "definition": "Where the specimen came from. This may be from the patient(s) or from the environment or a device.",
              "requirements": "Must know the subject context.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".scoper  or  .scoper.playsRole"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Specimen.accessionIdentifier",
              "short": "Identifier assigned by the lab",
              "definition": "The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-30 (v2.7+)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Specimen.receivedTime",
              "short": "The time when specimen was received for processing",
              "definition": "Time when specimen was received for processing or testing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-18"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Specimen.collection",
              "short": "Collection details",
              "definition": "Details concerning the specimen collection.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-14"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "Specimen.collection.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Specimen.collection.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Specimen.collection.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Specimen.collection.collector",
              "short": "Who collected the specimen",
              "definition": "Person who collected the specimen.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRT"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].role"
                }
              ]
            },
            {
              "path": "Specimen.collection.comment",
              "short": "Collector comments",
              "definition": "To communicate any details or issues encountered during the specimen collection procedure.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            },
            {
              "path": "Specimen.collection.collected[x]",
              "short": "Collection time",
              "definition": "Time when specimen was collected from subject - the physiologically relevant time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-17"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "Specimen.collection.quantity",
              "short": "The quantity of specimen collected",
              "definition": "The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-12"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=SPEC].player.quantity"
                }
              ]
            },
            {
              "path": "Specimen.collection.method",
              "short": "Technique used to perform collection",
              "definition": "A coded value specifying the technique that is used to perform the procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The  technique that is used to perform the procedure",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/specimen-collection-method"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-7"
                },
                {
                  "identity": "rim",
                  "map": ".methodCode"
                }
              ]
            },
            {
              "path": "Specimen.collection.bodySite",
              "short": "Anatomical collection site",
              "definition": "Anatomical location from which the specimen was collected (if subject is a patient). This is the target site.  This element is not used for environmental specimens.",
              "comments": "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 [body-site-instance](extension-body-site-instance.html).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-8 and SPM-9"
                },
                {
                  "identity": "rim",
                  "map": ".targetSiteCode"
                }
              ]
            },
            {
              "path": "Specimen.treatment",
              "short": "Treatment and processing step details",
              "definition": "Details concerning treatment and processing steps for the specimen.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "Specimen.treatment.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Specimen.treatment.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Specimen.treatment.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Specimen.treatment.description",
              "short": "Textual description of procedure",
              "definition": "Textual description of procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "Specimen.treatment.procedure",
              "short": "Indicates the treatment or processing step  applied to the specimen",
              "definition": "A coded value specifying the procedure used to process the specimen.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Type indicating the technique used to process the specimen",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/specimen-treatment-procedure"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "Specimen.treatment.additive",
              "short": "Material used in the processing step",
              "definition": "Material used in the processing step.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-6"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=CSM].role[classCode=ADTV].code"
                }
              ]
            },
            {
              "path": "Specimen.container",
              "short": "Direct container of specimen (tube/slide, etc.)",
              "definition": "The container holding the specimen.  The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player.scopingRole[classCode=CONT].scoper"
                }
              ]
            },
            {
              "path": "Specimen.container.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Specimen.container.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Specimen.container.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Specimen.container.identifier",
              "short": "Id for the container",
              "definition": "Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SAC-3"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "Specimen.container.description",
              "short": "Textual description of the container",
              "definition": "Textual description of the container.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".desc"
                }
              ]
            },
            {
              "path": "Specimen.container.type",
              "short": "Kind of container directly associated with specimen",
              "definition": "The type of container associated with the specimen (e.g. slide, aliquot, etc.).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Type of specimen container",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/specimen-container-type"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-27"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "Specimen.container.capacity",
              "short": "Container volume or size",
              "definition": "The capacity (volume or other measure) the container may contain.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20"
                },
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "Specimen.container.specimenQuantity",
              "short": "Quantity of specimen within container",
              "definition": "The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SAC-23 (value) SAC-24 (units"
                },
                {
                  "identity": "rim",
                  "map": ".playedRole[classCode=CONT].quantity"
                }
              ]
            },
            {
              "path": "Specimen.container.additive[x]",
              "short": "Additive associated with container",
              "definition": "Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Substance added to specimen container",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v2-0371"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SAC-27"
                },
                {
                  "identity": "rim",
                  "map": ".scopesRole[classCode=ADTV].player"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Specimen",
              "short": "Sample for analysis",
              "definition": "A sample to be used for analysis.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Role[classCode=SPEC]"
                },
                {
                  "identity": "w5",
                  "map": "clinical.diagnostics"
                }
              ]
            },
            {
              "path": "Specimen.identifier",
              "short": "External Identifier",
              "definition": "Id for specimen.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-2"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Specimen.status",
              "short": "available | unavailable | unsatisfactory | entered-in-error",
              "definition": "The availability of the specimen.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Codes providing the status/availability of a specimen.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/specimen-status"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-20"
                },
                {
                  "identity": "rim",
                  "map": "status"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Specimen.type",
              "short": "Kind of material that forms the specimen",
              "definition": "The kind of material that forms the specimen.",
              "comments": "The type can change the way that a specimen is handled, and drives what kind of analyses can properly be performed on the specimen. It is frequently used in diagnostic work flow decision making systems.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "The type of the specimen.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v2-0487"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-4 and possibly SPM-5"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Specimen.parent",
              "short": "Specimen from which this specimen originated",
              "definition": "Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.",
              "comments": "The parent specimen could be the source from which the current specimen is derived by some processing step (e.g. an aliquot or isolate or extracted nucleic acids from clinical samples) or one of many specimens that were combined to create a pooled sample.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Specimen"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".scoper (if parent) .player.scopesRole[classCode=SPEC].player (if child)"
                }
              ]
            },
            {
              "path": "Specimen.subject",
              "short": "Where the specimen came from. This may be from the patient(s) or from the environment or a device",
              "definition": "Where the specimen came from. This may be from the patient(s) or from the environment or a device.",
              "requirements": "Must know the subject context.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Group"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".scoper  or  .scoper.playsRole"
                },
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Specimen.accessionIdentifier",
              "short": "Identifier assigned by the lab",
              "definition": "The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-30 (v2.7+)"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "Specimen.receivedTime",
              "short": "The time when specimen was received for processing",
              "definition": "Time when specimen was received for processing or testing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-18"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Specimen.collection",
              "short": "Collection details",
              "definition": "Details concerning the specimen collection.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-14"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "Specimen.collection.collector",
              "short": "Who collected the specimen",
              "definition": "Person who collected the specimen.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PRT"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].role"
                }
              ]
            },
            {
              "path": "Specimen.collection.comment",
              "short": "Collector comments",
              "definition": "To communicate any details or issues encountered during the specimen collection procedure.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "OBX"
                },
                {
                  "identity": "rim",
                  "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
                }
              ]
            },
            {
              "path": "Specimen.collection.collected[x]",
              "short": "Collection time",
              "definition": "Time when specimen was collected from subject - the physiologically relevant time.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                },
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-17"
                },
                {
                  "identity": "rim",
                  "map": ".effectiveTime"
                },
                {
                  "identity": "w5",
                  "map": "when.init"
                }
              ]
            },
            {
              "path": "Specimen.collection.quantity",
              "short": "The quantity of specimen collected",
              "definition": "The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-12"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role[classCode=SPEC].player.quantity"
                }
              ]
            },
            {
              "path": "Specimen.collection.method",
              "short": "Technique used to perform collection",
              "definition": "A coded value specifying the technique that is used to perform the procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "The  technique that is used to perform the procedure",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/specimen-collection-method"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-7"
                },
                {
                  "identity": "rim",
                  "map": ".methodCode"
                }
              ]
            },
            {
              "path": "Specimen.collection.bodySite",
              "short": "Anatomical collection site",
              "definition": "Anatomical location from which the specimen was collected (if subject is a patient). This is the target site.  This element is not used for environmental specimens.",
              "comments": "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 [body-site-instance](extension-body-site-instance.html).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Codes describing anatomical locations. May include laterality.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/body-site"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-8 and SPM-9"
                },
                {
                  "identity": "rim",
                  "map": ".targetSiteCode"
                }
              ]
            },
            {
              "path": "Specimen.treatment",
              "short": "Treatment and processing step details",
              "definition": "Details concerning treatment and processing steps for the specimen.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]"
                }
              ]
            },
            {
              "path": "Specimen.treatment.description",
              "short": "Textual description of procedure",
              "definition": "Textual description of procedure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".text"
                }
              ]
            },
            {
              "path": "Specimen.treatment.procedure",
              "short": "Indicates the treatment or processing step  applied to the specimen",
              "definition": "A coded value specifying the procedure used to process the specimen.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Type indicating the technique used to process the specimen",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/specimen-treatment-procedure"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "Specimen.treatment.additive",
              "short": "Material used in the processing step",
              "definition": "Material used in the processing step.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-6"
                },
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=CSM].role[classCode=ADTV].code"
                }
              ]
            },
            {
              "path": "Specimen.container",
              "short": "Direct container of specimen (tube/slide, etc.)",
              "definition": "The container holding the specimen.  The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player.scopingRole[classCode=CONT].scoper"
                }
              ]
            },
            {
              "path": "Specimen.container.identifier",
              "short": "Id for the container",
              "definition": "Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SAC-3"
                },
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "Specimen.container.description",
              "short": "Textual description of the container",
              "definition": "Textual description of the container.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".desc"
                }
              ]
            },
            {
              "path": "Specimen.container.type",
              "short": "Kind of container directly associated with specimen",
              "definition": "The type of container associated with the specimen (e.g. slide, aliquot, etc.).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Type of specimen container",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/specimen-container-type"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SPM-27"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "Specimen.container.capacity",
              "short": "Container volume or size",
              "definition": "The capacity (volume or other measure) the container may contain.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20"
                },
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "Specimen.container.specimenQuantity",
              "short": "Quantity of specimen within container",
              "definition": "The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SAC-23 (value) SAC-24 (units"
                },
                {
                  "identity": "rim",
                  "map": ".playedRole[classCode=CONT].quantity"
                }
              ]
            },
            {
              "path": "Specimen.container.additive[x]",
              "short": "Additive associated with container",
              "definition": "Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ],
              "binding": {
                "strength": "example",
                "description": "Substance added to specimen container",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/v2-0371"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "SAC-27"
                },
                {
                  "identity": "rim",
                  "map": ".scopesRole[classCode=ADTV].player"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/OperationDefinition/StructureDefinition-questionnaire",
      "resource": {
        "resourceType": "OperationDefinition",
        "id": "StructureDefinition-questionnaire",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "url": "http://hl7.org/fhir/OperationDefinition/StructureDefinition-questionnaire",
        "name": "Build Questionnaire",
        "status": "draft",
        "kind": "operation",
        "publisher": "HL7 (FHIR Project)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              },
              {
                "system": "email",
                "value": "fhir@lists.hl7.org"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Generates a [[[Questionnaire]]] instance  based on a specified [[[StructureDefinition]]], creating questions for each core element or extension element found in the [[[StructureDefinition]]].    If the operation is not called at the instance level, one of the *identifier*, *profile* or *url* 'in' parameters must be provided. If more than one is specified, servers may raise an error or may resolve with the parameter of their choice. If called at the instance level, these parameters will be ignored. The response will contain a [[[Questionnaire]]] instance based on the specified [[[StructureDefinition]]] and/or an [[[OperationOutcome]]] resource with errors or warnings.  Nested groups are used to handle complex structures and data types.  If the 'supportedOnly' parameter is set to true, only those elements marked as \"must support\" will be included.  This operation is intended to enable auto-generation of simple interfaces for arbitrary profiles.  The 'questionnaire' approach to data entry has limitations that will make it less optimal than custom-defined interfaces.  However, this function may be useful for simple applications or for systems that wish to support \"non-core\" resources with minimal development effort.",
        "code": "questionnaire",
        "notes": "**Open Issue**: Ideally, extensions should be populated in the generated [[[Questionnaire]]] that will support taking [[[QuestionnaireResponse]]] resources generated from the Questionnaire and turning them back into the appropriate resources.",
        "system": false,
        "type": [
          "StructureDefinition"
        ],
        "instance": true,
        "parameter": [
          {
            "name": "identifier",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "A logical profile identifier (i.e. 'StructureDefinition.identifier''). The server must know the profile or be able to retrieve it from other known repositories.",
            "type": "uri"
          },
          {
            "name": "profile",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The [[[StructureDefinition]]] is provided directly as part of the request. Servers may choose not to accept profiles in this fashion",
            "type": "token"
          },
          {
            "name": "url",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "The profile's official URL (i.e. 'StructureDefinition.url'). The server must know the profile or be able to retrieve it from other known repositories.",
            "type": "uri"
          },
          {
            "name": "supportedOnly",
            "use": "in",
            "min": 0,
            "max": "1",
            "documentation": "If true, the questionnaire will only include those elements marked as \"mustSupport='true'\" in the StructureDefinition.",
            "type": "boolean"
          },
          {
            "name": "return",
            "use": "out",
            "min": 1,
            "max": "1",
            "documentation": "The questionnaire form generated based on the StructureDefinition.",
            "type": "Questionnaire"
          }
        ]
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/StructureDefinition",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "StructureDefinition",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 2
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/StructureDefinition",
        "name": "StructureDefinition",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for StructureDefinition Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "iso11179",
            "uri": "http://metadata-standards.org/11179/",
            "name": "ISO 11179"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "StructureDefinition",
              "short": "Structural Definition",
              "definition": "A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions, and constraints on resources and data types.",
              "alias": [
                "Template",
                "Profile"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "constrainedType.empty() or snapshot.empty() or snapshot.element.first().path = constrainedType"
                    }
                  ],
                  "key": "sdf-11",
                  "requirements": "Ensure that the constrainedType is not inconsistent with the other information in the structure",
                  "severity": "error",
                  "human": "If there's a constrained type, its content must match the path name in the first element of a snapshot",
                  "xpath": "not(exists(f:constrainedType)) or not(exists(f:snapshot)) or (f:constrainedType/@value = f:snapshot/f:element[1]/f:path/@value)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "constrainedType != 'Extension' or (context and contextType)"
                    }
                  ],
                  "key": "sdf-5",
                  "severity": "error",
                  "human": "If the structure defines an extension then the structure must have context information",
                  "xpath": "not(f:constrainedType/@value = 'extension') or (exists(f:context) and exists(f:contextType))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "snapshot.element.base implies base"
                    }
                  ],
                  "key": "sdf-12",
                  "requirements": "Ensure that element.base appears with base or not",
                  "severity": "error",
                  "human": "element.base cannot appear if there is no base on the structure definition",
                  "xpath": "f:base or not(exists(f:snapshot/f:element/f:base) or exists(f:differential/f:element/f:base))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "base or abstract = 'true'"
                    }
                  ],
                  "key": "sdf-4",
                  "severity": "error",
                  "human": "A structure must have a base unless abstract = true",
                  "xpath": "(f:abstract/@value =true()) or exists(f:base)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "constrainedType or url = 'http://hl7.org/fhir/StructureDefinition/'+id"
                    }
                  ],
                  "key": "sdf-7",
                  "severity": "error",
                  "human": "If the structure describes a base Resource or Type, the URL has to start with \"http://hl7.org/fhir/StructureDefinition/\" and the tail must match the id",
                  "xpath": "exists(f:constrainedType) or f:url/@value=concat('http://hl7.org/fhir/StructureDefinition/', f:id/@value)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "snapshot or differential"
                    }
                  ],
                  "key": "sdf-6",
                  "severity": "error",
                  "human": "A structure must have either a differential, or a snapshot (or both)",
                  "xpath": "exists(f:snapshot) or exists(f:differential)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "constrainedType or snapshot.element.distinct(path)"
                    }
                  ],
                  "key": "sdf-1",
                  "severity": "error",
                  "human": "Element paths must be unique unless the structure is a constraint",
                  "xpath": "exists(f:constrainedType) or (count(f:snapshot/f:element) = count(distinct-values(f:snapshot/f:element/f:path/@value)))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "snapshot.element.tail().all(path.startsWith($context.snapshot.element.first().path+\".\")) and differential.element.tail().all(path.startsWith($context.differential.element.first().path+\".\"))"
                    }
                  ],
                  "key": "sdf-8",
                  "severity": "error",
                  "human": "In any snapshot or differential, all the elements except the first have to have a path that starts with the path of the first + \".\"",
                  "xpath": "string-join(for $elementName in f:*[self::f:snapshot or self::f:differential]/f:element[position()>1]/f:path/@value return if (starts-with($elementName, concat($elementName/ancestor::f:element/parent::f:*/f:element[1]/f:path/@value, '.'))) then '' else $elementName,'')=''"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "*.element.first().label.empty() and *.element.first().code.empty() and *.element.first().requirements.empty()"
                    }
                  ],
                  "key": "sdf-9",
                  "requirements": "Because these 3 fields seem to be have overlapping meaning with the ones in the root of StructureDefinition",
                  "severity": "error",
                  "human": "In any snapshot or differential, no label, code or requirements on the an element without a \".\" in the path (e.g. the first element)",
                  "xpath": "not(exists(f:snapshot/f:element[not(contains(f:path/@value, '.')) and (f:label or f:code or f:requirements)])) and not(exists(f:differential/f:element[not(contains(f:path/@value, '.')) and (f:label or f:code or f:requirements)]))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "base or abstract = 'true' or constrainedType"
                    }
                  ],
                  "key": "sdf-10",
                  "requirements": "Ensure that there's a base unless the type is abstract and there's no constrainedType",
                  "severity": "error",
                  "human": "If the structure is not abstract, or there's a constrained type, then there SHALL be a base",
                  "xpath": "(f:abstract/@value=true()) or not(exists(f:constrainedType)) or exists(f:base)"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "conformance.content"
                }
              ]
            },
            {
              "path": "StructureDefinition.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "StructureDefinition.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "StructureDefinition.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "StructureDefinition.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "StructureDefinition.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "StructureDefinition.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "StructureDefinition.url",
              "short": "Absolute URL used to reference this StructureDefinition",
              "definition": "An absolute URL that is used to identify this structure definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this structure definition is (or will be) published.",
              "requirements": "So you can say, in a StructureDefinition, what the full extension URLs should be. This is required to allow hosting StructureDefinitions on multiple different servers, and to allow for the editorial process.",
              "alias": [
                "url",
                "authoritative-url",
                "destination",
                "identity"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "StructureDefinition.identifier",
              "short": "Other identifiers for the StructureDefinition",
              "definition": "Formal identifier that is used to identify this StructureDefinition when it is represented in other formats, or referenced in a specification, model, design or an instance  (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "Identifier part"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "StructureDefinition.version",
              "short": "Logical id for this version of the StructureDefinition",
              "definition": "The identifier that is used to identify this version of the StructureDefinition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the StructureDefinition author manually.",
              "requirements": "There may be multiple resource versions of the StructureDefinition that have this same identifier. The resource version id will change for technical reasons, whereas the stated version number needs to be under the author's control.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "Version"
                },
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "StructureDefinition.name",
              "short": "Informal name for this StructureDefinition",
              "definition": "A free text natural language name identifying the StructureDefinition.",
              "comments": "Not expected to be globally unique.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.display",
              "short": "Use this name when displaying the value",
              "definition": "Defined so that applications can use this name when displaying the value of the extension to the user.",
              "comments": "Applications don't have to use this name, but can always fall back to it. In the absence of a value for this element, use the name.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.status",
              "short": "draft | active | retired",
              "definition": "The status of the StructureDefinition.",
              "requirements": "Allows filtering of StructureDefinitions that are appropriate for use vs. not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "Registration status"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "StructureDefinition.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This StructureDefinition was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "requirements": "Allows filtering of StructureDefinitions that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "Registration status"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "StructureDefinition.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the structure definition.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the structure definition.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "Registration Authority"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "StructureDefinition.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "StructureDefinition.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "StructureDefinition.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "StructureDefinition.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the structure definition.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.date",
              "short": "Date for this version of the StructureDefinition",
              "definition": "The date this version of the structure definition was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the structure definition changes.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "StructureDefinition.description",
              "short": "Natural language description of the StructureDefinition",
              "definition": "A free text natural language description of the StructureDefinition and its use.",
              "comments": "This field can be used for things such as why the StructureDefinition was written, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc.  It is *not* a rendering of the StructureDefinition as conveyed in StructureDefinition.text. This item SHOULD be populated unless the information is available from context.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.useContext",
              "short": "Content intends to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of structure definitions.",
              "requirements": "Assist in searching for appropriate content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              },
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "COMPONENT, PROPERTY, TIME_ASPCT, SYSTEM, SCALE_TYP, METHOD_TYP, CLASS, CLASSTYPE, ORDER_OBS, DOCUMENT_SECTION, HL7_ATTACHMENT_STRUCTURE"
                }
              ]
            },
            {
              "path": "StructureDefinition.requirements",
              "short": "Scope and Usage this structure definition is for",
              "definition": "Explains why this structure definition is needed and why it's been constrained as it has.",
              "comments": "This element does not describe the usage of the structure definition (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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "StructureDefinition.copyright",
              "short": "Use and/or publishing restrictions",
              "definition": "A copyright statement relating to the structure definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.",
              "alias": [
                "License",
                "Restrictions"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "StructureDefinition.code",
              "short": "Assist with indexing and finding",
              "definition": "A set of terms from external terminologies that may be used to assist with indexing and searching of templates.",
              "requirements": "Assist in searching for appropriate StructureDefinitions.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for the meaning of the defined structure (SNOMED CT and LOINC codes, as an example).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/profile-code"
                }
              },
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "keywords"
                }
              ]
            },
            {
              "path": "StructureDefinition.fhirVersion",
              "short": "FHIR Version this StructureDefinition targets",
              "definition": "The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.2.0 for this version.",
              "comments": "A StructureDefinition does not need to specify the target it applies to,as StructureDefinitions will often be valid across multiple versions of FHIR. FHIR tooling can determine whether a StructureDefinition is consistent with a particular StructureDefinition if desired.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.mapping",
              "short": "External specification that the content is mapped to",
              "definition": "An external specification that the content is mapped to.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "name or uri"
                    }
                  ],
                  "key": "sdf-2",
                  "severity": "error",
                  "human": "Must have at a name or a uri (or both)",
                  "xpath": "exists(f:uri) or exists(f:name)"
                }
              ]
            },
            {
              "path": "StructureDefinition.mapping.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "StructureDefinition.mapping.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "StructureDefinition.mapping.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "StructureDefinition.mapping.identity",
              "short": "Internal id when this mapping is used",
              "definition": "An Internal id that is used to identify this mapping set when specific mappings are made.",
              "comments": "The specification is described once, with general comments, and then specific mappings are made that reference this declaration.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "StructureDefinition.mapping.uri",
              "short": "Identifies what this mapping refers to",
              "definition": "An absolute URI that identifies the specification that this mapping is expressed to.",
              "comments": "A formal identity for the specification being mapped to helps with identifying maps consistently.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "condition": [
                "sdf-2"
              ]
            },
            {
              "path": "StructureDefinition.mapping.name",
              "short": "Names what this mapping refers to",
              "definition": "A name for the specification that is being mapped to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "sdf-2"
              ]
            },
            {
              "path": "StructureDefinition.mapping.comments",
              "short": "Versions, Issues, Scope limitations etc.",
              "definition": "Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "StructureDefinition.kind",
              "short": "datatype | resource | logical",
              "definition": "Defines the kind of structure that this definition is describing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Defines the type of structure that a definition is describing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/structure-definition-kind"
                }
              }
            },
            {
              "path": "StructureDefinition.constrainedType",
              "short": "Any datatype or resource, including abstract ones",
              "definition": "The type of type that is being constrained - a data type, an extension, a resource, including abstract ones. If this field is present, it indicates that the structure definition is a constraint. If it is not present, then the structure definition is the definition of a base structure.",
              "comments": "if a constrained type is present, then there SHALL be a base resource as well. Note that the constrained type could be determined by chasing through the base references until the base definition is reached, or by looking at the path of the first element in the snapshot - if present - but providing the constrainedType directly makes for simpler tooling and indexing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "condition": [
                "sdf-10",
                "sdf-11"
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Either a resource or a data type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/defined-types"
                }
              }
            },
            {
              "path": "StructureDefinition.abstract",
              "short": "Whether the structure is abstract",
              "definition": "Whether structure this definition describes is abstract or not  - that is, whether an actual exchanged item can ever be of this type.",
              "comments": "Abstract Resources cannot be instantiated - a concrete sub-type must be used. Abstract datatypes and extensions cannot be used in an instance. Flagging a constraint structure as abstract conveys design intent but makes no difference to how the structure definition is handled. Note that inline declared elements that are given the type \"Element\" in the profile, but have children described, are anonymous concrete types that specialise Element. Abstract is not relevant for logical models.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.contextType",
              "short": "resource | datatype | mapping | extension",
              "definition": "If this is an extension, Identifies the context within FHIR resources where the extension can be used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "condition": [
                "sdf-5"
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "How an extension context is interpreted.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/extension-context"
                }
              }
            },
            {
              "path": "StructureDefinition.context",
              "short": "Where the extension can be used in instances",
              "definition": "Identifies the types of resource or data type elements to which the extension can be applied.",
              "comments": "If the context is an element that can have multiple types, then use (e.g.) value[x] if the extension works on all choice types, or otherwise an enumeration of explicitly named elements if not. Note that a context of \"string\" doesn't mean that the extension can be used with one of the string patterns such as \"id\" etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "sdf-5"
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.base",
              "short": "Structure that this set of constraints applies to",
              "definition": "An absolute URI that is the base structure from which this set of constraints is derived.",
              "comments": "If differential constraints are specified in this structure, they are applied to the base in a \"differential\" fashion. If there is no base, then the differential constraints cannot be provided (snapshot only). Differential structures are useful for the editing perspective, and snapshot structures are suitable for operational use. The FHIR Project provides a number of tools/services to populate snapshots from differential constraints. Logical Models have a base of \"Element\" or another logical model.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "condition": [
                "sdf-4",
                "sdf-10"
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.snapshot",
              "short": "Snapshot view of the structure",
              "definition": "A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base StructureDefinition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "sdf-6"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "element.all(definition and min and max)"
                    }
                  ],
                  "key": "sdf-3",
                  "severity": "error",
                  "human": "Each element definition in a snapshot must have a formal definition and cardinalities",
                  "xpath": "count(f:element) = count(f:element[exists(f:definition) and exists(f:min) and exists(f:max)])"
                }
              ]
            },
            {
              "path": "StructureDefinition.snapshot.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "StructureDefinition.snapshot.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "StructureDefinition.snapshot.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "StructureDefinition.snapshot.element",
              "short": "Definition of elements in the resource (if no StructureDefinition)",
              "definition": "Captures constraints on each element within the resource.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "ElementDefinition"
                }
              ],
              "condition": [
                "sdf-3"
              ],
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "--"
                }
              ]
            },
            {
              "path": "StructureDefinition.differential",
              "short": "Differential view of the structure",
              "definition": "A differential view is expressed relative to the base StructureDefinition - a statement of differences that it applies.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "sdf-6"
              ]
            },
            {
              "path": "StructureDefinition.differential.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "StructureDefinition.differential.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "StructureDefinition.differential.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "StructureDefinition.differential.element",
              "short": "Definition of elements in the resource (if no StructureDefinition)",
              "definition": "Captures constraints on each element within the resource.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "ElementDefinition"
                }
              ],
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "--"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "StructureDefinition",
              "short": "Structural Definition",
              "definition": "A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions, and constraints on resources and data types.",
              "alias": [
                "Template",
                "Profile"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "constrainedType.empty() or snapshot.empty() or snapshot.element.first().path = constrainedType"
                    }
                  ],
                  "key": "sdf-11",
                  "requirements": "Ensure that the constrainedType is not inconsistent with the other information in the structure",
                  "severity": "error",
                  "human": "If there's a constrained type, its content must match the path name in the first element of a snapshot",
                  "xpath": "not(exists(f:constrainedType)) or not(exists(f:snapshot)) or (f:constrainedType/@value = f:snapshot/f:element[1]/f:path/@value)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "constrainedType != 'Extension' or (context and contextType)"
                    }
                  ],
                  "key": "sdf-5",
                  "severity": "error",
                  "human": "If the structure defines an extension then the structure must have context information",
                  "xpath": "not(f:constrainedType/@value = 'extension') or (exists(f:context) and exists(f:contextType))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "snapshot.element.base implies base"
                    }
                  ],
                  "key": "sdf-12",
                  "requirements": "Ensure that element.base appears with base or not",
                  "severity": "error",
                  "human": "element.base cannot appear if there is no base on the structure definition",
                  "xpath": "f:base or not(exists(f:snapshot/f:element/f:base) or exists(f:differential/f:element/f:base))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "base or abstract = 'true'"
                    }
                  ],
                  "key": "sdf-4",
                  "severity": "error",
                  "human": "A structure must have a base unless abstract = true",
                  "xpath": "(f:abstract/@value =true()) or exists(f:base)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "constrainedType or url = 'http://hl7.org/fhir/StructureDefinition/'+id"
                    }
                  ],
                  "key": "sdf-7",
                  "severity": "error",
                  "human": "If the structure describes a base Resource or Type, the URL has to start with \"http://hl7.org/fhir/StructureDefinition/\" and the tail must match the id",
                  "xpath": "exists(f:constrainedType) or f:url/@value=concat('http://hl7.org/fhir/StructureDefinition/', f:id/@value)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "snapshot or differential"
                    }
                  ],
                  "key": "sdf-6",
                  "severity": "error",
                  "human": "A structure must have either a differential, or a snapshot (or both)",
                  "xpath": "exists(f:snapshot) or exists(f:differential)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "constrainedType or snapshot.element.distinct(path)"
                    }
                  ],
                  "key": "sdf-1",
                  "severity": "error",
                  "human": "Element paths must be unique unless the structure is a constraint",
                  "xpath": "exists(f:constrainedType) or (count(f:snapshot/f:element) = count(distinct-values(f:snapshot/f:element/f:path/@value)))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "snapshot.element.tail().all(path.startsWith($context.snapshot.element.first().path+\".\")) and differential.element.tail().all(path.startsWith($context.differential.element.first().path+\".\"))"
                    }
                  ],
                  "key": "sdf-8",
                  "severity": "error",
                  "human": "In any snapshot or differential, all the elements except the first have to have a path that starts with the path of the first + \".\"",
                  "xpath": "string-join(for $elementName in f:*[self::f:snapshot or self::f:differential]/f:element[position()>1]/f:path/@value return if (starts-with($elementName, concat($elementName/ancestor::f:element/parent::f:*/f:element[1]/f:path/@value, '.'))) then '' else $elementName,'')=''"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "*.element.first().label.empty() and *.element.first().code.empty() and *.element.first().requirements.empty()"
                    }
                  ],
                  "key": "sdf-9",
                  "requirements": "Because these 3 fields seem to be have overlapping meaning with the ones in the root of StructureDefinition",
                  "severity": "error",
                  "human": "In any snapshot or differential, no label, code or requirements on the an element without a \".\" in the path (e.g. the first element)",
                  "xpath": "not(exists(f:snapshot/f:element[not(contains(f:path/@value, '.')) and (f:label or f:code or f:requirements)])) and not(exists(f:differential/f:element[not(contains(f:path/@value, '.')) and (f:label or f:code or f:requirements)]))"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "base or abstract = 'true' or constrainedType"
                    }
                  ],
                  "key": "sdf-10",
                  "requirements": "Ensure that there's a base unless the type is abstract and there's no constrainedType",
                  "severity": "error",
                  "human": "If the structure is not abstract, or there's a constrained type, then there SHALL be a base",
                  "xpath": "(f:abstract/@value=true()) or not(exists(f:constrainedType)) or exists(f:base)"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                },
                {
                  "identity": "w5",
                  "map": "conformance.content"
                }
              ]
            },
            {
              "path": "StructureDefinition.url",
              "short": "Absolute URL used to reference this StructureDefinition",
              "definition": "An absolute URL that is used to identify this structure definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this structure definition is (or will be) published.",
              "requirements": "So you can say, in a StructureDefinition, what the full extension URLs should be. This is required to allow hosting StructureDefinitions on multiple different servers, and to allow for the editorial process.",
              "alias": [
                "url",
                "authoritative-url",
                "destination",
                "identity"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "StructureDefinition.identifier",
              "short": "Other identifiers for the StructureDefinition",
              "definition": "Formal identifier that is used to identify this StructureDefinition when it is represented in other formats, or referenced in a specification, model, design or an instance  (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI).",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "Identifier part"
                },
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "StructureDefinition.version",
              "short": "Logical id for this version of the StructureDefinition",
              "definition": "The identifier that is used to identify this version of the StructureDefinition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the StructureDefinition author manually.",
              "requirements": "There may be multiple resource versions of the StructureDefinition that have this same identifier. The resource version id will change for technical reasons, whereas the stated version number needs to be under the author's control.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "Version"
                },
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "StructureDefinition.name",
              "short": "Informal name for this StructureDefinition",
              "definition": "A free text natural language name identifying the StructureDefinition.",
              "comments": "Not expected to be globally unique.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.display",
              "short": "Use this name when displaying the value",
              "definition": "Defined so that applications can use this name when displaying the value of the extension to the user.",
              "comments": "Applications don't have to use this name, but can always fall back to it. In the absence of a value for this element, use the name.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.status",
              "short": "draft | active | retired",
              "definition": "The status of the StructureDefinition.",
              "requirements": "Allows filtering of StructureDefinitions that are appropriate for use vs. not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "Registration status"
                },
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "StructureDefinition.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This StructureDefinition was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "requirements": "Allows filtering of StructureDefinitions that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "Registration status"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "StructureDefinition.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the structure definition.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the structure definition.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "Registration Authority"
                },
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "StructureDefinition.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the structure definition.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.date",
              "short": "Date for this version of the StructureDefinition",
              "definition": "The date this version of the structure definition was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the structure definition changes.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "StructureDefinition.description",
              "short": "Natural language description of the StructureDefinition",
              "definition": "A free text natural language description of the StructureDefinition and its use.",
              "comments": "This field can be used for things such as why the StructureDefinition was written, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc.  It is *not* a rendering of the StructureDefinition as conveyed in StructureDefinition.text. This item SHOULD be populated unless the information is available from context.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.useContext",
              "short": "Content intends to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of structure definitions.",
              "requirements": "Assist in searching for appropriate content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              },
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "COMPONENT, PROPERTY, TIME_ASPCT, SYSTEM, SCALE_TYP, METHOD_TYP, CLASS, CLASSTYPE, ORDER_OBS, DOCUMENT_SECTION, HL7_ATTACHMENT_STRUCTURE"
                }
              ]
            },
            {
              "path": "StructureDefinition.requirements",
              "short": "Scope and Usage this structure definition is for",
              "definition": "Explains why this structure definition is needed and why it's been constrained as it has.",
              "comments": "This element does not describe the usage of the structure definition (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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "StructureDefinition.copyright",
              "short": "Use and/or publishing restrictions",
              "definition": "A copyright statement relating to the structure definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.",
              "alias": [
                "License",
                "Restrictions"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "StructureDefinition.code",
              "short": "Assist with indexing and finding",
              "definition": "A set of terms from external terminologies that may be used to assist with indexing and searching of templates.",
              "requirements": "Assist in searching for appropriate StructureDefinitions.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Codes for the meaning of the defined structure (SNOMED CT and LOINC codes, as an example).",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/profile-code"
                }
              },
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "keywords"
                }
              ]
            },
            {
              "path": "StructureDefinition.fhirVersion",
              "short": "FHIR Version this StructureDefinition targets",
              "definition": "The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.2.0 for this version.",
              "comments": "A StructureDefinition does not need to specify the target it applies to,as StructureDefinitions will often be valid across multiple versions of FHIR. FHIR tooling can determine whether a StructureDefinition is consistent with a particular StructureDefinition if desired.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.mapping",
              "short": "External specification that the content is mapped to",
              "definition": "An external specification that the content is mapped to.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "name or uri"
                    }
                  ],
                  "key": "sdf-2",
                  "severity": "error",
                  "human": "Must have at a name or a uri (or both)",
                  "xpath": "exists(f:uri) or exists(f:name)"
                }
              ]
            },
            {
              "path": "StructureDefinition.mapping.identity",
              "short": "Internal id when this mapping is used",
              "definition": "An Internal id that is used to identify this mapping set when specific mappings are made.",
              "comments": "The specification is described once, with general comments, and then specific mappings are made that reference this declaration.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "StructureDefinition.mapping.uri",
              "short": "Identifies what this mapping refers to",
              "definition": "An absolute URI that identifies the specification that this mapping is expressed to.",
              "comments": "A formal identity for the specification being mapped to helps with identifying maps consistently.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "condition": [
                "sdf-2"
              ]
            },
            {
              "path": "StructureDefinition.mapping.name",
              "short": "Names what this mapping refers to",
              "definition": "A name for the specification that is being mapped to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "sdf-2"
              ]
            },
            {
              "path": "StructureDefinition.mapping.comments",
              "short": "Versions, Issues, Scope limitations etc.",
              "definition": "Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "StructureDefinition.kind",
              "short": "datatype | resource | logical",
              "definition": "Defines the kind of structure that this definition is describing.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Defines the type of structure that a definition is describing.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/structure-definition-kind"
                }
              }
            },
            {
              "path": "StructureDefinition.constrainedType",
              "short": "Any datatype or resource, including abstract ones",
              "definition": "The type of type that is being constrained - a data type, an extension, a resource, including abstract ones. If this field is present, it indicates that the structure definition is a constraint. If it is not present, then the structure definition is the definition of a base structure.",
              "comments": "if a constrained type is present, then there SHALL be a base resource as well. Note that the constrained type could be determined by chasing through the base references until the base definition is reached, or by looking at the path of the first element in the snapshot - if present - but providing the constrainedType directly makes for simpler tooling and indexing.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "condition": [
                "sdf-10",
                "sdf-11"
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Either a resource or a data type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/defined-types"
                }
              }
            },
            {
              "path": "StructureDefinition.abstract",
              "short": "Whether the structure is abstract",
              "definition": "Whether structure this definition describes is abstract or not  - that is, whether an actual exchanged item can ever be of this type.",
              "comments": "Abstract Resources cannot be instantiated - a concrete sub-type must be used. Abstract datatypes and extensions cannot be used in an instance. Flagging a constraint structure as abstract conveys design intent but makes no difference to how the structure definition is handled. Note that inline declared elements that are given the type \"Element\" in the profile, but have children described, are anonymous concrete types that specialise Element. Abstract is not relevant for logical models.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.contextType",
              "short": "resource | datatype | mapping | extension",
              "definition": "If this is an extension, Identifies the context within FHIR resources where the extension can be used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "condition": [
                "sdf-5"
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "How an extension context is interpreted.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/extension-context"
                }
              }
            },
            {
              "path": "StructureDefinition.context",
              "short": "Where the extension can be used in instances",
              "definition": "Identifies the types of resource or data type elements to which the extension can be applied.",
              "comments": "If the context is an element that can have multiple types, then use (e.g.) value[x] if the extension works on all choice types, or otherwise an enumeration of explicitly named elements if not. Note that a context of \"string\" doesn't mean that the extension can be used with one of the string patterns such as \"id\" etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "string"
                }
              ],
              "condition": [
                "sdf-5"
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.base",
              "short": "Structure that this set of constraints applies to",
              "definition": "An absolute URI that is the base structure from which this set of constraints is derived.",
              "comments": "If differential constraints are specified in this structure, they are applied to the base in a \"differential\" fashion. If there is no base, then the differential constraints cannot be provided (snapshot only). Differential structures are useful for the editing perspective, and snapshot structures are suitable for operational use. The FHIR Project provides a number of tools/services to populate snapshots from differential constraints. Logical Models have a base of \"Element\" or another logical model.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "condition": [
                "sdf-4",
                "sdf-10"
              ],
              "isSummary": true
            },
            {
              "path": "StructureDefinition.snapshot",
              "short": "Snapshot view of the structure",
              "definition": "A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base StructureDefinition.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "sdf-6"
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "element.all(definition and min and max)"
                    }
                  ],
                  "key": "sdf-3",
                  "severity": "error",
                  "human": "Each element definition in a snapshot must have a formal definition and cardinalities",
                  "xpath": "count(f:element) = count(f:element[exists(f:definition) and exists(f:min) and exists(f:max)])"
                }
              ]
            },
            {
              "path": "StructureDefinition.snapshot.element",
              "short": "Definition of elements in the resource (if no StructureDefinition)",
              "definition": "Captures constraints on each element within the resource.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "ElementDefinition"
                }
              ],
              "condition": [
                "sdf-3"
              ],
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "--"
                }
              ]
            },
            {
              "path": "StructureDefinition.differential",
              "short": "Differential view of the structure",
              "definition": "A differential view is expressed relative to the base StructureDefinition - a statement of differences that it applies.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "condition": [
                "sdf-6"
              ]
            },
            {
              "path": "StructureDefinition.differential.element",
              "short": "Definition of elements in the resource (if no StructureDefinition)",
              "definition": "Captures constraints on each element within the resource.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "ElementDefinition"
                }
              ],
              "mapping": [
                {
                  "identity": "iso11179",
                  "map": "--"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Subscription",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Subscription",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Subscription",
        "name": "Subscription",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Subscription Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Subscription",
              "short": "A server push subscription criteria",
              "definition": "The subscription resource is used to define a push based subscription from a server to another system. Once a subscription is registered with the server, the server checks every resource that is created or updated, and if the resource matches the given criteria, it sends a message on the defined \"channel\" so that another system is able to take an appropriate action.",
              "alias": [
                "WebHook",
                "Hook",
                "Routing Rule"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.exchange"
                }
              ]
            },
            {
              "path": "Subscription.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Subscription.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Subscription.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Subscription.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Subscription.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Subscription.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Subscription.criteria",
              "short": "Rule for server push criteria",
              "definition": "The rules that the server should use to determine when to generate notifications for this subscription.",
              "comments": "The rules are a search criteria (without the [base] part). Like Bundle.entry.request.url, it has no leading \"/\".",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.contact",
              "short": "Contact details for source (e.g. troubleshooting)",
              "definition": "Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Subscription.reason",
              "short": "Description of why this subscription was created",
              "definition": "A description of why this subscription is defined.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "Subscription.status",
              "short": "requested | active | error | off",
              "definition": "The status of the subscription, which marks the server state for managing the subscription.",
              "comments": "A client can only submit subscription resources in the requested or off state. Only the server can  move a subscription from requested to active, and then to error. Either the server or the client can turn a subscription off.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of a subscription.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/subscription-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Subscription.error",
              "short": "Latest error note",
              "definition": "A record of the last error that occurred when the server processed a notification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.channel",
              "short": "The channel on which to report matches to the criteria",
              "definition": "Details where to send notifications when resources are received that meet the criteria.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.channel.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Subscription.channel.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Subscription.channel.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Subscription.channel.type",
              "short": "rest-hook | websocket | email | sms | message",
              "definition": "The type of channel to send notifications on.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The type of method used to execute a subscription.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/subscription-channel-type"
                }
              }
            },
            {
              "path": "Subscription.channel.endpoint",
              "short": "Where the channel points to",
              "definition": "The uri that describes the actual end-point to send messages to.",
              "comments": "For rest-hook, and websocket, the end-point must be an http: or https: URL; for email, a mailto: url, for sms, a tel: url, and for message the endpoint can be in any form of url the server understands (usually, http: or mllp:). The URI is allowed to be relative; in which case, it is relative to the server end-point (since their may be more than one, clients should avoid using relative URIs).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.channel.payload",
              "short": "Mimetype to send, or blank for no payload",
              "definition": "The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification.",
              "comments": "Sending the payload has obvious security consequences. The server is responsible for ensuring that the content is appropriately secured.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.channel.header",
              "short": "Usage depends on the channel type",
              "definition": "Additional headers / information to send as part of the notification.",
              "comments": "Exactly what these mean depend on the channel type. The can convey additional information to the recipient and/or meet security requirements.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.end",
              "short": "When to automatically delete the subscription",
              "definition": "The time for the server to turn the subscription off.",
              "comments": "The server is permitted to deviate from this time, but should observe it.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Subscription.tag",
              "short": "A tag to add to matching resources",
              "definition": "A tag to add to any resource that matches the criteria, after the subscription is processed.",
              "comments": "So that other systems can tell which resources have been the subject of a notification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Tags to put on a resource after subscriptions have been sent.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/subscription-tag"
                }
              }
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Subscription",
              "short": "A server push subscription criteria",
              "definition": "The subscription resource is used to define a push based subscription from a server to another system. Once a subscription is registered with the server, the server checks every resource that is created or updated, and if the resource matches the given criteria, it sends a message on the defined \"channel\" so that another system is able to take an appropriate action.",
              "alias": [
                "WebHook",
                "Hook",
                "Routing Rule"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                },
                {
                  "identity": "w5",
                  "map": "infrastructure.exchange"
                }
              ]
            },
            {
              "path": "Subscription.criteria",
              "short": "Rule for server push criteria",
              "definition": "The rules that the server should use to determine when to generate notifications for this subscription.",
              "comments": "The rules are a search criteria (without the [base] part). Like Bundle.entry.request.url, it has no leading \"/\".",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.contact",
              "short": "Contact details for source (e.g. troubleshooting)",
              "definition": "Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.focus"
                }
              ]
            },
            {
              "path": "Subscription.reason",
              "short": "Description of why this subscription was created",
              "definition": "A description of why this subscription is defined.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "Subscription.status",
              "short": "requested | active | error | off",
              "definition": "The status of the subscription, which marks the server state for managing the subscription.",
              "comments": "A client can only submit subscription resources in the requested or off state. Only the server can  move a subscription from requested to active, and then to error. Either the server or the client can turn a subscription off.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The status of a subscription.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/subscription-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "Subscription.error",
              "short": "Latest error note",
              "definition": "A record of the last error that occurred when the server processed a notification.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.channel",
              "short": "The channel on which to report matches to the criteria",
              "definition": "Details where to send notifications when resources are received that meet the criteria.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.channel.type",
              "short": "rest-hook | websocket | email | sms | message",
              "definition": "The type of channel to send notifications on.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The type of method used to execute a subscription.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/subscription-channel-type"
                }
              }
            },
            {
              "path": "Subscription.channel.endpoint",
              "short": "Where the channel points to",
              "definition": "The uri that describes the actual end-point to send messages to.",
              "comments": "For rest-hook, and websocket, the end-point must be an http: or https: URL; for email, a mailto: url, for sms, a tel: url, and for message the endpoint can be in any form of url the server understands (usually, http: or mllp:). The URI is allowed to be relative; in which case, it is relative to the server end-point (since their may be more than one, clients should avoid using relative URIs).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.channel.payload",
              "short": "Mimetype to send, or blank for no payload",
              "definition": "The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification.",
              "comments": "Sending the payload has obvious security consequences. The server is responsible for ensuring that the content is appropriately secured.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.channel.header",
              "short": "Usage depends on the channel type",
              "definition": "Additional headers / information to send as part of the notification.",
              "comments": "Exactly what these mean depend on the channel type. The can convey additional information to the recipient and/or meet security requirements.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Subscription.end",
              "short": "When to automatically delete the subscription",
              "definition": "The time for the server to turn the subscription off.",
              "comments": "The server is permitted to deviate from this time, but should observe it.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "instant"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.done"
                }
              ]
            },
            {
              "path": "Subscription.tag",
              "short": "A tag to add to matching resources",
              "definition": "A tag to add to any resource that matches the criteria, after the subscription is processed.",
              "comments": "So that other systems can tell which resources have been the subject of a notification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Tags to put on a resource after subscriptions have been sent.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/subscription-tag"
                }
              }
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/Substance",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "Substance",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 1
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/Substance",
        "name": "Substance",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for Substance Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "orim",
            "uri": "http://hl7.org/orim",
            "name": "Ontological RIM Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "Substance",
              "short": "A homogeneous material with a definite composition",
              "definition": "A homogeneous material with a definite composition.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "orim",
                  "map": "fhir:Substance rdfs:subClassOf   rim:Entity, [      a owl:Restriction;     owl:onProperty  rim:Act.classCode;     owl:allValuesFrom  cs:EntityClass\\#MAT   ]."
                },
                {
                  "identity": "rim",
                  "map": "Material"
                },
                {
                  "identity": "w5",
                  "map": "administrative.entity"
                }
              ]
            },
            {
              "path": "Substance.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Substance.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "Substance.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "Substance.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "Substance.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "Substance.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Substance.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Substance.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Substance.identifier",
              "short": "Unique identifier",
              "definition": "Unique identifier for the substance.",
              "comments": "This identifier is associated with the kind of substance in contrast to the  Substance.instance.identifier which is associated with the package/container.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "Substance.category",
              "short": "What class/type of substance this is",
              "definition": "A code that classifies the general type of substance.  This is used  for searching, sorting and display purposes.",
              "comments": "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 Substance.code.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Category or classification of substance",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/substance-category"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Substance.code",
              "short": "What substance this is",
              "definition": "A code (or set of codes) that identify this substance.",
              "comments": "This could be a reference to an externally defined code.  It could also be a locally assigned code (e.g. a formulary),  optionally with translations to the standard drug codes.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Substance codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/substance-code"
                }
              },
              "mapping": [
                {
                  "identity": "orim",
                  "map": "fhir:Substance.code rdfs:subPropertyOf rim:Entity.code"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Substance.description",
              "short": "Textual description of the substance, comments",
              "definition": "A description of the substance - its appearance, handling requirements, and other usage notes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player.desc"
                }
              ]
            },
            {
              "path": "Substance.instance",
              "short": "If this describes a specific package/container of the substance",
              "definition": "Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "meaningWhenMissing": "If this element is not present, then the substance resource describes a kind of substance",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player.determinerCode"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Substance.instance.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Substance.instance.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Substance.instance.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Substance.instance.identifier",
              "short": "Identifier of the package/container",
              "definition": "Identifier associated with the package/container (usually a label affixed directly).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "Substance.instance.expiry",
              "short": "When no longer valid to use",
              "definition": "When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".expiryTime"
                }
              ]
            },
            {
              "path": "Substance.instance.quantity",
              "short": "Amount of substance in the package",
              "definition": "The amount of the substance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player.quantity"
                }
              ]
            },
            {
              "path": "Substance.ingredient",
              "short": "Composition information about the substance",
              "definition": "A substance can be composed of other substances.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player.scopesRole[classCode=INGR]"
                }
              ]
            },
            {
              "path": "Substance.ingredient.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Substance.ingredient.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "Substance.ingredient.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "Substance.ingredient.quantity",
              "short": "Optional amount (concentration)",
              "definition": "The amount of the ingredient in the substance - a concentration ratio.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "Substance.ingredient.substance",
              "short": "A component of the substance",
              "definition": "Another substance that is a component of this substance.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "Substance",
              "short": "A homogeneous material with a definite composition",
              "definition": "A homogeneous material with a definite composition.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "orim",
                  "map": "fhir:Substance rdfs:subClassOf   rim:Entity, [      a owl:Restriction;     owl:onProperty  rim:Act.classCode;     owl:allValuesFrom  cs:EntityClass\\#MAT   ]."
                },
                {
                  "identity": "rim",
                  "map": "Material"
                },
                {
                  "identity": "w5",
                  "map": "administrative.entity"
                }
              ]
            },
            {
              "path": "Substance.identifier",
              "short": "Unique identifier",
              "definition": "Unique identifier for the substance.",
              "comments": "This identifier is associated with the kind of substance in contrast to the  Substance.instance.identifier which is associated with the package/container.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "Substance.category",
              "short": "What class/type of substance this is",
              "definition": "A code that classifies the general type of substance.  This is used  for searching, sorting and display purposes.",
              "comments": "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 Substance.code.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Category or classification of substance",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/substance-category"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Substance.code",
              "short": "What substance this is",
              "definition": "A code (or set of codes) that identify this substance.",
              "comments": "This could be a reference to an externally defined code.  It could also be a locally assigned code (e.g. a formulary),  optionally with translations to the standard drug codes.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Substance codes",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/substance-code"
                }
              },
              "mapping": [
                {
                  "identity": "orim",
                  "map": "fhir:Substance.code rdfs:subPropertyOf rim:Entity.code"
                },
                {
                  "identity": "rim",
                  "map": ".code"
                },
                {
                  "identity": "w5",
                  "map": "what"
                }
              ]
            },
            {
              "path": "Substance.description",
              "short": "Textual description of the substance, comments",
              "definition": "A description of the substance - its appearance, handling requirements, and other usage notes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player.desc"
                }
              ]
            },
            {
              "path": "Substance.instance",
              "short": "If this describes a specific package/container of the substance",
              "definition": "Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "meaningWhenMissing": "If this element is not present, then the substance resource describes a kind of substance",
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player.determinerCode"
                },
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "Substance.instance.identifier",
              "short": "Identifier of the package/container",
              "definition": "Identifier associated with the package/container (usually a label affixed directly).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "Substance.instance.expiry",
              "short": "When no longer valid to use",
              "definition": "When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".expiryTime"
                }
              ]
            },
            {
              "path": "Substance.instance.quantity",
              "short": "Amount of substance in the package",
              "definition": "The amount of the substance.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player.quantity"
                }
              ]
            },
            {
              "path": "Substance.ingredient",
              "short": "Composition information about the substance",
              "definition": "A substance can be composed of other substances.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player.scopesRole[classCode=INGR]"
                }
              ]
            },
            {
              "path": "Substance.ingredient.quantity",
              "short": "Optional amount (concentration)",
              "definition": "The amount of the ingredient in the substance - a concentration ratio.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Ratio"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "Substance.ingredient.substance",
              "short": "A component of the substance",
              "definition": "Another substance that is a component of this substance.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".player"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/SupplyDelivery",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "SupplyDelivery",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/SupplyDelivery",
        "name": "SupplyDelivery",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for SupplyDelivery Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "SupplyDelivery",
              "short": "Delivery of Supply",
              "definition": "Record of delivery of what is supplied.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Supply[moodCode=RQO]"
                },
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "SupplyDelivery.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SupplyDelivery.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SupplyDelivery.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "SupplyDelivery.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "SupplyDelivery.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "SupplyDelivery.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "SupplyDelivery.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "SupplyDelivery.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "SupplyDelivery.identifier",
              "short": "External identifier",
              "definition": "Identifier assigned by the dispensing facility when the item(s) is dispensed.",
              "comments": "This is assigned by the dispenser, and used to refer to this order in other external standards.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "SupplyDelivery.status",
              "short": "in-progress | completed | abandoned",
              "definition": "A code specifying the state of the dispense event.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Status of the supply delivery.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplydelivery-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode, also existence of fulfillment events"
                }
              ]
            },
            {
              "path": "SupplyDelivery.patient",
              "short": "Patient for whom the item is supplied",
              "definition": "A link to a resource representing the person whom the delivered item is for.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                }
              ]
            },
            {
              "path": "SupplyDelivery.type",
              "short": "Category of dispense event",
              "definition": "Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The type of supply dispense.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplydelivery-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "SupplyDelivery.quantity",
              "short": "Amount dispensed",
              "definition": "The amount of supply that has been dispensed. Includes unit of measure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "SupplyDelivery.suppliedItem",
              "short": "Medication, Substance, or Device supplied",
              "definition": "Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a simple attribute carrying a code that identifies the item from a known list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PRD].role"
                }
              ]
            },
            {
              "path": "SupplyDelivery.supplier",
              "short": "Dispenser",
              "definition": "The individual responsible for dispensing the medication, supplier or device.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].role"
                }
              ]
            },
            {
              "path": "SupplyDelivery.whenPrepared",
              "short": "Dispensing time",
              "definition": "The time the dispense event occurred.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime.low"
                }
              ]
            },
            {
              "path": "SupplyDelivery.time",
              "short": "Handover time",
              "definition": "The time the dispensed item was sent or handed to the patient (or agent).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime.high"
                }
              ]
            },
            {
              "path": "SupplyDelivery.destination",
              "short": "Where the Supply was sent",
              "definition": "Identification of the facility/location where the Supply was shipped to, as part of the dispense event.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=DST].role"
                }
              ]
            },
            {
              "path": "SupplyDelivery.receiver",
              "short": "Who collected the Supply",
              "definition": "Identifies the person who picked up the Supply.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=RCV].role"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "SupplyDelivery",
              "short": "Delivery of Supply",
              "definition": "Record of delivery of what is supplied.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Supply[moodCode=RQO]"
                },
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "SupplyDelivery.identifier",
              "short": "External identifier",
              "definition": "Identifier assigned by the dispensing facility when the item(s) is dispensed.",
              "comments": "This is assigned by the dispenser, and used to refer to this order in other external standards.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "SupplyDelivery.status",
              "short": "in-progress | completed | abandoned",
              "definition": "A code specifying the state of the dispense event.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Status of the supply delivery.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplydelivery-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode, also existence of fulfillment events"
                }
              ]
            },
            {
              "path": "SupplyDelivery.patient",
              "short": "Patient for whom the item is supplied",
              "definition": "A link to a resource representing the person whom the delivered item is for.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                }
              ]
            },
            {
              "path": "SupplyDelivery.type",
              "short": "Category of dispense event",
              "definition": "Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The type of supply dispense.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplydelivery-type"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "SupplyDelivery.quantity",
              "short": "Amount dispensed",
              "definition": "The amount of supply that has been dispensed. Includes unit of measure.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".quantity"
                }
              ]
            },
            {
              "path": "SupplyDelivery.suppliedItem",
              "short": "Medication, Substance, or Device supplied",
              "definition": "Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a simple attribute carrying a code that identifies the item from a known list.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PRD].role"
                }
              ]
            },
            {
              "path": "SupplyDelivery.supplier",
              "short": "Dispenser",
              "definition": "The individual responsible for dispensing the medication, supplier or device.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PFM].role"
                }
              ]
            },
            {
              "path": "SupplyDelivery.whenPrepared",
              "short": "Dispensing time",
              "definition": "The time the dispense event occurred.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Period"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime.low"
                }
              ]
            },
            {
              "path": "SupplyDelivery.time",
              "short": "Handover time",
              "definition": "The time the dispensed item was sent or handed to the patient (or agent).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".effectiveTime.high"
                }
              ]
            },
            {
              "path": "SupplyDelivery.destination",
              "short": "Where the Supply was sent",
              "definition": "Identification of the facility/location where the Supply was shipped to, as part of the dispense event.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Location"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=DST].role"
                }
              ]
            },
            {
              "path": "SupplyDelivery.receiver",
              "short": "Who collected the Supply",
              "definition": "Identifies the person who picked up the Supply.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=RCV].role"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/SupplyRequest",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "SupplyRequest",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/SupplyRequest",
        "name": "SupplyRequest",
        "status": "draft",
        "publisher": "Health Level Seven International (Orders and Observations)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for SupplyRequest Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "SupplyRequest",
              "short": "Request for a medication, substance or device",
              "definition": "A record of a request for a medication, substance or device used in the healthcare setting.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Supply[moodCode=RQO]"
                },
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "SupplyRequest.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SupplyRequest.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SupplyRequest.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "SupplyRequest.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "SupplyRequest.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "SupplyRequest.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "SupplyRequest.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "SupplyRequest.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "SupplyRequest.patient",
              "short": "Patient for whom the item is supplied",
              "definition": "A link to a resource representing the person whom the ordered item is for.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                }
              ]
            },
            {
              "path": "SupplyRequest.source",
              "short": "Who initiated this order",
              "definition": "The Practitioner , Organization or Patient who initiated this order for the supply.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "SupplyRequest.date",
              "short": "When the request was made",
              "definition": "When the request was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SupplyRequest.identifier",
              "short": "Unique identifier",
              "definition": "Unique identifier for this supply request.",
              "comments": "This is assigned by the orderer, and used to refer to this order in other external standards.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "SupplyRequest.status",
              "short": "requested | completed | failed | cancelled",
              "definition": "Status of the supply request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Status of the supply request",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplyrequest-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode, also existence of fulfillment events"
                }
              ]
            },
            {
              "path": "SupplyRequest.kind",
              "short": "The kind of supply (central, non-stock, etc.)",
              "definition": "Category of supply, e.g.  central, non-stock, etc. This is used to support work flows associated with the supply process.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Category of supply request",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplyrequest-kind"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "SupplyRequest.orderedItem",
              "short": "Medication, Substance, or Device requested to be supplied",
              "definition": "The item that is requested to be supplied.",
              "comments": "Note that there's a difference between a prescription - an instruction to take a medication, along with a (sometimes) implicit supply, and an explicit request to supply, with no explicit instructions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PRD].role"
                }
              ]
            },
            {
              "path": "SupplyRequest.supplier",
              "short": "Who is intended to fulfill the request",
              "definition": "Who is intended to fulfill the request.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "SupplyRequest.reason[x]",
              "short": "Why the supply item was requested",
              "definition": "Why the supply item was requested.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Why the supply item was requested",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplyrequest-reason"
                }
              }
            },
            {
              "path": "SupplyRequest.when",
              "short": "When the request should be fulfilled",
              "definition": "When the request should be fulfilled.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SupplyRequest.when.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "SupplyRequest.when.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "SupplyRequest.when.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "SupplyRequest.when.code",
              "short": "Fulfilment code",
              "definition": "Code indicating when the request should be fulfilled.",
              "comments": "Code may simply be a priority code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "When the request should be fulfilled",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplyrequest-when"
                }
              }
            },
            {
              "path": "SupplyRequest.when.schedule",
              "short": "Formal fulfillment schedule",
              "definition": "Formal fulfillment schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "SupplyRequest",
              "short": "Request for a medication, substance or device",
              "definition": "A record of a request for a medication, substance or device used in the healthcare setting.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Supply[moodCode=RQO]"
                },
                {
                  "identity": "w5",
                  "map": "workflow.order"
                }
              ]
            },
            {
              "path": "SupplyRequest.patient",
              "short": "Patient for whom the item is supplied",
              "definition": "A link to a resource representing the person whom the ordered item is for.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=SBJ].role"
                }
              ]
            },
            {
              "path": "SupplyRequest.source",
              "short": "Who initiated this order",
              "definition": "The Practitioner , Organization or Patient who initiated this order for the supply.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "SupplyRequest.date",
              "short": "When the request was made",
              "definition": "When the request was made.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SupplyRequest.identifier",
              "short": "Unique identifier",
              "definition": "Unique identifier for this supply request.",
              "comments": "This is assigned by the orderer, and used to refer to this order in other external standards.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".id"
                }
              ]
            },
            {
              "path": "SupplyRequest.status",
              "short": "requested | completed | failed | cancelled",
              "definition": "Status of the supply request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Status of the supply request",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplyrequest-status"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".statusCode, also existence of fulfillment events"
                }
              ]
            },
            {
              "path": "SupplyRequest.kind",
              "short": "The kind of supply (central, non-stock, etc.)",
              "definition": "Category of supply, e.g.  central, non-stock, etc. This is used to support work flows associated with the supply process.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "Category of supply request",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplyrequest-kind"
                }
              },
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".code"
                }
              ]
            },
            {
              "path": "SupplyRequest.orderedItem",
              "short": "Medication, Substance, or Device requested to be supplied",
              "definition": "The item that is requested to be supplied.",
              "comments": "Note that there's a difference between a prescription - an instruction to take a medication, along with a (sometimes) implicit supply, and an explicit request to supply, with no explicit instructions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Medication"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Substance"
                  ]
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Device"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": ".participation[typeCode=PRD].role"
                }
              ]
            },
            {
              "path": "SupplyRequest.supplier",
              "short": "Who is intended to fulfill the request",
              "definition": "Who is intended to fulfill the request.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Organization"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "SupplyRequest.reason[x]",
              "short": "Why the supply item was requested",
              "definition": "Why the supply item was requested.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "Why the supply item was requested",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplyrequest-reason"
                }
              }
            },
            {
              "path": "SupplyRequest.when",
              "short": "When the request should be fulfilled",
              "definition": "When the request should be fulfilled.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "SupplyRequest.when.code",
              "short": "Fulfilment code",
              "definition": "Code indicating when the request should be fulfilled.",
              "comments": "Code may simply be a priority code.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "When the request should be fulfilled",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/supplyrequest-when"
                }
              }
            },
            {
              "path": "SupplyRequest.when.schedule",
              "short": "Formal fulfillment schedule",
              "definition": "Formal fulfillment schedule.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Timing"
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/TestScript",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "TestScript",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/TestScript",
        "name": "TestScript",
        "status": "draft",
        "publisher": "Health Level Seven International (FHIR Infrastructure)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for TestScript Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "TestScript",
              "short": "Describes a set of tests",
              "definition": "TestScript is a resource that specifies a suite of tests against a FHIR server implementation to determine compliance against the FHIR specification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "conformance.misc"
                }
              ]
            },
            {
              "path": "TestScript.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "TestScript.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "TestScript.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "TestScript.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "TestScript.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "TestScript.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.url",
              "short": "Absolute URL used to reference this TestScript",
              "definition": "An absolute URL that is used to identify this Test Script. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Test Script is (or will be) published.",
              "alias": [
                "url",
                "authoritative-url",
                "destination",
                "identity"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "TestScript.version",
              "short": "Logical id for this version of the TestScript",
              "definition": "The identifier that is used to identify this version of the TestScript. This is an arbitrary value managed by the TestScript author manually.",
              "requirements": "There may be multiple resource versions of the TestScript that have this same identifier. The resource version id will change for technical reasons, whereas the stated version number needs to be under the author's control.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "TestScript.name",
              "short": "Informal name for this TestScript",
              "definition": "A free text natural language name identifying the TestScript.",
              "comments": "Not expected to be globally unique.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "TestScript.status",
              "short": "draft | active | retired",
              "definition": "The status of the TestScript.",
              "requirements": "Allows filtering of TestScripts that are appropriate for use vs. not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "TestScript.identifier",
              "short": "External identifier",
              "definition": "Identifier for the TestScript assigned for external purposes outside the context of FHIR.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "TestScript.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This TestScript was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "requirements": "Allows filtering of TestScripts that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "TestScript.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the Test Script.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the Test Script.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "TestScript.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "TestScript.contact.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.contact.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.contact.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the Test Script.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "TestScript.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "TestScript.date",
              "short": "Date for this version of the TestScript",
              "definition": "The date this version of the test tcript was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the test cases change.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "TestScript.description",
              "short": "Natural language description of the TestScript",
              "definition": "A free text natural language description of the TestScript and its use.",
              "comments": "This field can be used for things such as why the TestScript was written, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc.  It is *not* a rendering of the TestScript as conveyed in TestScript.text. This item SHOULD be populated unless the information is available from context.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "TestScript.useContext",
              "short": "Content intends to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of Test Scripts.",
              "requirements": "Assist in searching for appropriate content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              }
            },
            {
              "path": "TestScript.requirements",
              "short": "Scope and Usage this Test Script is for",
              "definition": "Explains why this Test Script is needed and why it's been constrained as it has.",
              "comments": "This element does not describe the usage of the Test Script (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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "TestScript.copyright",
              "short": "Use and/or publishing restrictions",
              "definition": "A copyright statement relating to the Test Script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.",
              "alias": [
                "License",
                "Restrictions"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.metadata",
              "name": "metadata",
              "short": "Required capability that is assumed to function correctly on the FHIR server being tested",
              "definition": "The required capability must exist and are assumed to function correctly on the FHIR server being tested.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "capability.required or capability.validated"
                    }
                  ],
                  "key": "inv-5",
                  "severity": "error",
                  "human": "TestScript metadata capability SHALL contain required or validated or both.",
                  "xpath": "f:capability/f:required or f:capability/f:validated or (f:capability/f:required and f:capability/f:validated)"
                }
              ]
            },
            {
              "path": "TestScript.metadata.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.metadata.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.metadata.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.metadata.link",
              "short": "Links to the FHIR specification",
              "definition": "A link to the FHIR specification that this test is covering.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.metadata.link.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.metadata.link.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.metadata.link.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.metadata.link.url",
              "short": "URL to the specification",
              "definition": "URL to a particular requirement or feature within the FHIR specification.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "TestScript.metadata.link.description",
              "short": "Short description",
              "definition": "Short description of the link.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability",
              "short": "Capabilities  that are assumed to function correctly on the FHIR server being tested",
              "definition": "Capabilities that must exist and are assumed to function correctly on the FHIR server being tested.",
              "comments": "When the metadata capabilities section is defined at TestScript.metadata or at TestScript.setup.metadata, and the server's conformance statement does not contain the elements defined in the minimal conformance statement, then all the tests in the TestScript are skipped.  When the metadata capabilities section is defined at TestScript.test.metadata and the server's conformance statement does not contain the elements defined in the minimal conformance statement, then only that test is skipped.  The \"metadata.capabilities.required\" and \"metadata.capabilities.validated\" elements only indicate whether the capabilities are the primary focus of the test script or not.  The do not impact the skipping logic.  Capabilities whose \"metadata.capabilities.validated\" flag is true are the primary focus of the test script.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.required",
              "short": "Are the capabilities required?",
              "definition": "Whether or not the test execution will require the given capabilities of the server in order for this test script to execute.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false
            },
            {
              "path": "TestScript.metadata.capability.validated",
              "short": "Are the capabilities validated?",
              "definition": "Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false
            },
            {
              "path": "TestScript.metadata.capability.description",
              "short": "The expected capabilities of the server",
              "definition": "Description of the capabilities that this test script is requiring the server to support.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.origin",
              "short": "Which origin server these requirements apply to",
              "definition": "Which origin server these requirements apply to.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.destination",
              "short": "Which server these requirements apply to",
              "definition": "Which server these requirements apply to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.link",
              "short": "Links to the FHIR specification",
              "definition": "Links to the FHIR specification that describes this interaction and the resources involved in more detail.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.conformance",
              "short": "Required Conformance",
              "definition": "Minimum conformance required of server for test script to execute successfully.   If server does not meet at a minimum the reference conformance definition, then all tests in this script are skipped.",
              "comments": "The conformance statement of the server has to contain at a minimum the contents of the reference pointed to by this element.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Conformance"
                  ]
                }
              ]
            },
            {
              "path": "TestScript.origin",
              "short": "An abstract server representing a client or sender in a message exchange",
              "definition": "An abstract server used in operations within this test script in the origin element.",
              "comments": "The purpose of this element is to define the profile of an origin element used elsewhere in the script.  Test engines could then use the origin-profile mapping to offer a filtered list of test systems that can serve as the sender for the interaction.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.origin.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.origin.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.origin.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.origin.index",
              "short": "The index of the abstract origin server starting at 1",
              "definition": "Abstract name given to an origin server in this test script.  The name is provided as a number starting at 1.",
              "comments": "A given origin index (e.g. 1) can appear only once in the list (e.g. Origin 1 cannot be specified twice ... once as FormFiller and and again as FormProcessor within the same script as that could get confusing during test configuration). \n\nDifferent origin indices could play the same actor in the same test script (e.g. You could have two different test systems acting as Form-Filler).\n\nThe origin indices provided elsewhere in the test script must be one of these origin indices.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "TestScript.origin.profile",
              "short": "FHIR-DSTU2-Client | FHIR-DSTU2-SDC-FormFiller",
              "definition": "The type of profile the server supports.",
              "comments": "Must be a \"sender\"/\"client\" profile.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "meaningWhenMissing": "FHIR-DSTU2-Client",
              "binding": {
                "strength": "required",
                "description": "The type of origin profile the server supports.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/profile-origin-types"
                }
              }
            },
            {
              "path": "TestScript.destination",
              "short": "An abstract server representing a destination or receiver in a message exchange",
              "definition": "An abstract server used in operations within this test script in the destination element.",
              "comments": "The purpose of this element is to define the profile of an destination element used elsewhere in the script.  Test engines could then use the destination-profile mapping to offer a filtered list of test systems that can serve as the receiver for the interaction.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.destination.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.destination.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.destination.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.destination.index",
              "short": "The index of the abstract destination server starting at 1",
              "definition": "Abstract name given to a destination server in this test script.  The name is provided as a number starting at 1.",
              "comments": "A given destination index (e.g. 1) can appear only once in the list (e.g. Destination 1 cannot be specified twice ... once as Form-Manager and and again as Form-Processor within the same script as that could get confusing during test configuration). \n\nDifferent destination indices could play the same actor in the same test script (e.g. You could have two different test systems acting as Form-Manager).\n\nThe destination indices provided elsewhere in the test script must be one of these destination indices.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "TestScript.destination.profile",
              "short": "FHIR-DSTU2-Server | FHIR-DSTU2-SDC-FormManager | FHIR-DSTU2-SDC-FormReceiver | FHIR-DSTU2-SDC-FormProcessor",
              "definition": "The type of profile the server supports.",
              "comments": "Must be a \"receiver\"/\"server\" profile.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "meaningWhenMissing": "FHIR-DSTU2-Server",
              "binding": {
                "strength": "required",
                "description": "The type of destination profile the server supports.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/profile-destination-types"
                }
              }
            },
            {
              "path": "TestScript.multiserver",
              "short": "Whether or not the tests apply to more than one FHIR server",
              "definition": "If the tests apply to more than one FHIR server (e.g. cross-server interoperability tests) then multiserver=true. Defaults to false if value is unspecified.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "False"
            },
            {
              "path": "TestScript.fixture",
              "short": "Fixture in the test script - by reference (uri)",
              "definition": "Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.fixture.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.fixture.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.fixture.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.fixture.autocreate",
              "short": "Whether or not to implicitly create the fixture during setup",
              "definition": "Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "False"
            },
            {
              "path": "TestScript.fixture.autodelete",
              "short": "Whether or not to implicitly delete the fixture during teardown",
              "definition": "Whether or not to implicitly delete the fixture during teardown If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "False"
            },
            {
              "path": "TestScript.fixture.resource",
              "short": "Reference of the resource",
              "definition": "Reference to the resource (containing the contents of the resource needed for operations).",
              "comments": "See http://hl7-fhir.github.io/resourcelist.html for complete list of resource types.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "TestScript.profile",
              "short": "Reference of the validation profile",
              "definition": "Reference to the profile to be used for validation.",
              "comments": "See http://hl7-fhir.github.io/resourcelist.html for complete list of resource types.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "TestScript.variable",
              "short": "Placeholder for evaluated elements",
              "definition": "Variable is set based either on element value in response body or on header field value in the response headers.",
              "comments": "Variables would be set based either on XPath/JsonPath expressions against fixtures (static and response), or headerField evaluations against response headers. If variable evaluates to nodelist or anything other than a primitive value, then test engine would report error.  Variables would be used to perform clean replacements in \"operation.params\", \"operation.requestHeader.value\", and \"operation.url\" element values during operation calls and in \"assert.value\" during assertion evaluations. This limits the places that test engines would need to look for placeholders \"${}\".  Variables are scoped to the whole script. They are NOT evaluated at declaration. They are evaluated by test engine when used for substitutions in \"operation.params\", \"operation.requestHeader.value\", and \"operation.url\" element values during operation calls and in \"assert.value\" during assertion evaluations.  See example testscript-search.xml.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "headerField.empty() or path.empty()"
                    }
                  ],
                  "key": "inv-4",
                  "severity": "error",
                  "human": "Variable cannot contain both headerField and path.",
                  "xpath": "not(f:headerField and f:path)"
                }
              ]
            },
            {
              "path": "TestScript.variable.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.variable.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.variable.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.variable.name",
              "short": "Descriptive name for this variable",
              "definition": "Descriptive name for this variable.",
              "comments": "Placeholders would contain the variable name wrapped in ${} in \"operation.params\", \"operation.requestHeader.value\", and \"operation.url\" elements.  These placeholders would need to be replaced by the variable value before the operation is executed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.variable.defaultValue",
              "short": "Default value for this variable",
              "definition": "A default, hard-coded, or user-defined value for this variable.",
              "comments": "The purpose of this element is to allow for a pre-defined value that can be used as a default or as an override value. Test engines can optionally use this as a placeholder for user-defined execution time values.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.variable.headerField",
              "short": "HTTP header field name for source",
              "definition": "Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.",
              "comments": "If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to.  If path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to.  It is an error to define both headerField and path.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.variable.path",
              "short": "XPath or JSONPath against the fixture body",
              "definition": "XPath or JSONPath against the fixture body.  When variables are defined, either headerField must be specified or path, but not both.",
              "comments": "If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to.  If path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to.  It is an error to define both headerField and path.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.variable.sourceId",
              "short": "Fixture Id of source expression or headerField within this variable",
              "definition": "Fixture to evaluate the XPath/JSONPath expression or the headerField  against within this variable.",
              "comments": "This can be a statically defined fixture (at the top of the testscript) or a dynamically set fixture created by responseId of the action.operation element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "TestScript.setup",
              "short": "A series of required setup operations before tests are executed",
              "definition": "A series of required setup operations before tests are executed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.setup.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.setup.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.setup.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.setup.metadata",
              "short": "Capabilities  that are assumed to function correctly on the FHIR server being tested",
              "definition": "Capabilities that must exist and are assumed to function correctly on the FHIR server being tested.",
              "min": 0,
              "max": "1",
              "nameReference": "metadata",
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "capability.required or capability.validated"
                    }
                  ],
                  "key": "inv-6",
                  "severity": "error",
                  "human": "Setup metadata capability SHALL contain required or validated or both.",
                  "xpath": "f:capability/f:required or f:capability/f:validated or (f:capability/f:required and f:capability/f:validated)"
                }
              ]
            },
            {
              "path": "TestScript.setup.action",
              "short": "A setup operation or assert to perform",
              "definition": "Action would contain either an operation or an assertion.",
              "comments": "An action should contain either an operation or an assertion but not both.  It can contain any number of variables.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "operation xor assert"
                    }
                  ],
                  "key": "inv-1",
                  "severity": "error",
                  "human": "Setup action SHALL contain either an operation or assert but not both.",
                  "xpath": "(f:operation or f:assert) and not(f:operation and f:assert)"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.setup.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation",
              "name": "operation",
              "short": "The setup operation to perform",
              "definition": "The operation to perform.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "sourceId or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('conformance' |'search' | 'transaction' | 'history'))"
                    }
                  ],
                  "key": "inv-10",
                  "severity": "error",
                  "human": "Setup operation SHALL contain either sourceId or targetId or params or url.",
                  "xpath": "f:sourceId or ((f:targetId or f:url or f:params) and (count(f:targetId) + count(f:url) + count(f:params) =1)) or (f:type/f:code/@value='conformance' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.type",
              "short": "The setup operation type that will be executed",
              "definition": "Server interaction or operation type.",
              "comments": "See http://hl7-fhir.github.io/http.html for list of server interactions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The allowable operation types.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/testscript-operation-codes"
                }
              }
            },
            {
              "path": "TestScript.setup.action.operation.resource",
              "short": "Resource type",
              "definition": "The type of the resource.  See http://hl7-fhir.github.io/resourcelist.html.",
              "comments": "If \"url\" element is specified, then \"targetId\", \"params\", and \"resource\" elements will be ignored as \"url\" element will have everything needed for constructing the request url.  If \"params\" element is specified, then \"targetId\" element is ignored. For FHIR operations that require a resource (e.g. \"read\" and \"vread\" operations), the \"resource\" element must be specified when \"params\" element is specified.  If \"url\" and \"params\" elements are absent, then the request url will be constructed from \"targetId\" fixture if present. For \"read\" operation, the resource and id values will be extracted from \"targetId\" fixture and used to construct the url. For \"vread\" and \"history\" operations, the versionId value will also be used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Either a resource or a data type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/defined-types"
                }
              }
            },
            {
              "path": "TestScript.setup.action.operation.label",
              "short": "Tracking/logging operation label",
              "definition": "The label would be used for tracking/logging purposes by test engines.",
              "comments": "This has no impact on the verification itself.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.description",
              "short": "Tracking/reporting operation description",
              "definition": "The description would be used by test engines for tracking and reporting purposes.",
              "comments": "This has no impact on the verification itself.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.accept",
              "short": "xml | json",
              "definition": "The content-type or mime-type to use for RESTful operation in the 'Accept' header.",
              "comments": "If this is specified, then test engine shall set the 'Accept' header to the corresponding value.    If 'xml' is specified, then 'Accept' header of 'application/xml+fhir' will be set.  If 'json' is specified, then 'application/json+fhir' will be used.    If you'd like to explicitly set the 'Accept' to some other value then use the 'requestHeader' element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "meaningWhenMissing": "xml",
              "binding": {
                "strength": "required",
                "description": "The content or mime type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/content-type"
                }
              }
            },
            {
              "path": "TestScript.setup.action.operation.contentType",
              "short": "xml | json",
              "definition": "The content-type or mime-type to use for RESTful operation in the 'Content-Type' header.",
              "comments": "If this is specified, then test engine shall set the 'Content-Type' header to the corresponding value.    If 'xml' is specified, then 'Content-Type' header of 'application/xml+fhir' will be set.    If 'json' is specified, then 'application/json+fhir' will be used.    If you'd like to explicitly set the 'Content-Type' to some other value then use the 'requestHeader' element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "meaningWhenMissing": "xml",
              "binding": {
                "strength": "required",
                "description": "The content or mime type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/content-type"
                }
              }
            },
            {
              "path": "TestScript.setup.action.operation.destination",
              "short": "Server responding to the request",
              "definition": "The server where the request message is destined for.  Must be one of the server numbers listed in TestScript.destination section.",
              "comments": "If multiple TestScript.destination elements are defined and operation.destination is undefined, test engine will error as it cannot determine what destination to use for the exchange.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.encodeRequestUrl",
              "short": "Whether or not to send the request url in encoded format",
              "definition": "Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": true
            },
            {
              "path": "TestScript.setup.action.operation.origin",
              "short": "Server initiating the request",
              "definition": "The server where the request message originates from.  Must be one of the server numbers listed in TestScript.origin section.",
              "comments": "If absent, test engine will send the message.  When present, test engine will not send the request message but will wait for the request message to be sent from this origin server.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.params",
              "short": "Explicitly defined path parameters",
              "definition": "Path plus parameters after [type].  Used to set parts of the request URL explicitly.",
              "comments": "If \"url\" element is specified, then \"targetId\", \"params\", and \"resource\" elements will be ignored as \"url\" element will have everything needed for constructing the request url.  If \"params\" element is specified, then \"targetId\" element is ignored.  For FHIR operations that require a resource (e.g. \"read\" and \"vread\" operations), the \"resource\" element must be specified when \"params\" element is specified.  If \"url\" and \"params\" elements are absent, then the request url will be constructed from \"targetId\" fixture if present.  For \"read\" operation, the resource and id values will be extracted from \"targetId\" fixture and used to construct the url.  For \"vread\" and \"history\" operations, the versionId value will also be used.   Test engines would append whatever is specified for \"params\" to the URL after the resource type without tampering with the string (beyond encoding the URL for HTTP).  The \"params\" element does not correspond exactly to \"search parameters\".  Nor is it the \"path\".  It corresponds to the part of the URL that comes after the [type] (when \"resource\" element is specified); e.g. It corresponds to \"/[id]/_history/[vid] {?_format=[mime-type]}\" in the following operation: GET [base]/[type]/[id]/_history/[vid] {?_format=[mime-type]}  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.requestHeader",
              "short": "Each operation can have one ore more header elements",
              "definition": "Header elements would be used to set HTTP headers.",
              "comments": "This gives control to test-script writers to set headers explicitly based on test requirements.  It will allow for testing using:  - \"If-Modified-Since\" and \"If-None-Match\" headers.  See http://hl7-fhir.github.io/http.html#2.1.0.5.1 - \"If-Match\" header.  See http://hl7-fhir.github.io/http.html#2.1.0.11 - Conditional Create using \"If-None-Exist\".  See http://hl7-fhir.github.io/http.html#2.1.0.13.1 - Invalid \"Content-Type\" header for negative testing. - etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.requestHeader.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.requestHeader.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.requestHeader.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.requestHeader.field",
              "short": "HTTP header field name",
              "definition": "The HTTP header field e.g. \"Accept\".",
              "comments": "If header element is specified, then field is required.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.requestHeader.value",
              "short": "HTTP headerfield value",
              "definition": "The value of the header e.g. \"application/xml\".",
              "comments": "If header element is specified, then value is required.  No conversions will be done by Test Engine e.g. \"xml\" to \"application/xml+fhir\".  The values will be set in HTTP headers \"as-is\".  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.responseId",
              "short": "Fixture Id of mapped response",
              "definition": "The fixture id (maybe new) to map to the response.",
              "comments": "If a responseId is supplied, and the server responds, then the resulting response (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by \"responseId\".  If responseId is not specified, it is the Test Engine's responsibility to store the response and use it as sourceId in subsequent assertions when assertion path and/or headerField is specified and sourceId is not specified.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.sourceId",
              "short": "Fixture Id of body for PUT and POST requests",
              "definition": "The id of the fixture used as the body of a PUT or POST request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.targetId",
              "short": "Id of fixture used for extracting the [id],  [type], and [vid] for GET requests",
              "definition": "Id of fixture used for extracting the [id],  [type], and [vid] for GET requests.",
              "comments": "If \"url\" element is specified, then \"targetId\", \"params\", and \"resource\" elements will be ignored as \"url\" element will have everything needed for constructing the request url.  If \"params\" element is specified, then \"targetId\" element is ignored.  For FHIR operations that require a resource (e.g. \"read\" and \"vread\" operations), the \"resource\" element must be specified when \"params\" element is specified.  If \"url\" and \"params\" elements are absent, then the request url will be constructed from \"targetId\" fixture if present.  For \"read\" operation, the resource and id values will be extracted from \"targetId\" fixture and used to construct the url.  For \"vread\" and \"history\" operations, the versionId value will also be used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.url",
              "short": "Request URL",
              "definition": "Complete request URL.",
              "comments": "Used to set the request URL explicitly.  If \"url\" element is defined, then \"targetId\", \"resource\", and \"params\" elements will be ignored.  Test engines would use whatever is specified in \"url\" without tampering with the string (beyond encoding the URL for HTTP).  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert",
              "name": "assert",
              "short": "The assertion to perform",
              "definition": "Evaluates the results of previous operations to determine if the server under test behaves appropriately.",
              "comments": "In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "compareToSourceId.empty() xor compareToSourcePath"
                    }
                  ],
                  "key": "inv-13",
                  "severity": "error",
                  "human": "Setup action assert shall contain both compareToSourceId and compareToSourcePath or neither.",
                  "xpath": "(f:compareToSourceId and f:compareToSourcePath) or not(f:compareToSourceId or f:compareToSourcePath)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "contentType.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <=1"
                    }
                  ],
                  "key": "inv-8",
                  "severity": "error",
                  "human": "Only a single assertion SHALL be present within setup action assert element.",
                  "xpath": "count(f:contentType) + count(f:headerField) + count(f:minimumId) + count(f:navigationLinks) + count(f:path) + count(f:resource) + count(f:responseCode) + count(f:response) + count(f:validateProfileId)  <=1"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.label",
              "short": "Tracking/logging assertion label",
              "definition": "The label would be used for tracking/logging purposes by test engines.",
              "comments": "This has no impact on the verification itself.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.description",
              "short": "Tracking/reporting assertion description",
              "definition": "The description would be used by test engines for tracking and reporting purposes.",
              "comments": "This has no impact on the verification itself.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.direction",
              "short": "response | request",
              "definition": "The direction to use for the assertion.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of direction to use for assertion.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/assert-direction-codes"
                }
              }
            },
            {
              "path": "TestScript.setup.action.assert.compareToSourceId",
              "short": "Id of fixture used to compare the \"sourceId/path\" evaluations to",
              "definition": "Id of fixture used to compare the \"sourceId/path\" evaluations to.",
              "comments": "The id of the fixture used to make comparisons to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.compareToSourcePath",
              "short": "XPath or JSONPath expression against fixture used to compare the \"sourceId/path\" evaluations to",
              "definition": "XPath or JSONPath expression against fixture used to compare the \"sourceId/path\" evaluations to.",
              "comments": "The XPath or JSONPath expression to be evaluated against the expected fixture to compare to. Ignored if \"assert.value\" is used. The evaluation will be done before the assertion is evaluated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.contentType",
              "short": "xml | json",
              "definition": "The content-type or mime-type to use for RESTful operation in the 'Content-Type' header.",
              "comments": "If this is specified, then test engine shall confirm that the content-type of the last operation's headers is set to this value.  If \"assert.sourceId\" element is specified, then the evaluation will be done against the headers mapped to that sourceId (and not the last operation's headers).    If 'xml' is specified, then 'Content-Type' header of 'application/xml+fhir' will be confirmed. If 'json' is specified, then 'application/json+fhir' will be used. If you'd like to have more control over the string, then use 'assert.headerField' instead.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "meaningWhenMissing": "xml",
              "binding": {
                "strength": "required",
                "description": "The content or mime type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/content-type"
                }
              }
            },
            {
              "path": "TestScript.setup.action.assert.headerField",
              "short": "HTTP header field name",
              "definition": "The HTTP header field name e.g. 'Location'.",
              "comments": "If \"headerField\" is specified then \"value\" must be specified.  If \"sourceId\" is not specified, then \"headerField\" will be evaluated against the last operation's response headers.  Test engines are to keep track of the last operation's response body and response headers.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.minimumId",
              "short": "Fixture Id of minimum content resource",
              "definition": "The ID of a fixture.  Asserts that the response contains at a minimumId the fixture specified by minimumId.",
              "comments": "Asserts that the response contains all the element/content in another fixture pointed to by minimumId.  This can be a statically defined fixture or one that is dynamically set via responseId.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.navigationLinks",
              "short": "Perform validation on navigation links?",
              "definition": "Whether or not the test execution performs validation on the bundle navigation links.",
              "comments": "Asserts that the Bundle contains first, last, and next links.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.operator",
              "short": "equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains",
              "definition": "The operator type.",
              "comments": "Operators come handy especially for negative testing.  If operator is not specified, then the \"equals\" operator is assumed; e.g. <code>   <assert>  <operator value=\"in\" />  <responseCode value=\"200,201,204\" />    </assert>    <assert>  <operator value=\"notEquals\" />  <response value=\"okay\"/>   </assert>    <assert>  <operator value=\"greaterThan\" />    <responseHeader>     <field value=\"Content-Length\" />     <value value=\"0\" />    <responseHeader>   </assert> </code>.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of operator to use for assertion.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/assert-operator-codes"
                }
              }
            },
            {
              "path": "TestScript.setup.action.assert.path",
              "short": "XPath or JSONPath expression",
              "definition": "The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server.",
              "comments": "If both \"path\" and \"fixtureId\" are specified, then the path will be evaluated against the responseBody mapped to the fixtureId.  If \"path\" is specified and \"fixtureId\" is not, then the path will be evaluated against the responseBody of the last operation.  Test engines are to store the response body and headers of the last operation at all times for subsequent assertions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.resource",
              "short": "Resource type",
              "definition": "The type of the resource.  See http://hl7-fhir.github.io/resourcelist.html.",
              "comments": "This will be expected resource type in response body e.g. in read, vread, search, etc.  See http://hl7-fhir.github.io/resourcelist.html for complete list of resource types; e.g. <assert > <resourceType value=\"Patient\" </assert>.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Either a resource or a data type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/defined-types"
                }
              }
            },
            {
              "path": "TestScript.setup.action.assert.response",
              "short": "okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable",
              "definition": "okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable.",
              "comments": "This is a shorter way of achieving similar verifications via \"assert.responseCode\".  If you need more control, then use \"assert.responseCode\"  e.g. <assert>  <contentType value=\"json\" />  <response value=\"okay\"/> </assert>.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of response code to use for assertion.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/assert-response-code-types"
                }
              }
            },
            {
              "path": "TestScript.setup.action.assert.responseCode",
              "short": "HTTP response code to test",
              "definition": "The value of the HTTP response code to be tested.",
              "comments": "To be used with \"operator\" attribute value. Asserts that the response code equals this value if \"operator\" is not specified.   If the operator is \"in\" or \"notIn\" then the responseCode would be a comma-separated list of values e.g. \"200,201\". Otherwise, it's expected to be a numeric value.   If \"fixture\" is not specified, then the \"responseBodyId\" value of the last operation is assumed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.sourceId",
              "short": "Fixture Id of source expression or headerField",
              "definition": "Fixture to evaluate the XPath/JSONPath expression or the headerField  against.",
              "comments": "This can be a statically defined fixture (at the top of the testscript) or a dynamically set fixture created by responseId of the action.operation element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.validateProfileId",
              "short": "Profile Id of validation profile reference",
              "definition": "The ID of the Profile to validate against.",
              "comments": "The ID of a Profile fixture. Asserts that the response is valid according to the Profile specified by validateProfileId.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.value",
              "short": "The value to compare to",
              "definition": "The value to compare to.",
              "comments": "The string-representation of a number, string, or boolean that is expected.  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before comparing this value to the actual value.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.warningOnly",
              "short": "Will this assert produce a warning only on error?",
              "definition": "Whether or not the test execution will produce a warning only on error for this assert.",
              "comments": "If this element is specified and it is true, then assertion failures can be logged by test engine but should not stop the test script execution from proceeding.  There are likely cases where the spec is not clear on what should happen. If the spec says something is optional (maybe a response header for example), but a server doesn’t do it, we could choose to issue a warning.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false
            },
            {
              "path": "TestScript.test",
              "short": "A test in this script",
              "definition": "A test in this script.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.test.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.test.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.test.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.test.name",
              "short": "Tracking/logging name of this test",
              "definition": "The name of this test used for tracking/logging purposes by test engines.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.test.description",
              "short": "Tracking/reporting short description of the test",
              "definition": "A short description of the test used by test engines for tracking and reporting purposes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.test.metadata",
              "short": "Capabilities  that are expected to function correctly on the FHIR server being tested",
              "definition": "Capabilities that must exist and are assumed to function correctly on the FHIR server being tested.",
              "min": 0,
              "max": "1",
              "nameReference": "metadata",
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "capability.required or capability.validated"
                    }
                  ],
                  "key": "inv-7",
                  "severity": "error",
                  "human": "Test metadata capability SHALL contain required or validated or both.",
                  "xpath": "f:capability/f:required or f:capability/f:validated or (f:capability/f:required and f:capability/f:validated)"
                }
              ]
            },
            {
              "path": "TestScript.test.action",
              "short": "A test operation or assert to perform",
              "definition": "Action would contain either an operation or an assertion.",
              "comments": "An action should contain either an operation or an assertion but not both.  It can contain any number of variables.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "operation xor assert"
                    }
                  ],
                  "key": "inv-2",
                  "severity": "error",
                  "human": "Test action SHALL contain either an operation or assert but not both.",
                  "xpath": "(f:operation or f:assert) and not(f:operation and f:assert)"
                }
              ]
            },
            {
              "path": "TestScript.test.action.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.test.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.test.action.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.test.action.operation",
              "short": "The setup operation to perform",
              "definition": "An operation would involve a REST request to a server.",
              "min": 0,
              "max": "1",
              "nameReference": "operation",
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "sourceId or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('conformance' | 'search' | 'transaction' | 'history'))"
                    }
                  ],
                  "key": "inv-11",
                  "severity": "error",
                  "human": "Test operation SHALL contain either sourceId or targetId or params or url.",
                  "xpath": "f:sourceId or (f:targetId or f:url or f:params) and (count(f:targetId) + count(f:url) + count(f:params) =1) or (f:type/f:code/@value='conformance' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')"
                }
              ]
            },
            {
              "path": "TestScript.test.action.assert",
              "short": "The setup assertion to perform",
              "definition": "Evaluates the results of previous operations to determine if the server under test behaves appropriately.",
              "comments": "In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine.",
              "min": 0,
              "max": "1",
              "nameReference": "assert",
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "compareToSourceId.empty() xor compareToSourcePath"
                    }
                  ],
                  "key": "inv-14",
                  "severity": "error",
                  "human": "Test action assert shall contain both compareToSourceId and compareToSourcePath or neither.",
                  "xpath": "(f:compareToSourceId and f:compareToSourcePath) or not(f:compareToSourceId or f:compareToSourcePath)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "contentType.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <=1"
                    }
                  ],
                  "key": "inv-9",
                  "severity": "error",
                  "human": "Only a single assertion SHALL be present within test action assert element.",
                  "xpath": "count(f:contentType) + count(f:headerField) + count(f:minimumId) + count(f:navigationLinks) + count(f:path) + count(f:resource) + count(f:responseCode) + count(f:response) + count(f:validateProfileId)  <=1"
                }
              ]
            },
            {
              "path": "TestScript.teardown",
              "short": "A series of required clean up steps",
              "definition": "A series of operations required to clean up after the all the tests are executed (successfully or otherwise).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.teardown.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.teardown.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.teardown.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.teardown.action",
              "short": "One or more teardown operations to perform",
              "definition": "The teardown action will only contain an operation.",
              "comments": "An action should contain either an operation or an assertion but not both.  It can contain any number of variables.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "operation"
                    }
                  ],
                  "key": "inv-3",
                  "severity": "error",
                  "human": "Teardown action SHALL contain an operation.",
                  "xpath": "f:operation"
                }
              ]
            },
            {
              "path": "TestScript.teardown.action.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.teardown.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "TestScript.teardown.action.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "TestScript.teardown.action.operation",
              "short": "The teardown operation to perform",
              "definition": "An operation would involve a REST request to a server.",
              "min": 0,
              "max": "1",
              "nameReference": "operation",
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "sourceId or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('conformance' | 'search' | 'transaction' | 'history'))"
                    }
                  ],
                  "key": "inv-12",
                  "severity": "error",
                  "human": "Teardown operation SHALL contain either sourceId or targetId or params or url.",
                  "xpath": "f:sourceId or (f:targetId or f:url or (f:params and f:resource)) and (count(f:targetId) + count(f:url) + count(f:params) =1) or (f:type/f:code/@value='conformance' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')"
                }
              ]
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "TestScript",
              "short": "Describes a set of tests",
              "definition": "TestScript is a resource that specifies a suite of tests against a FHIR server implementation to determine compliance against the FHIR specification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "conformance.misc"
                }
              ]
            },
            {
              "path": "TestScript.url",
              "short": "Absolute URL used to reference this TestScript",
              "definition": "An absolute URL that is used to identify this Test Script. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Test Script is (or will be) published.",
              "alias": [
                "url",
                "authoritative-url",
                "destination",
                "identity"
              ],
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "TestScript.version",
              "short": "Logical id for this version of the TestScript",
              "definition": "The identifier that is used to identify this version of the TestScript. This is an arbitrary value managed by the TestScript author manually.",
              "requirements": "There may be multiple resource versions of the TestScript that have this same identifier. The resource version id will change for technical reasons, whereas the stated version number needs to be under the author's control.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id.version"
                }
              ]
            },
            {
              "path": "TestScript.name",
              "short": "Informal name for this TestScript",
              "definition": "A free text natural language name identifying the TestScript.",
              "comments": "Not expected to be globally unique.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "TestScript.status",
              "short": "draft | active | retired",
              "definition": "The status of the TestScript.",
              "requirements": "Allows filtering of TestScripts that are appropriate for use vs. not.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isModifier": true,
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "The lifecycle status of a Value Set or Concept Map.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/conformance-resource-status"
                }
              },
              "mapping": [
                {
                  "identity": "w5",
                  "map": "status"
                }
              ]
            },
            {
              "path": "TestScript.identifier",
              "short": "External identifier",
              "definition": "Identifier for the TestScript assigned for external purposes outside the context of FHIR.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "id"
                }
              ]
            },
            {
              "path": "TestScript.experimental",
              "short": "If for testing purposes, not real usage",
              "definition": "This TestScript was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.",
              "requirements": "Allows filtering of TestScripts that are appropriate for use vs. not.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "class"
                }
              ]
            },
            {
              "path": "TestScript.publisher",
              "short": "Name of the publisher (Organization or individual)",
              "definition": "The name of the individual or organization that published the Test Script.",
              "comments": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
              "requirements": "Helps establish the \"authority/credibility\" of the Test Script.  May also allow for contact.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "who.witness"
                }
              ]
            },
            {
              "path": "TestScript.contact",
              "short": "Contact details of the publisher",
              "definition": "Contacts to assist a user in finding and communicating with the publisher.",
              "comments": "May be a web site, an email address, a telephone number (tel:), etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true
            },
            {
              "path": "TestScript.contact.name",
              "short": "Name of a individual to contact",
              "definition": "The name of an individual to contact regarding the Test Script.",
              "comments": "If there is no named individual, the telecom is for the organization as a whole.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "TestScript.contact.telecom",
              "short": "Contact details for individual or publisher",
              "definition": "Contact details for individual (if a name was provided) or the publisher.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "ContactPoint"
                }
              ],
              "isSummary": true
            },
            {
              "path": "TestScript.date",
              "short": "Date for this version of the TestScript",
              "definition": "The date this version of the test tcript was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the test cases change.",
              "comments": "Additional specific dates may be added as extensions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "w5",
                  "map": "when.recorded"
                }
              ]
            },
            {
              "path": "TestScript.description",
              "short": "Natural language description of the TestScript",
              "definition": "A free text natural language description of the TestScript and its use.",
              "comments": "This field can be used for things such as why the TestScript was written, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc.  It is *not* a rendering of the TestScript as conveyed in TestScript.text. This item SHOULD be populated unless the information is available from context.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "TestScript.useContext",
              "short": "Content intends to support these contexts",
              "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of Test Scripts.",
              "requirements": "Assist in searching for appropriate content.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "CodeableConcept"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "extensible",
                "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/use-context"
                }
              }
            },
            {
              "path": "TestScript.requirements",
              "short": "Scope and Usage this Test Script is for",
              "definition": "Explains why this Test Script is needed and why it's been constrained as it has.",
              "comments": "This element does not describe the usage of the Test Script (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",
              "type": [
                {
                  "code": "string"
                }
              ],
              "mapping": [
                {
                  "identity": "w5",
                  "map": "why"
                }
              ]
            },
            {
              "path": "TestScript.copyright",
              "short": "Use and/or publishing restrictions",
              "definition": "A copyright statement relating to the Test Script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.",
              "alias": [
                "License",
                "Restrictions"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.metadata",
              "name": "metadata",
              "short": "Required capability that is assumed to function correctly on the FHIR server being tested",
              "definition": "The required capability must exist and are assumed to function correctly on the FHIR server being tested.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "capability.required or capability.validated"
                    }
                  ],
                  "key": "inv-5",
                  "severity": "error",
                  "human": "TestScript metadata capability SHALL contain required or validated or both.",
                  "xpath": "f:capability/f:required or f:capability/f:validated or (f:capability/f:required and f:capability/f:validated)"
                }
              ]
            },
            {
              "path": "TestScript.metadata.link",
              "short": "Links to the FHIR specification",
              "definition": "A link to the FHIR specification that this test is covering.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.metadata.link.url",
              "short": "URL to the specification",
              "definition": "URL to a particular requirement or feature within the FHIR specification.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "TestScript.metadata.link.description",
              "short": "Short description",
              "definition": "Short description of the link.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability",
              "short": "Capabilities  that are assumed to function correctly on the FHIR server being tested",
              "definition": "Capabilities that must exist and are assumed to function correctly on the FHIR server being tested.",
              "comments": "When the metadata capabilities section is defined at TestScript.metadata or at TestScript.setup.metadata, and the server's conformance statement does not contain the elements defined in the minimal conformance statement, then all the tests in the TestScript are skipped.  When the metadata capabilities section is defined at TestScript.test.metadata and the server's conformance statement does not contain the elements defined in the minimal conformance statement, then only that test is skipped.  The \"metadata.capabilities.required\" and \"metadata.capabilities.validated\" elements only indicate whether the capabilities are the primary focus of the test script or not.  The do not impact the skipping logic.  Capabilities whose \"metadata.capabilities.validated\" flag is true are the primary focus of the test script.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.required",
              "short": "Are the capabilities required?",
              "definition": "Whether or not the test execution will require the given capabilities of the server in order for this test script to execute.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false
            },
            {
              "path": "TestScript.metadata.capability.validated",
              "short": "Are the capabilities validated?",
              "definition": "Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false
            },
            {
              "path": "TestScript.metadata.capability.description",
              "short": "The expected capabilities of the server",
              "definition": "Description of the capabilities that this test script is requiring the server to support.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.origin",
              "short": "Which origin server these requirements apply to",
              "definition": "Which origin server these requirements apply to.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.destination",
              "short": "Which server these requirements apply to",
              "definition": "Which server these requirements apply to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.link",
              "short": "Links to the FHIR specification",
              "definition": "Links to the FHIR specification that describes this interaction and the resources involved in more detail.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "uri"
                }
              ]
            },
            {
              "path": "TestScript.metadata.capability.conformance",
              "short": "Required Conformance",
              "definition": "Minimum conformance required of server for test script to execute successfully.   If server does not meet at a minimum the reference conformance definition, then all tests in this script are skipped.",
              "comments": "The conformance statement of the server has to contain at a minimum the contents of the reference pointed to by this element.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Conformance"
                  ]
                }
              ]
            },
            {
              "path": "TestScript.origin",
              "short": "An abstract server representing a client or sender in a message exchange",
              "definition": "An abstract server used in operations within this test script in the origin element.",
              "comments": "The purpose of this element is to define the profile of an origin element used elsewhere in the script.  Test engines could then use the origin-profile mapping to offer a filtered list of test systems that can serve as the sender for the interaction.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.origin.index",
              "short": "The index of the abstract origin server starting at 1",
              "definition": "Abstract name given to an origin server in this test script.  The name is provided as a number starting at 1.",
              "comments": "A given origin index (e.g. 1) can appear only once in the list (e.g. Origin 1 cannot be specified twice ... once as FormFiller and and again as FormProcessor within the same script as that could get confusing during test configuration). \n\nDifferent origin indices could play the same actor in the same test script (e.g. You could have two different test systems acting as Form-Filler).\n\nThe origin indices provided elsewhere in the test script must be one of these origin indices.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "TestScript.origin.profile",
              "short": "FHIR-DSTU2-Client | FHIR-DSTU2-SDC-FormFiller",
              "definition": "The type of profile the server supports.",
              "comments": "Must be a \"sender\"/\"client\" profile.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "meaningWhenMissing": "FHIR-DSTU2-Client",
              "binding": {
                "strength": "required",
                "description": "The type of origin profile the server supports.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/profile-origin-types"
                }
              }
            },
            {
              "path": "TestScript.destination",
              "short": "An abstract server representing a destination or receiver in a message exchange",
              "definition": "An abstract server used in operations within this test script in the destination element.",
              "comments": "The purpose of this element is to define the profile of an destination element used elsewhere in the script.  Test engines could then use the destination-profile mapping to offer a filtered list of test systems that can serve as the receiver for the interaction.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.destination.index",
              "short": "The index of the abstract destination server starting at 1",
              "definition": "Abstract name given to a destination server in this test script.  The name is provided as a number starting at 1.",
              "comments": "A given destination index (e.g. 1) can appear only once in the list (e.g. Destination 1 cannot be specified twice ... once as Form-Manager and and again as Form-Processor within the same script as that could get confusing during test configuration). \n\nDifferent destination indices could play the same actor in the same test script (e.g. You could have two different test systems acting as Form-Manager).\n\nThe destination indices provided elsewhere in the test script must be one of these destination indices.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "TestScript.destination.profile",
              "short": "FHIR-DSTU2-Server | FHIR-DSTU2-SDC-FormManager | FHIR-DSTU2-SDC-FormReceiver | FHIR-DSTU2-SDC-FormProcessor",
              "definition": "The type of profile the server supports.",
              "comments": "Must be a \"receiver\"/\"server\" profile.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "meaningWhenMissing": "FHIR-DSTU2-Server",
              "binding": {
                "strength": "required",
                "description": "The type of destination profile the server supports.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/profile-destination-types"
                }
              }
            },
            {
              "path": "TestScript.multiserver",
              "short": "Whether or not the tests apply to more than one FHIR server",
              "definition": "If the tests apply to more than one FHIR server (e.g. cross-server interoperability tests) then multiserver=true. Defaults to false if value is unspecified.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "False"
            },
            {
              "path": "TestScript.fixture",
              "short": "Fixture in the test script - by reference (uri)",
              "definition": "Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.fixture.autocreate",
              "short": "Whether or not to implicitly create the fixture during setup",
              "definition": "Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "False"
            },
            {
              "path": "TestScript.fixture.autodelete",
              "short": "Whether or not to implicitly delete the fixture during teardown",
              "definition": "Whether or not to implicitly delete the fixture during teardown If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "meaningWhenMissing": "False"
            },
            {
              "path": "TestScript.fixture.resource",
              "short": "Reference of the resource",
              "definition": "Reference to the resource (containing the contents of the resource needed for operations).",
              "comments": "See http://hl7-fhir.github.io/resourcelist.html for complete list of resource types.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "TestScript.profile",
              "short": "Reference of the validation profile",
              "definition": "Reference to the profile to be used for validation.",
              "comments": "See http://hl7-fhir.github.io/resourcelist.html for complete list of resource types.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Resource"
                  ]
                }
              ]
            },
            {
              "path": "TestScript.variable",
              "short": "Placeholder for evaluated elements",
              "definition": "Variable is set based either on element value in response body or on header field value in the response headers.",
              "comments": "Variables would be set based either on XPath/JsonPath expressions against fixtures (static and response), or headerField evaluations against response headers. If variable evaluates to nodelist or anything other than a primitive value, then test engine would report error.  Variables would be used to perform clean replacements in \"operation.params\", \"operation.requestHeader.value\", and \"operation.url\" element values during operation calls and in \"assert.value\" during assertion evaluations. This limits the places that test engines would need to look for placeholders \"${}\".  Variables are scoped to the whole script. They are NOT evaluated at declaration. They are evaluated by test engine when used for substitutions in \"operation.params\", \"operation.requestHeader.value\", and \"operation.url\" element values during operation calls and in \"assert.value\" during assertion evaluations.  See example testscript-search.xml.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "headerField.empty() or path.empty()"
                    }
                  ],
                  "key": "inv-4",
                  "severity": "error",
                  "human": "Variable cannot contain both headerField and path.",
                  "xpath": "not(f:headerField and f:path)"
                }
              ]
            },
            {
              "path": "TestScript.variable.name",
              "short": "Descriptive name for this variable",
              "definition": "Descriptive name for this variable.",
              "comments": "Placeholders would contain the variable name wrapped in ${} in \"operation.params\", \"operation.requestHeader.value\", and \"operation.url\" elements.  These placeholders would need to be replaced by the variable value before the operation is executed.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.variable.defaultValue",
              "short": "Default value for this variable",
              "definition": "A default, hard-coded, or user-defined value for this variable.",
              "comments": "The purpose of this element is to allow for a pre-defined value that can be used as a default or as an override value. Test engines can optionally use this as a placeholder for user-defined execution time values.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.variable.headerField",
              "short": "HTTP header field name for source",
              "definition": "Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.",
              "comments": "If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to.  If path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to.  It is an error to define both headerField and path.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.variable.path",
              "short": "XPath or JSONPath against the fixture body",
              "definition": "XPath or JSONPath against the fixture body.  When variables are defined, either headerField must be specified or path, but not both.",
              "comments": "If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to.  If path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to.  It is an error to define both headerField and path.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.variable.sourceId",
              "short": "Fixture Id of source expression or headerField within this variable",
              "definition": "Fixture to evaluate the XPath/JSONPath expression or the headerField  against within this variable.",
              "comments": "This can be a statically defined fixture (at the top of the testscript) or a dynamically set fixture created by responseId of the action.operation element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "TestScript.setup",
              "short": "A series of required setup operations before tests are executed",
              "definition": "A series of required setup operations before tests are executed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.setup.metadata",
              "short": "Capabilities  that are assumed to function correctly on the FHIR server being tested",
              "definition": "Capabilities that must exist and are assumed to function correctly on the FHIR server being tested.",
              "min": 0,
              "max": "1",
              "nameReference": "metadata",
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "capability.required or capability.validated"
                    }
                  ],
                  "key": "inv-6",
                  "severity": "error",
                  "human": "Setup metadata capability SHALL contain required or validated or both.",
                  "xpath": "f:capability/f:required or f:capability/f:validated or (f:capability/f:required and f:capability/f:validated)"
                }
              ]
            },
            {
              "path": "TestScript.setup.action",
              "short": "A setup operation or assert to perform",
              "definition": "Action would contain either an operation or an assertion.",
              "comments": "An action should contain either an operation or an assertion but not both.  It can contain any number of variables.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "operation xor assert"
                    }
                  ],
                  "key": "inv-1",
                  "severity": "error",
                  "human": "Setup action SHALL contain either an operation or assert but not both.",
                  "xpath": "(f:operation or f:assert) and not(f:operation and f:assert)"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation",
              "name": "operation",
              "short": "The setup operation to perform",
              "definition": "The operation to perform.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "sourceId or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('conformance' |'search' | 'transaction' | 'history'))"
                    }
                  ],
                  "key": "inv-10",
                  "severity": "error",
                  "human": "Setup operation SHALL contain either sourceId or targetId or params or url.",
                  "xpath": "f:sourceId or ((f:targetId or f:url or f:params) and (count(f:targetId) + count(f:url) + count(f:params) =1)) or (f:type/f:code/@value='conformance' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.type",
              "short": "The setup operation type that will be executed",
              "definition": "Server interaction or operation type.",
              "comments": "See http://hl7-fhir.github.io/http.html for list of server interactions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "binding": {
                "strength": "extensible",
                "description": "The allowable operation types.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/testscript-operation-codes"
                }
              }
            },
            {
              "path": "TestScript.setup.action.operation.resource",
              "short": "Resource type",
              "definition": "The type of the resource.  See http://hl7-fhir.github.io/resourcelist.html.",
              "comments": "If \"url\" element is specified, then \"targetId\", \"params\", and \"resource\" elements will be ignored as \"url\" element will have everything needed for constructing the request url.  If \"params\" element is specified, then \"targetId\" element is ignored. For FHIR operations that require a resource (e.g. \"read\" and \"vread\" operations), the \"resource\" element must be specified when \"params\" element is specified.  If \"url\" and \"params\" elements are absent, then the request url will be constructed from \"targetId\" fixture if present. For \"read\" operation, the resource and id values will be extracted from \"targetId\" fixture and used to construct the url. For \"vread\" and \"history\" operations, the versionId value will also be used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Either a resource or a data type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/defined-types"
                }
              }
            },
            {
              "path": "TestScript.setup.action.operation.label",
              "short": "Tracking/logging operation label",
              "definition": "The label would be used for tracking/logging purposes by test engines.",
              "comments": "This has no impact on the verification itself.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.description",
              "short": "Tracking/reporting operation description",
              "definition": "The description would be used by test engines for tracking and reporting purposes.",
              "comments": "This has no impact on the verification itself.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.accept",
              "short": "xml | json",
              "definition": "The content-type or mime-type to use for RESTful operation in the 'Accept' header.",
              "comments": "If this is specified, then test engine shall set the 'Accept' header to the corresponding value.    If 'xml' is specified, then 'Accept' header of 'application/xml+fhir' will be set.  If 'json' is specified, then 'application/json+fhir' will be used.    If you'd like to explicitly set the 'Accept' to some other value then use the 'requestHeader' element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "meaningWhenMissing": "xml",
              "binding": {
                "strength": "required",
                "description": "The content or mime type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/content-type"
                }
              }
            },
            {
              "path": "TestScript.setup.action.operation.contentType",
              "short": "xml | json",
              "definition": "The content-type or mime-type to use for RESTful operation in the 'Content-Type' header.",
              "comments": "If this is specified, then test engine shall set the 'Content-Type' header to the corresponding value.    If 'xml' is specified, then 'Content-Type' header of 'application/xml+fhir' will be set.    If 'json' is specified, then 'application/json+fhir' will be used.    If you'd like to explicitly set the 'Content-Type' to some other value then use the 'requestHeader' element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "meaningWhenMissing": "xml",
              "binding": {
                "strength": "required",
                "description": "The content or mime type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/content-type"
                }
              }
            },
            {
              "path": "TestScript.setup.action.operation.destination",
              "short": "Server responding to the request",
              "definition": "The server where the request message is destined for.  Must be one of the server numbers listed in TestScript.destination section.",
              "comments": "If multiple TestScript.destination elements are defined and operation.destination is undefined, test engine will error as it cannot determine what destination to use for the exchange.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.encodeRequestUrl",
              "short": "Whether or not to send the request url in encoded format",
              "definition": "Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": true
            },
            {
              "path": "TestScript.setup.action.operation.origin",
              "short": "Server initiating the request",
              "definition": "The server where the request message originates from.  Must be one of the server numbers listed in TestScript.origin section.",
              "comments": "If absent, test engine will send the message.  When present, test engine will not send the request message but will wait for the request message to be sent from this origin server.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.params",
              "short": "Explicitly defined path parameters",
              "definition": "Path plus parameters after [type].  Used to set parts of the request URL explicitly.",
              "comments": "If \"url\" element is specified, then \"targetId\", \"params\", and \"resource\" elements will be ignored as \"url\" element will have everything needed for constructing the request url.  If \"params\" element is specified, then \"targetId\" element is ignored.  For FHIR operations that require a resource (e.g. \"read\" and \"vread\" operations), the \"resource\" element must be specified when \"params\" element is specified.  If \"url\" and \"params\" elements are absent, then the request url will be constructed from \"targetId\" fixture if present.  For \"read\" operation, the resource and id values will be extracted from \"targetId\" fixture and used to construct the url.  For \"vread\" and \"history\" operations, the versionId value will also be used.   Test engines would append whatever is specified for \"params\" to the URL after the resource type without tampering with the string (beyond encoding the URL for HTTP).  The \"params\" element does not correspond exactly to \"search parameters\".  Nor is it the \"path\".  It corresponds to the part of the URL that comes after the [type] (when \"resource\" element is specified); e.g. It corresponds to \"/[id]/_history/[vid] {?_format=[mime-type]}\" in the following operation: GET [base]/[type]/[id]/_history/[vid] {?_format=[mime-type]}  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.requestHeader",
              "short": "Each operation can have one ore more header elements",
              "definition": "Header elements would be used to set HTTP headers.",
              "comments": "This gives control to test-script writers to set headers explicitly based on test requirements.  It will allow for testing using:  - \"If-Modified-Since\" and \"If-None-Match\" headers.  See http://hl7-fhir.github.io/http.html#2.1.0.5.1 - \"If-Match\" header.  See http://hl7-fhir.github.io/http.html#2.1.0.11 - Conditional Create using \"If-None-Exist\".  See http://hl7-fhir.github.io/http.html#2.1.0.13.1 - Invalid \"Content-Type\" header for negative testing. - etc.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.requestHeader.field",
              "short": "HTTP header field name",
              "definition": "The HTTP header field e.g. \"Accept\".",
              "comments": "If header element is specified, then field is required.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.requestHeader.value",
              "short": "HTTP headerfield value",
              "definition": "The value of the header e.g. \"application/xml\".",
              "comments": "If header element is specified, then value is required.  No conversions will be done by Test Engine e.g. \"xml\" to \"application/xml+fhir\".  The values will be set in HTTP headers \"as-is\".  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.responseId",
              "short": "Fixture Id of mapped response",
              "definition": "The fixture id (maybe new) to map to the response.",
              "comments": "If a responseId is supplied, and the server responds, then the resulting response (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by \"responseId\".  If responseId is not specified, it is the Test Engine's responsibility to store the response and use it as sourceId in subsequent assertions when assertion path and/or headerField is specified and sourceId is not specified.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.sourceId",
              "short": "Fixture Id of body for PUT and POST requests",
              "definition": "The id of the fixture used as the body of a PUT or POST request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.targetId",
              "short": "Id of fixture used for extracting the [id],  [type], and [vid] for GET requests",
              "definition": "Id of fixture used for extracting the [id],  [type], and [vid] for GET requests.",
              "comments": "If \"url\" element is specified, then \"targetId\", \"params\", and \"resource\" elements will be ignored as \"url\" element will have everything needed for constructing the request url.  If \"params\" element is specified, then \"targetId\" element is ignored.  For FHIR operations that require a resource (e.g. \"read\" and \"vread\" operations), the \"resource\" element must be specified when \"params\" element is specified.  If \"url\" and \"params\" elements are absent, then the request url will be constructed from \"targetId\" fixture if present.  For \"read\" operation, the resource and id values will be extracted from \"targetId\" fixture and used to construct the url.  For \"vread\" and \"history\" operations, the versionId value will also be used.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.operation.url",
              "short": "Request URL",
              "definition": "Complete request URL.",
              "comments": "Used to set the request URL explicitly.  If \"url\" element is defined, then \"targetId\", \"resource\", and \"params\" elements will be ignored.  Test engines would use whatever is specified in \"url\" without tampering with the string (beyond encoding the URL for HTTP).  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert",
              "name": "assert",
              "short": "The assertion to perform",
              "definition": "Evaluates the results of previous operations to determine if the server under test behaves appropriately.",
              "comments": "In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "compareToSourceId.empty() xor compareToSourcePath"
                    }
                  ],
                  "key": "inv-13",
                  "severity": "error",
                  "human": "Setup action assert shall contain both compareToSourceId and compareToSourcePath or neither.",
                  "xpath": "(f:compareToSourceId and f:compareToSourcePath) or not(f:compareToSourceId or f:compareToSourcePath)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "contentType.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <=1"
                    }
                  ],
                  "key": "inv-8",
                  "severity": "error",
                  "human": "Only a single assertion SHALL be present within setup action assert element.",
                  "xpath": "count(f:contentType) + count(f:headerField) + count(f:minimumId) + count(f:navigationLinks) + count(f:path) + count(f:resource) + count(f:responseCode) + count(f:response) + count(f:validateProfileId)  <=1"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.label",
              "short": "Tracking/logging assertion label",
              "definition": "The label would be used for tracking/logging purposes by test engines.",
              "comments": "This has no impact on the verification itself.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.description",
              "short": "Tracking/reporting assertion description",
              "definition": "The description would be used by test engines for tracking and reporting purposes.",
              "comments": "This has no impact on the verification itself.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.direction",
              "short": "response | request",
              "definition": "The direction to use for the assertion.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of direction to use for assertion.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/assert-direction-codes"
                }
              }
            },
            {
              "path": "TestScript.setup.action.assert.compareToSourceId",
              "short": "Id of fixture used to compare the \"sourceId/path\" evaluations to",
              "definition": "Id of fixture used to compare the \"sourceId/path\" evaluations to.",
              "comments": "The id of the fixture used to make comparisons to.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.compareToSourcePath",
              "short": "XPath or JSONPath expression against fixture used to compare the \"sourceId/path\" evaluations to",
              "definition": "XPath or JSONPath expression against fixture used to compare the \"sourceId/path\" evaluations to.",
              "comments": "The XPath or JSONPath expression to be evaluated against the expected fixture to compare to. Ignored if \"assert.value\" is used. The evaluation will be done before the assertion is evaluated.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.contentType",
              "short": "xml | json",
              "definition": "The content-type or mime-type to use for RESTful operation in the 'Content-Type' header.",
              "comments": "If this is specified, then test engine shall confirm that the content-type of the last operation's headers is set to this value.  If \"assert.sourceId\" element is specified, then the evaluation will be done against the headers mapped to that sourceId (and not the last operation's headers).    If 'xml' is specified, then 'Content-Type' header of 'application/xml+fhir' will be confirmed. If 'json' is specified, then 'application/json+fhir' will be used. If you'd like to have more control over the string, then use 'assert.headerField' instead.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "meaningWhenMissing": "xml",
              "binding": {
                "strength": "required",
                "description": "The content or mime type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/content-type"
                }
              }
            },
            {
              "path": "TestScript.setup.action.assert.headerField",
              "short": "HTTP header field name",
              "definition": "The HTTP header field name e.g. 'Location'.",
              "comments": "If \"headerField\" is specified then \"value\" must be specified.  If \"sourceId\" is not specified, then \"headerField\" will be evaluated against the last operation's response headers.  Test engines are to keep track of the last operation's response body and response headers.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.minimumId",
              "short": "Fixture Id of minimum content resource",
              "definition": "The ID of a fixture.  Asserts that the response contains at a minimumId the fixture specified by minimumId.",
              "comments": "Asserts that the response contains all the element/content in another fixture pointed to by minimumId.  This can be a statically defined fixture or one that is dynamically set via responseId.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.navigationLinks",
              "short": "Perform validation on navigation links?",
              "definition": "Whether or not the test execution performs validation on the bundle navigation links.",
              "comments": "Asserts that the Bundle contains first, last, and next links.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.operator",
              "short": "equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains",
              "definition": "The operator type.",
              "comments": "Operators come handy especially for negative testing.  If operator is not specified, then the \"equals\" operator is assumed; e.g. <code>   <assert>  <operator value=\"in\" />  <responseCode value=\"200,201,204\" />    </assert>    <assert>  <operator value=\"notEquals\" />  <response value=\"okay\"/>   </assert>    <assert>  <operator value=\"greaterThan\" />    <responseHeader>     <field value=\"Content-Length\" />     <value value=\"0\" />    <responseHeader>   </assert> </code>.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of operator to use for assertion.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/assert-operator-codes"
                }
              }
            },
            {
              "path": "TestScript.setup.action.assert.path",
              "short": "XPath or JSONPath expression",
              "definition": "The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server.",
              "comments": "If both \"path\" and \"fixtureId\" are specified, then the path will be evaluated against the responseBody mapped to the fixtureId.  If \"path\" is specified and \"fixtureId\" is not, then the path will be evaluated against the responseBody of the last operation.  Test engines are to store the response body and headers of the last operation at all times for subsequent assertions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.resource",
              "short": "Resource type",
              "definition": "The type of the resource.  See http://hl7-fhir.github.io/resourcelist.html.",
              "comments": "This will be expected resource type in response body e.g. in read, vread, search, etc.  See http://hl7-fhir.github.io/resourcelist.html for complete list of resource types; e.g. <assert > <resourceType value=\"Patient\" </assert>.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "Either a resource or a data type.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/defined-types"
                }
              }
            },
            {
              "path": "TestScript.setup.action.assert.response",
              "short": "okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable",
              "definition": "okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable.",
              "comments": "This is a shorter way of achieving similar verifications via \"assert.responseCode\".  If you need more control, then use \"assert.responseCode\"  e.g. <assert>  <contentType value=\"json\" />  <response value=\"okay\"/> </assert>.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "The type of response code to use for assertion.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/assert-response-code-types"
                }
              }
            },
            {
              "path": "TestScript.setup.action.assert.responseCode",
              "short": "HTTP response code to test",
              "definition": "The value of the HTTP response code to be tested.",
              "comments": "To be used with \"operator\" attribute value. Asserts that the response code equals this value if \"operator\" is not specified.   If the operator is \"in\" or \"notIn\" then the responseCode would be a comma-separated list of values e.g. \"200,201\". Otherwise, it's expected to be a numeric value.   If \"fixture\" is not specified, then the \"responseBodyId\" value of the last operation is assumed.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.sourceId",
              "short": "Fixture Id of source expression or headerField",
              "definition": "Fixture to evaluate the XPath/JSONPath expression or the headerField  against.",
              "comments": "This can be a statically defined fixture (at the top of the testscript) or a dynamically set fixture created by responseId of the action.operation element.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.validateProfileId",
              "short": "Profile Id of validation profile reference",
              "definition": "The ID of the Profile to validate against.",
              "comments": "The ID of a Profile fixture. Asserts that the response is valid according to the Profile specified by validateProfileId.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.value",
              "short": "The value to compare to",
              "definition": "The value to compare to.",
              "comments": "The string-representation of a number, string, or boolean that is expected.  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before comparing this value to the actual value.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.setup.action.assert.warningOnly",
              "short": "Will this assert produce a warning only on error?",
              "definition": "Whether or not the test execution will produce a warning only on error for this assert.",
              "comments": "If this element is specified and it is true, then assertion failures can be logged by test engine but should not stop the test script execution from proceeding.  There are likely cases where the spec is not clear on what should happen. If the spec says something is optional (maybe a response header for example), but a server doesn’t do it, we could choose to issue a warning.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "boolean"
                }
              ],
              "defaultValueBoolean": false
            },
            {
              "path": "TestScript.test",
              "short": "A test in this script",
              "definition": "A test in this script.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.test.name",
              "short": "Tracking/logging name of this test",
              "definition": "The name of this test used for tracking/logging purposes by test engines.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.test.description",
              "short": "Tracking/reporting short description of the test",
              "definition": "A short description of the test used by test engines for tracking and reporting purposes.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ]
            },
            {
              "path": "TestScript.test.metadata",
              "short": "Capabilities  that are expected to function correctly on the FHIR server being tested",
              "definition": "Capabilities that must exist and are assumed to function correctly on the FHIR server being tested.",
              "min": 0,
              "max": "1",
              "nameReference": "metadata",
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "capability.required or capability.validated"
                    }
                  ],
                  "key": "inv-7",
                  "severity": "error",
                  "human": "Test metadata capability SHALL contain required or validated or both.",
                  "xpath": "f:capability/f:required or f:capability/f:validated or (f:capability/f:required and f:capability/f:validated)"
                }
              ]
            },
            {
              "path": "TestScript.test.action",
              "short": "A test operation or assert to perform",
              "definition": "Action would contain either an operation or an assertion.",
              "comments": "An action should contain either an operation or an assertion but not both.  It can contain any number of variables.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "operation xor assert"
                    }
                  ],
                  "key": "inv-2",
                  "severity": "error",
                  "human": "Test action SHALL contain either an operation or assert but not both.",
                  "xpath": "(f:operation or f:assert) and not(f:operation and f:assert)"
                }
              ]
            },
            {
              "path": "TestScript.test.action.operation",
              "short": "The setup operation to perform",
              "definition": "An operation would involve a REST request to a server.",
              "min": 0,
              "max": "1",
              "nameReference": "operation",
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "sourceId or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('conformance' | 'search' | 'transaction' | 'history'))"
                    }
                  ],
                  "key": "inv-11",
                  "severity": "error",
                  "human": "Test operation SHALL contain either sourceId or targetId or params or url.",
                  "xpath": "f:sourceId or (f:targetId or f:url or f:params) and (count(f:targetId) + count(f:url) + count(f:params) =1) or (f:type/f:code/@value='conformance' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')"
                }
              ]
            },
            {
              "path": "TestScript.test.action.assert",
              "short": "The setup assertion to perform",
              "definition": "Evaluates the results of previous operations to determine if the server under test behaves appropriately.",
              "comments": "In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine.",
              "min": 0,
              "max": "1",
              "nameReference": "assert",
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "compareToSourceId.empty() xor compareToSourcePath"
                    }
                  ],
                  "key": "inv-14",
                  "severity": "error",
                  "human": "Test action assert shall contain both compareToSourceId and compareToSourcePath or neither.",
                  "xpath": "(f:compareToSourceId and f:compareToSourcePath) or not(f:compareToSourceId or f:compareToSourcePath)"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "contentType.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <=1"
                    }
                  ],
                  "key": "inv-9",
                  "severity": "error",
                  "human": "Only a single assertion SHALL be present within test action assert element.",
                  "xpath": "count(f:contentType) + count(f:headerField) + count(f:minimumId) + count(f:navigationLinks) + count(f:path) + count(f:resource) + count(f:responseCode) + count(f:response) + count(f:validateProfileId)  <=1"
                }
              ]
            },
            {
              "path": "TestScript.teardown",
              "short": "A series of required clean up steps",
              "definition": "A series of operations required to clean up after the all the tests are executed (successfully or otherwise).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ]
            },
            {
              "path": "TestScript.teardown.action",
              "short": "One or more teardown operations to perform",
              "definition": "The teardown action will only contain an operation.",
              "comments": "An action should contain either an operation or an assertion but not both.  It can contain any number of variables.",
              "min": 1,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "operation"
                    }
                  ],
                  "key": "inv-3",
                  "severity": "error",
                  "human": "Teardown action SHALL contain an operation.",
                  "xpath": "f:operation"
                }
              ]
            },
            {
              "path": "TestScript.teardown.action.operation",
              "short": "The teardown operation to perform",
              "definition": "An operation would involve a REST request to a server.",
              "min": 0,
              "max": "1",
              "nameReference": "operation",
              "constraint": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                      "valueString": "sourceId or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('conformance' | 'search' | 'transaction' | 'history'))"
                    }
                  ],
                  "key": "inv-12",
                  "severity": "error",
                  "human": "Teardown operation SHALL contain either sourceId or targetId or params or url.",
                  "xpath": "f:sourceId or (f:targetId or f:url or (f:params and f:resource)) and (count(f:targetId) + count(f:url) + count(f:params) =1) or (f:type/f:code/@value='conformance' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "fullUrl": "http://hl7.org/fhir/StructureDefinition/VisionPrescription",
      "resource": {
        "resourceType": "StructureDefinition",
        "id": "VisionPrescription",
        "meta": {
          "lastUpdated": "2015-12-11T17:38:40.294+11:00"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
            "valueInteger": 0
          }
        ],
        "url": "http://hl7.org/fhir/StructureDefinition/VisionPrescription",
        "name": "VisionPrescription",
        "status": "draft",
        "publisher": "Health Level Seven International (Financial Management)",
        "contact": [
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://hl7.org/fhir"
              }
            ]
          },
          {
            "telecom": [
              {
                "system": "other",
                "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
              }
            ]
          }
        ],
        "date": "2015-12-11T17:38:40+11:00",
        "description": "Base StructureDefinition for VisionPrescription Resource",
        "fhirVersion": "1.2.0",
        "mapping": [
          {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM"
          },
          {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/w5",
            "name": "W5 Mapping"
          },
          {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2"
          }
        ],
        "kind": "resource",
        "abstract": false,
        "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "snapshot": {
          "element": [
            {
              "path": "VisionPrescription",
              "short": "Prescription for vision correction products for a patient",
              "definition": "An authorization for the supply of glasses and/or contact lenses to a patient.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "CombinedVisionRequest"
                },
                {
                  "identity": "w5",
                  "map": "clinical.careprovision"
                }
              ]
            },
            {
              "path": "VisionPrescription.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.",
              "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.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 may not always be associated with version changes to the resource.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Meta"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.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.",
              "comments": "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 as much as possible.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "uri"
                }
              ],
              "isModifier": true,
              "isSummary": true
            },
            {
              "path": "VisionPrescription.language",
              "short": "Language of the resource content",
              "definition": "The base language in which the resource is written.",
              "comments": "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",
              "type": [
                {
                  "code": "code"
                }
              ],
              "binding": {
                "strength": "required",
                "description": "A human language.",
                "valueSetUri": "http://tools.ietf.org/html/bcp47"
              }
            },
            {
              "path": "VisionPrescription.text",
              "short": "Text summary of the resource, for human interpretation",
              "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
              "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
              "alias": [
                "narrative",
                "html",
                "xhtml",
                "display"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Narrative"
                }
              ],
              "condition": [
                "dom-1"
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "Act.text?"
                }
              ]
            },
            {
              "path": "VisionPrescription.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.",
              "comments": "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.",
              "alias": [
                "inline resources",
                "anonymous resources",
                "contained resources"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Resource"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "VisionPrescription.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "VisionPrescription.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. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "VisionPrescription.identifier",
              "short": "Business identifier",
              "definition": "Business identifier which may be used by other parties to reference or identify the prescription.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number"
                },
                {
                  "identity": "rim",
                  "map": "id"
                }
              ]
            },
            {
              "path": "VisionPrescription.dateWritten",
              "short": "When prescription was authorized",
              "definition": "The date (and perhaps time) when the prescription was written.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction"
                },
                {
                  "identity": "rim",
                  "map": "author.time"
                }
              ]
            },
            {
              "path": "VisionPrescription.patient",
              "short": "Who prescription is for",
              "definition": "A link to a resource representing the person to whom the vision products will be supplied.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List"
                },
                {
                  "identity": "rim",
                  "map": "subject.role"
                }
              ]
            },
            {
              "path": "VisionPrescription.prescriber",
              "short": "Who authorizes the vision product",
              "definition": "The healthcare professional responsible for authorizing the prescription.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Treatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)"
                },
                {
                  "identity": "rim",
                  "map": "author.role"
                }
              ]
            },
            {
              "path": "VisionPrescription.encounter",
              "short": "Created during encounter / admission / stay",
              "definition": "A link to a resource that identifies the particular occurrence of contact between patient and health care provider.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19-Visit Number"
                },
                {
                  "identity": "rim",
                  "map": "componentOf.patientEncounter"
                }
              ]
            },
            {
              "path": "VisionPrescription.reason[x]",
              "short": "Reason or indication for writing the prescription",
              "definition": "Can be the reason or the indication for writing the prescription.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-16-Order Control Code Reason"
                },
                {
                  "identity": "rim",
                  "map": "reason.observation or reason.observation[code=ASSERTION].value"
                }
              ]
            },
            {
              "path": "VisionPrescription.dispense",
              "short": "Vision supply authorization",
              "definition": "Deals with details of the dispense part of the supply specification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "component.supplyEvent"
                }
              ]
            },
            {
              "path": "VisionPrescription.dispense.id",
              "representation": [
                "xmlAttr"
              ],
              "short": "xml:id (or equivalent in JSON)",
              "definition": "unique id for the element within a resource (for internal references).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "id"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "VisionPrescription.dispense.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. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "mapping": [
                {
                  "identity": "rim",
                  "map": "n/a"
                }
              ]
            },
            {
              "path": "VisionPrescription.dispense.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the 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.",
              "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that 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",
                "modifiers"
              ],
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Extension"
                }
              ],
              "isModifier": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "N/A"
                }
              ]
            },
            {
              "path": "VisionPrescription.dispense.product",
              "short": "Product to be supplied",
              "definition": "Identifies the type of vision correction product which is required for the patient.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the vision products.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vision-product"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
                },
                {
                  "identity": "rim",
                  "map": "consumable.role"
                }
              ]
            },
            {
              "path": "VisionPrescription.dispense.eye",
              "short": "right | left",
              "definition": "The eye for which the lens applies.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A coded concept listing the eye codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vision-eye-codes"
                }
              }
            },
            {
              "path": "VisionPrescription.dispense.sphere",
              "short": "Lens sphere",
              "definition": "Lens power measured in diopters (0.25 units).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.cylinder",
              "short": "Lens cylinder",
              "definition": "Power adjustment for astigmatism measured in diopters (0.25 units).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.axis",
              "short": "Lens axis",
              "definition": "Adjustment for astigmatism measured in integer degrees.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.prism",
              "short": "Lens prism",
              "definition": "Amount of prism to compensate for eye alignment in fractional units.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.base",
              "short": "up | down | in | out",
              "definition": "The relative base, or reference lens edge, for the prism.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A coded concept listing the base codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vision-base-codes"
                }
              }
            },
            {
              "path": "VisionPrescription.dispense.add",
              "short": "Lens add",
              "definition": "Power adjustment for multifocal lenses measured in diopters (0.25 units).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.power",
              "short": "Contact lens power",
              "definition": "Contact lens power measured in diopters (0.25 units).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.backCurve",
              "short": "Contact lens back curvature",
              "definition": "Back curvature measured in millimeters.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.diameter",
              "short": "Contact lens diameter",
              "definition": "Contact lens diameter measured in millimeters.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.duration",
              "short": "Lens wear duration",
              "definition": "The recommended maximum wear period for the lens.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.color",
              "short": "Lens add",
              "definition": "Special color or pattern.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.brand",
              "short": "Lens add",
              "definition": "Brand recommendations or restrictions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.notes",
              "short": "Notes for coatings",
              "definition": "Notes for special requirements such as coatings and lens materials.",
              "alias": [
                "0..1"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            }
          ]
        },
        "differential": {
          "element": [
            {
              "path": "VisionPrescription",
              "short": "Prescription for vision correction products for a patient",
              "definition": "An authorization for the supply of glasses and/or contact lenses to a patient.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "DomainResource"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "CombinedVisionRequest"
                },
                {
                  "identity": "w5",
                  "map": "clinical.careprovision"
                }
              ]
            },
            {
              "path": "VisionPrescription.identifier",
              "short": "Business identifier",
              "definition": "Business identifier which may be used by other parties to reference or identify the prescription.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "Identifier"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number"
                },
                {
                  "identity": "rim",
                  "map": "id"
                }
              ]
            },
            {
              "path": "VisionPrescription.dateWritten",
              "short": "When prescription was authorized",
              "definition": "The date (and perhaps time) when the prescription was written.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "dateTime"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction"
                },
                {
                  "identity": "rim",
                  "map": "author.time"
                }
              ]
            },
            {
              "path": "VisionPrescription.patient",
              "short": "Who prescription is for",
              "definition": "A link to a resource representing the person to whom the vision products will be supplied.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Patient"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PID-3-Patient ID List"
                },
                {
                  "identity": "rim",
                  "map": "subject.role"
                }
              ]
            },
            {
              "path": "VisionPrescription.prescriber",
              "short": "Who authorizes the vision product",
              "definition": "The healthcare professional responsible for authorizing the prescription.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Practitioner"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Treatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)"
                },
                {
                  "identity": "rim",
                  "map": "author.role"
                }
              ]
            },
            {
              "path": "VisionPrescription.encounter",
              "short": "Created during encounter / admission / stay",
              "definition": "A link to a resource that identifies the particular occurrence of contact between patient and health care provider.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Encounter"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "PV1-19-Visit Number"
                },
                {
                  "identity": "rim",
                  "map": "componentOf.patientEncounter"
                }
              ]
            },
            {
              "path": "VisionPrescription.reason[x]",
              "short": "Reason or indication for writing the prescription",
              "definition": "Can be the reason or the indication for writing the prescription.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "CodeableConcept"
                },
                {
                  "code": "Reference",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/Condition"
                  ]
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "v2",
                  "map": "ORC-16-Order Control Code Reason"
                },
                {
                  "identity": "rim",
                  "map": "reason.observation or reason.observation[code=ASSERTION].value"
                }
              ]
            },
            {
              "path": "VisionPrescription.dispense",
              "short": "Vision supply authorization",
              "definition": "Deals with details of the dispense part of the supply specification.",
              "min": 0,
              "max": "*",
              "type": [
                {
                  "code": "BackboneElement"
                }
              ],
              "isSummary": true,
              "mapping": [
                {
                  "identity": "rim",
                  "map": "component.supplyEvent"
                }
              ]
            },
            {
              "path": "VisionPrescription.dispense.product",
              "short": "Product to be supplied",
              "definition": "Identifies the type of vision correction product which is required for the patient.",
              "min": 1,
              "max": "1",
              "type": [
                {
                  "code": "Coding"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "example",
                "description": "A coded concept describing the vision products.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vision-product"
                }
              },
              "mapping": [
                {
                  "identity": "v2",
                  "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
                },
                {
                  "identity": "rim",
                  "map": "consumable.role"
                }
              ]
            },
            {
              "path": "VisionPrescription.dispense.eye",
              "short": "right | left",
              "definition": "The eye for which the lens applies.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A coded concept listing the eye codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vision-eye-codes"
                }
              }
            },
            {
              "path": "VisionPrescription.dispense.sphere",
              "short": "Lens sphere",
              "definition": "Lens power measured in diopters (0.25 units).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.cylinder",
              "short": "Lens cylinder",
              "definition": "Power adjustment for astigmatism measured in diopters (0.25 units).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.axis",
              "short": "Lens axis",
              "definition": "Adjustment for astigmatism measured in integer degrees.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "integer"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.prism",
              "short": "Lens prism",
              "definition": "Amount of prism to compensate for eye alignment in fractional units.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.base",
              "short": "up | down | in | out",
              "definition": "The relative base, or reference lens edge, for the prism.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "code"
                }
              ],
              "isSummary": true,
              "binding": {
                "strength": "required",
                "description": "A coded concept listing the base codes.",
                "valueSetReference": {
                  "reference": "http://hl7.org/fhir/ValueSet/vision-base-codes"
                }
              }
            },
            {
              "path": "VisionPrescription.dispense.add",
              "short": "Lens add",
              "definition": "Power adjustment for multifocal lenses measured in diopters (0.25 units).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.power",
              "short": "Contact lens power",
              "definition": "Contact lens power measured in diopters (0.25 units).",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.backCurve",
              "short": "Contact lens back curvature",
              "definition": "Back curvature measured in millimeters.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.diameter",
              "short": "Contact lens diameter",
              "definition": "Contact lens diameter measured in millimeters.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "decimal"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.duration",
              "short": "Lens wear duration",
              "definition": "The recommended maximum wear period for the lens.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "Quantity",
                  "profile": [
                    "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                  ]
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.color",
              "short": "Lens add",
              "definition": "Special color or pattern.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.brand",
              "short": "Lens add",
              "definition": "Brand recommendations or restrictions.",
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            },
            {
              "path": "VisionPrescription.dispense.notes",
              "short": "Notes for coatings",
              "definition": "Notes for special requirements such as coatings and lens materials.",
              "alias": [
                "0..1"
              ],
              "min": 0,
              "max": "1",
              "type": [
                {
                  "code": "string"
                }
              ],
              "isSummary": true
            }
          ]
        }
      }
    }
  ]
}

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